[uClibc]Need Help

Jon Nelson jnelson at securepipe.com
Fri May 18 15:02:33 UTC 2001


> > I have uClibc ready as an RPM
> > it is hardcoded to use i386-linux-uclibc)
>
> It sounds OK, since anyway binary RPM is architecture-dependent.

However, the src.rpm shouldn't be -- I'll hack on this later...

> > However, when trying to compile larger apps, anything that needs non-system
> > header files, such as curses.h (located in /usr/include), bails during
> > compilation.
> 
>  > Adding -I /usr/include makes all kinds of things blow chunks.
>  > What is the correct way of solving this?
> 
> 
> Sounds like you're not making install directory for uClibc correct. It 
> is supposed that all include files will be located in some specific 
> directiry, like /usr/local/i386-ulibc/include (I may be wrong, depends 
> on the current Makefile configuration). You must not try to use 
> /usr/include which has glibc's includes (unless you don't have one, 
> which I doubt). For every library you intend to use with uCLibc you must 
> "install" it with the same prefix as used for uCLibc configuration.

I don't understand.  uClibc's header files are (in my installation) located
in /usr/i386-linux-uclibc/include

However, are you telling me that for uClibc to be useful to apps that require
header files and libraries from other files that those packages must install
their files in /usr/i386-linux-uclibc/{include,lib} ??

That seems lame.  It would seem that that ought to be a way for uClibc's
gcc wrapper to say, "if I can't find header foo, look in /usr/include for it".
That way, most everything will be found correctly in /usr/i386-linux-uclibc/include,
and those that aren't found like curses.h can be located in /usr/include

Is there a switch I can use with gcc to obtain this desired effect?

I use /usr/i386-linux-uclibc/bin/gcc for compiling.

-- 
Jon Nelson              \|/ ____ \|/
jnelson at securepipe.com  "@'/ ,. \`@"
C and Python Programmer /_| \__/ |_\
Motorcycle Enthusiast      \__U_/






More information about the uClibc mailing list