[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] Problem linking threads
> Hello List,
> I am trying to build the latest distribution with threading and having link problems (Full Source Distribution 20040408). I have selected the PTHREAD option using MENUCONFIG on both the uClinux-dist configuration and uClibc. The following is the link error that I get.
>
> mb-gcc -Os -g -fomit-frame-pointer -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/kzambrano/src/uClinux-dist/lib/uClibc/include -I/home/kzambrano/src/uClinux-dist/lib/libm -I/home/kzambrano/src/uClinux-dist/lib/libcrypt_old -I/home/kzambrano/src/uClinux-dist -fno-builtin -mno-xl-soft-mul -mno-xl-soft-div -mxl-barrel-shift -I/home/kzambrano/src/uClinux-dist/linux-2.4.x/include -Wl,-elf2flt -nostartfiles /home/kzambrano/src/uClinux-dist/lib/uClibc/lib/crt0.o -nostdlib -L/home/kzambrano/src/uClinux-dist/lib/uClibc/. -L/home/kzambrano/src/uClinux-dist/lib/uClibc/lib -L/home/kzambrano/src/uClinux-dist/lib/libm -L/home/kzambrano/src/uClinux-dist/lib/libnet -L/home/kzambrano/src/uClinux-dist/lib/libdes -L/home/kzambrano/src/uClinux-dist/lib/libaes -L/home/kzambrano/src/uClinux-dist/lib/libpcap -L/home/kzambrano/src/uClinux-dist/lib/libssl -L/home/kzambrano/src/uClinux-dist/lib/libcrypt_old -L/home/kzambrano/src/uClinux-dist/lib/zlib -o plserver plserver.o cipher.o des.o tables.o connectctl.o debuglog.o utility.o picctl.o -lc /opt/ublaze/microblaze-elf-tools/bin/../lib/gcc-lib/microblaze/2.95.3-4/./../../../../microblaze/lib/libc_hard_shift.a /opt/ublaze/microblaze-elf-tools/bin/../lib/gcc-lib/microblaze/2.95.3-4/./libgcc.a -Wl,--start-group -Wl,-lc -Wl,-lm -Wl,-lgcc -Wl,--end-group -lc
> plserver.elf2flt: In function `demoMain':
> /home/kzambrano/src/uClinux-dist/user/nx590/plserver.c:405: undefined reference to `pthread_create'
> /home/kzambrano/src/uClinux-dist/user/nx590/plserver.c:405: undefined reference to `pthread_create'
>
> Has anyone been successful in using threads with the latest distribution? I have tried this with Insight and Xlinx vendors as well.
> Thanks in advance.
>
> Keith Zambrano
> GE Infrastructure Security
>
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/