[ECOS] Posix pselect support don't link

Sebax sebastien.couret@elios-informatique.fr
Thu Nov 6 11:07:00 GMT 2003


Hello,
I have realised (I may be wrong) that all my select calls are blocking (the time out value seems to be ignored) in my build of the eCOS system.

I found in this mailing list that using pselect (POSIX select) should solve my problem. So I've added the package CYGPKG_POSIX, rebuilded the library and tried to build the sample hello orogram.

The program is compiled but a link failure occurs while linking it to the libray.
Right now i can't figure out why ...
Here are the linker's messages :

$ make hello INSTALL_DIR=/POSIX_install
powerpc-eabi-gcc -c -o hello.o -I/POSIX_install/include -D__ECOS hello.c
powerpc-eabi-gcc -nostartfiles -L/POSIX_install/lib -Ttarget.ld -msoft-float -mcpu=603e -g -nostd
lib -Wl,--gc-sections -Wl,-static -o hello hello.o
/POSIX_install/lib/extras.o: In function `ci8E8':
/POSIX_install/lib/extras.o(.text.serial_init+0xac): undefined reference to `cyg_selinit'
/POSIX_install/lib/extras.o: In function `cpu_t':
/POSIX_install/lib/extras.o(.text.serial_init+0x104): undefined reference to `cyg_selinit'
/POSIX_install/lib/extras.o: In function `ed88':
/POSIX_install/lib/extras.o(.text.serial_select+0x68): undefined reference to `cyg_selrecord'
/POSIX_install/lib/extras.o: In function `eserved4':
/POSIX_install/lib/extras.o(.text.serial_xmt_char+0xa8): undefined reference to `cyg_selwakeup'
/POSIX_install/lib/extras.o: In function `addr3':
/POSIX_install/lib/extras.o(.text.serial_rcv_char+0xbc): undefined reference to `cyg_selwakeup'
/POSIX_install/lib/extras.o: In function `bsd_socket':
/POSIX_install/lib/extras.o(.text.bsd_socket+0x5c): undefined reference to `cyg_selinit'
/POSIX_install/lib/extras.o: In function `erved74':
/POSIX_install/lib/extras.o(.text.bsd_socket+0x68): undefined reference to `cyg_selinit'
/POSIX_install/lib/extras.o: In function `g_ucount16':
/POSIX_install/lib/extras.o(.text.bsd_accept+0x128): undefined reference to `cyg_selinit'
/POSIX_install/lib/extras.o: In function `d_pci464':
/POSIX_install/lib/extras.o(.text.bsd_accept+0x130): undefined reference to `cyg_selinit'
/POSIX_install/lib/extras.o: In function `bsd_select':
/POSIX_install/lib/extras.o(.text.bsd_select+0x9c): undefined reference to `cyg_selrecord'
/POSIX_install/lib/extras.o(.text.bsd_select+0x128): undefined reference to `cyg_selrecord'
/POSIX_install/lib/libtarget.a(net_bsd_tcpip_uipc_socket.o): In function `cyg_sopoll':
/ecos-c/cygwin/opt/ecos/packages/net/bsd_tcpip/current/src/sys/kern/uipc_socket.c:112: undefined reference to `cyg_selwa
keup'
/POSIX_install/lib/libtarget.a(net_bsd_tcpip_uipc_socket2.o): In function `sbtoxsockbuf':
/ecos-c/cygwin/opt/ecos/packages/net/bsd_tcpip/current/src/sys/kern/uipc_socket2.c:124: undefined reference to `cyg_selw
akeup'
collect2: ld returned 1 exit status
make: *** [hello] Error 1

Someone got an idea ? 
Thanks for your help. 


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list