[prev in list] [next in list] [prev in thread] [next in thread] 

List:       etux
Subject:    linker problem at building X
From:       Florian Kessler <fke () kesslerundpartner ! biz>
Date:       2003-11-10 18:17:07
Message-ID: 18449DF1-13AA-11D8-9C60-000393B53B0E () kesslerundpartner ! biz
[Download RAW message or body]


Hi Karim, hi all

I managed to build a working toolchain x86 - x86 thanks to your book.
I could build some progs successfully too, linux kernel, busybox, few  
others,
so I thought a had I working toolchain. Until i tried to build XFree86  
4.3.0 ;-)

This is how Iīm trying to build it: (following loosely the instructions  
by cygwin)
make World CROSSCOMPILEDIR=/home/fke/embLinux/thinclient/tools/bin  
DESTDIR=/home/fke/embLinux/thinclient/rootfs

This works without a hitch. But trying to
make install CROSSCOMPILEDIR=/home/fke/embLinux/thinclient/tools/bin  
DESTDIR=/home/fke/embLinux/thinclient/rootfs

is showing this:
/home/fke/embLinux/thinclient/tools/bin/`echo gcc -m32|sed "s%.*/%%"`  
-o ico -O2 -fno-strength-reduce -fno-strict-aliasing -ansi -pedantic  
-Wall -Wpointer-arith -Wundef     -L../../exports/lib   ico.o -lXext  
-lX11  -lpthread -lm   -Wl,-rpath-link,../../exports/lib
/lib/libpthread.so.0: undefined reference to `__libc_fork@GLIBC_2.1.2'
collect2: ld returned 1 exit status
make[3]: *** [ico] Error 1
make[3]: Leaving directory  
`/home/fke/embLinux/thinclient/sysapps/xc-build/programs/ico'
make[2]: *** [install] Error 2
make[2]: Leaving directory  
`/home/fke/embLinux/thinclient/sysapps/xc-build/programs'
make[1]: *** [install] Error 2
make[1]: Leaving directory  
`/home/fke/embLinux/thinclient/sysapps/xc-build'
make: *** [install] Error 2

And guess what happens if Iīm moving /lib/libpthread.so.0 of my host  
out of the way:
Exactly, the linker canīt find anything. Though the relevant file can  
be found in:
/home/fke/embLinux/thinclient/build-tools/build-glibc/linuxthreads/ 
libpthread.so.0
/home/fke/embLinux/thinclient/rootfs/lib/libpthread.so.0
/home/fke/embLinux/thinclient/tools/i386-linux/lib/libpthread.so.0

Experimenting with LD_LIBRARY_PATH didnīt do the job.

Iīm using
binutils-2.14
gcc-3.2.3
glibc-2.3.2, glibc-linuxthreads-2.3.2

Any hints?

Thanks in advance,
Florian

BTW: I didnīt dare to do anything different from your instructions ;-)

["PGP.sig" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic