Re: microblaze lwip

Sep 15, 2006 2 Replies


As linker options i use : -lxilkernel -llwip4


>
> when i build the projet i get the following error message:
>
> Building target: ethernet.elf
> mb-gcc -o ethernet.elf main.o
> -LC:/CodeGeeks/test_edk3/microblaze_0/lib -Wl,-T
> -Wl,"C:\CodeGeeks\test_edk3\TestApp_Memory\src\TestApp_Memory_LinkScr.ld"
> -lxilkernel -llwip4
> C:/CodeGeeks/test_edk3/microblaze_0/lib/liblwip4.a(sys_arch.o): In
> function `sys_arch_sem_wait':
>

/cygdrive/c/CodeGeeks/test_edk3/microblaze_0/libsrc/lwip_v2_00_a/src/contrib/ports/v2pro/sys_arch.c(.text+0x148):


undefined reference to `sem_timedwait'
> C:/CodeGeeks/test_edk3/microblaze_0/lib/liblwip4.a(sys_arch.o): In
> function `sys_arch_mbox_fetch':
>

/cygdrive/c/CodeGeeks/test_edk3/microblaze_0/libsrc/lwip_v2_00_a/src/contrib/ports/v2pro/sys_arch.c(.text+0x594):


undefined reference to `sem_timedwait'
> collect2: ld returned 1 exit status
> make: *** [ethernet.elf] Error 1
> Build complete for project ethernet

Have you tried changing the order of -l libraries (since lwip4 calls xilkernel functions)?


-llwip4 -lxilkernel



Alan Nishioka



/cygdrive/c/CodeGeeks/test_edk3/microblaze_0/libsrc/lwip_v2_00_a/src/contrib/ports/v2pro/sys_arch.c(.text+0x148):

/cygdrive/c/CodeGeeks/test_edk3/microblaze_0/libsrc/lwip_v2_00_a/src/contrib/ports/v2pro/sys_arch.c(.text+0x594):

gcc is complaining that it can't find sem_timedwait which is part of the xilkernel semaphore library. As it turns out, this library is optional. Try: Software Platform Settings/OS and Libraries/config_sema = true (see EDK/docs/oslib_rm.pdf)

Alan Nishioka

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required