[Tutor] sockets broken on New Install???

Joerg Woelke lumbricus@gmx.net
Thu, 16 Aug 2001 19:17:16 +0200


On Thu, Aug 16, 2001 at 09:22:05AM -0700, Sheila King wrote:
> On Thu, 16 Aug 2001 08:41:01 -0700, Sheila King <sheila@thinkspot.net>
> wrote about [Tutor] sockets broken on New Install???:
> 
> :119 tests OK.

[snip tests]

> :
> :Having sockets not work is a real problem.
> 
> Well, here is an additional clue. I checked the config.log file for
> "socket" and find this message:
> 
> configure:3264: checking for socket in -lsocket
> configure:3283: gcc -o conftest -g -O2   conftest.c -lsocket -ldl  -ldl
> 1>&5
> /usr/bin/ld: cannot find -lsocket

fine - a usefull error message :-)

> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 3272 "configure"
> #include "confdefs.h"
> /* Override any gcc2 internal prototype to avoid an error.  */
> /* We use char because int might match the return type of a gcc2
>     builtin and then its argument prototype would still apply.  */
> char socket();
> 
> int main() {
> socket()
> ; return 0; }
> 
> 
> I guess I have to ask my admin where the lsocket is??? I dunno?
> 

actually, the linker is looking for a file named
libsocket.a or so.
Perhaps you find the file yourself, then you can specify the path
to it via the -L - option.
"man gcc" gives more infos :-)

HTH and Greetings
J"o! :-)

> --
> Sheila King
> http://www.thinkspot.net/sheila/
> http://www.k12groups.org/
> 

-- 
You are the only person to ever get this message.