[Gate-users] solved /usr/bin/ld: cannot find -lsocket

open researcher openresearcher90 at gmail.com
Wed Jul 25 11:03:30 CEST 2012


hi everybody! i had a problem with installing ECAT, which i had posted
earlier. I thought it was OS problem and i installed UBUNTU 10.10 but i got
the same problem. Actually its problem with OS (or may be with
happycoders-libsocket-dev) for the problem one can see
athttps://bugs.launchpad.net/ubuntu/+source/libsocket/+bug/636598.
The command given in the link didn't sort out the problem for me. so for
solving the problem one has to goto /usr/lib and create a link with ' sudo
ln -s libsocket.so.0.1.6 libsocket.so'. This will do!

But now i am getting this error, when i type 'make' in /ECAT7/utils
/Documents/simulations/ecat7/utils$ make
cc -O -I..  -o matlist ./matlist.c ../libecat.a  -lrpcsvc -lnsl -lsocket
-lm
./matlist.c: In function ‘main’:
./matlist.c:22: warning: incompatible implicit declaration of built-in
function ‘exit’
cc -O -I..  -o show_header ./show_header.c ../libecat.a  -lrpcsvc -lnsl
-lsocket -lm
./show_header.c: In function ‘main’:
./show_header.c:28: warning: incompatible implicit declaration of built-in
function ‘exit’
./show_header.c:33: warning: incompatible implicit declaration of built-in
function ‘exit’
./show_header.c:66: warning: incompatible implicit declaration of built-in
function ‘exit’
./show_header.c: In function ‘show_main_header’:
./show_header.c:113: warning: format ‘%s’ expects type ‘char *’, but
argument 2 has type ‘int’
./show_header.c:119: warning: incompatible implicit declaration of built-in
function ‘strncpy’
./show_header.c:186: error: ‘dosage’ undeclared (first use in this function)
./show_header.c:186: error: (Each undeclared identifier is reported only
once
./show_header.c:186: error: for each function it appears in.)
./show_header.c:193: warning: format ‘%s’ expects type ‘char *’, but
argument 2 has type ‘int’
./show_header.c:194: warning: format ‘%d’ expects type ‘int’, but argument
2 has type ‘time_t’
./show_header.c: In function ‘show_image_subheader’:
./show_header.c:373: warning: format ‘%f’ expects type ‘double’, but
argument 4 has type ‘int’
./show_header.c: In function ‘day_time’:
./show_header.c:407: warning: incompatible implicit declaration of built-in
function ‘strncpy’
./show_header.c: In function ‘show_norm_subheader’:
./show_header.c:466: warning: format ‘%d’ expects type ‘int’, but argument
2 has type ‘double’
./show_header.c:467: warning: format ‘%d’ expects type ‘int’, but argument
2 has type ‘double’
make: *** [show_header] Error 1

is it ok?


More information about the Gate-users mailing list