I downloaded the pre-compiled Linux binary and used "ldd", perhaps the problem is that my computer needs a different version of libstdc++? $ ldd linux-dg libnsl.so.1 => /lib/libnsl.so.1 (0x4001c000) libdl.so.2 => /lib/libdl.so.2 (0x40032000) libutil.so.1 => /lib/libutil.so.1 (0x40037000) libpam.so.0 => /lib/libpam.so.0 (0x4003b000) libstdc++-libc6.2-2.so.3 => not found libc.so.6 => /lib/tls/libc.so.6 (0x40043000) /lib/ld-linux.so.2 (0x40000000) libaudit.so.0 => /lib/libaudit.so.0 (0x4016d000) $ ls /usr/lib/*stdc* /usr/lib/libstdc++.so.6 /usr/lib/libstdc++.so.6.0.3 ----- Original Message ----- From: "Jon Slenk" <p3egabdyi-mxhgu4z3b33w.ml@delegate.org> To: <pficabdyi-mxhgu4z3b33w.ml@delegate.org> Sent: Thursday, June 08, 2006 11:42 AM Subject: 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!!!!: ...