[uClibc]Promblems compiling lsh agains uClibc
Erik Andersen
andersen at codepoet.org
Wed Apr 10 10:35:44 UTC 2002
On Wed Apr 10, 2002 at 12:21:21PM +0200, Marko Ebert wrote:
> -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'
You will need to show what the code is doing here.
I can't guess from this...
> 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???
I fixed this. You probably want to try with the latest and
greatest, or wait an hour or two for uClibc 0.9.11 to be
released.
> btw. if anyone is interested... openssh compiles cleanly against uClibc
> if you make sure it doesn't link against anything in glibc (ie. -lnsl)
Very cool.. Guess we should add that to the working apps list.
Got a version number on what you compiled?
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list