Newsgroups: mail-lists.delegate-en
[DeleGate-En] linux (CentOS/RHEL) socket problem
ohio,
I am trying to build DeleGate on Centos 4.3 x86. During the configuration it
tries to link and cannot find "socket()". I get the error output below.
However, there is no /usr/lib/libsocket.so (there *is* /usr/lib/libnsl.so)
and I think modern Linux distributions don't support -lsocket. But I don't
know enough about what to do. Perhaps I am missing a version of the standard
C/++ library that contains socket support?
Any help would be appreciated, apologies for my lack of Linux knowledge!
sincerely,
-Jon.
##ERROR## ***
##ERROR## g++ -c -o _.o _.c
##ERROR## _.c: In function `int main()':
##ERROR## _.c:1: error: `socket' was not declared in this scope
##ERROR##
##ERROR## ***
##ERROR## g++ _.o -L../lib ../lib/libresolvy.a ../lib/libteleport.a
../lib/libmd5.a .\
./lib/libcfi.a ../lib/library.a ../lib/libmimekit.a
../lib/libfsx.a -lnsl -ldl -lutil \
-lstdc++ ../lib/library.a -lc
##ERROR## _.c: In function `int main()':
##ERROR## _.c:1: error: `socket' was not declared in this scope
##ERROR## g++: _.o: No such file or directory
##ERROR##
FATAL!!!!: Socket library should be given.
FATAL!!!!: You may have to specify
FATAL!!!!: LIBS=-lnsl -lsocket
FATAL!!!!: LIBS=WSOCK32.LIB
FATAL!!!!: ...
|