Article delegate-en/3293 of [1-4224] on the server localhost:7119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] linux (CentOS/RHEL) socket problem
08 Jun 2006 18:42:41 GMT "Jon Slenk" <p3egabdyi-mxhgu42pb33w.ml@delegate.org>

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!!!!:     ... 


  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V