SCTP Discussions

Text archives Help


[SCTP-Discussion] compile error


Chronological Thread 
  • From: "Djuneid Dillun" <dd29 AT kent.ac.uk>
  • To: <discussion AT sctp.de>
  • Subject: [SCTP-Discussion] compile error
  • Date: Mon Jul 26 11:37:02 2004
  • List-id: SCTP Discussions <discussion.sctp.de>

Hi everyone,
I am again having some errors when I am compiling an SCTP
example program. I am using Redhat Linux 9.0 and when I compile the
"combined_server_1to1.c" program with the command :

gcc -lsctp -lglib combined_server_1to1.c -o combined

I get the following errors:

******************************************************************

/tmp/ccAS2kfp.o(.text+0x27e): In function `handle_chargen':
: undefined reference to `pthread_detach'
/tmp/ccAS2kfp.o(.text+0x2fd): In function `handle_chargen':
: undefined reference to `ext_write'
/tmp/ccAS2kfp.o(.text+0x3d3): In function `handle_chargen':
: undefined reference to `ext_close'
/tmp/ccAS2kfp.o(.text+0x43d): In function `handle_discard':
: undefined reference to `pthread_detach'
/tmp/ccAS2kfp.o(.text+0x457): In function `handle_discard':
: undefined reference to `ext_read'
/tmp/ccAS2kfp.o(.text+0x4a2): In function `handle_discard':
: undefined reference to `ext_close'
/tmp/ccAS2kfp.o(.text+0x50c): In function `handle_echo':
: undefined reference to `pthread_detach'
/tmp/ccAS2kfp.o(.text+0x526): In function `handle_echo':
: undefined reference to `ext_read'
/tmp/ccAS2kfp.o(.text+0x579): In function `handle_echo':
: undefined reference to `ext_write'
/tmp/ccAS2kfp.o(.text+0x5a7): In function `handle_echo':
: undefined reference to `ext_close'
/tmp/ccAS2kfp.o(.text+0x60e): In function `handle_daytime':
: undefined reference to `pthread_detach'
/tmp/ccAS2kfp.o(.text+0x654): In function `handle_daytime':
: undefined reference to `ext_write'
/tmp/ccAS2kfp.o(.text+0x6aa): In function `handle_daytime':
: undefined reference to `ext_close'
/tmp/ccAS2kfp.o(.text+0x73e): In function `start_server':
: undefined reference to `ext_accept'
/tmp/ccAS2kfp.o(.text+0x7bd): In function `start_server':
: undefined reference to `pthread_create'
/tmp/ccAS2kfp.o(.text+0x7dc): In function `init_server':
: undefined reference to `ext_socket'
/tmp/ccAS2kfp.o(.text+0x81d): In function `init_server':
: undefined reference to `ext_bind'
/tmp/ccAS2kfp.o(.text+0x841): In function `init_server':
: undefined reference to `ext_listen'
/tmp/ccAS2kfp.o(.text+0x8b9): In function `init_server':
: undefined reference to `pthread_create'
/tmp/ccAS2kfp.o(.text+0x9a8): In function `main':
: undefined reference to `pthread_join'
/tmp/ccAS2kfp.o(.text+0x9b8): In function `main':
: undefined reference to `pthread_join'
/tmp/ccAS2kfp.o(.text+0x9c8): In function `main':
: undefined reference to `pthread_join'
/tmp/ccAS2kfp.o(.text+0x9d8): In function `main':
: undefined reference to `pthread_join'
collect2: ld returned 1 exit status
******************************************************************

From the compile errors I'm having, I believe they are related to the
include headers <pthread.h> and <ext_socket.h>. I have checked my folder
/lib and found two files namely: libpthread-0.10.so, libpthread.so.0. But
still I don't understand why the compiler is complaining.

As for the <ext_socket.h> header file, even after giving the proper location
the compiler complains about such file not existing!!!!

Please note that I am not compiling the "combined_server_1to1.c" program in
the original folder, I have copied the file in another folder.

I would be very grateful if anyone could help me to sort this out.

Best regards,
Djuneid





Archive powered by MHonArc 2.6.19+.

Top of page