[uClibc]Promblems compiling lsh agains uClibc

Marko Ebert Marko.Ebert at email.si
Wed Apr 10 10:21:21 UTC 2002


Hello!

I have encountered two problems compiling two different versions of lsh 
against uClibc-0.9.10. Native system is i686 slackware and destined for 
a i486 one floppy router. I hope the problem is in my head, but here are 
the symptoms:

With lsh-1.2.5 (with the appropriate patch from uClibc web site) I get :
gcc -DHAVE_CONFIG_H -I. -I/path-to/lsh-1.2.5/src -I..   
-I/path-to/lsh-1.2.5 -I/path-to/lsh-1.2.5/src 
-I/path-to/lsh-1.2.5/src/symmetric/include -DLSH -D_GNU_SOURCE -I 
/path-to/include -I /path-to/zlib-1.1.4/  -g -O2 -ggdb3 -Wall -W  
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  
-Waggregate-return  -Wpointer-arith -Wbad-function-cast -Wnested-externs 
-c unix_user.c
unix_user.c:71: undefined or invalid # directive
unix_user.c: In function `do_fork_process':
unix_user.c:793: warning: unused parameter `peer'
unix_user.c:793: warning: unused parameter `tty'

My understanding of uClibc is limited as I've just recently started to 
use it, but could this be in some way connected to the threads part of 
uClibc?

With lsh-1.3.7 (patched the same way as 1.2.5) I get:
gcc  -g -O2 -ggdb3 -Wall -W  -Wmissing-prototypes -Wmissing-declarations 
-Wstrict-prototypes  -Waggregate-return  -Wpointer-arith 
-Wbad-function-cast -Wnested-externs  -Wl,-rpath,/path-to/lib -L 
/path-to/lib -L /path-to/zlib-1.1.4/ -o shadata  shadata.o -lm -lgmp
/usr/i386-linux-uclibc/lib/libm.so: undefined reference to `finite'
collect2: ld returned 1 exit status

something missing in libm???

btw. if anyone is interested... openssh compiles cleanly against uClibc 
if you make sure it doesn't link against anything in glibc (ie. -lnsl) 
and that it actually takes the openssl and zlib from where it should (I 
was unable to convince configure to find them anywhere but in /usr/lib - 
which of course contained the libs linked against glibc). Also note that 
end result is a bit big (libcrypto = approx. 770k and sshd = approx 
220k)... at least to my taste.

Cheers

/M




More information about the uClibc mailing list