Skip to content
Prev 164114 / 398503 Next

errors with compilation

thanks. i noticed a syntax error. a missing semi colon.

any idea about the error below?

cc -I. -I../../../src/include -I../../../src/include -I/usr/local/ 
include -DHAVE_CONFIG_H   -fPIC  -g -O2  -c Rsock.c -o Rsock.o
/opt/cray/xt-asyncpe/1.2/bin/cc: INFO: linux target is being used
cc -I. -I../../../src/include -I../../../src/include -I/usr/local/ 
include -DHAVE_CONFIG_H   -fPIC  -g -O2  -c internet.c -o internet.o
/opt/cray/xt-asyncpe/1.2/bin/cc: INFO: linux target is being used
cc -I. -I../../../src/include -I../../../src/include -I/usr/local/ 
include -DHAVE_CONFIG_H   -fPIC  -g -O2  -c nanoftp.c -o nanoftp.o
/opt/cray/xt-asyncpe/1.2/bin/cc: INFO: linux target is being used
cc -I. -I../../../src/include -I../../../src/include -I/usr/local/ 
include -DHAVE_CONFIG_H   -fPIC  -g -O2  -c nanohttp.c -o nanohttp.o
/opt/cray/xt-asyncpe/1.2/bin/cc: INFO: linux target is being used
cc -I. -I../../../src/include -I../../../src/include -I/usr/local/ 
include -DHAVE_CONFIG_H   -fPIC  -g -O2  -c sock.c -o sock.o
/opt/cray/xt-asyncpe/1.2/bin/cc: INFO: linux target is being used
cc -I. -I../../../src/include -I../../../src/include -I/usr/local/ 
include -DHAVE_CONFIG_H   -fPIC  -g -O2  -c sockconn.c -o sockconn.o
/opt/cray/xt-asyncpe/1.2/bin/cc: INFO: linux target is being used
cc -shared -fPIC  -L/usr/local/lib64 -o internet.so Rsock.o internet.o  
nanoftp.o nanohttp.o sock.o sockconn.o
/opt/cray/xt-asyncpe/1.2/bin/cc: INFO: linux target is being used
/usr/bin/ld: /usr/lib64/libpthread.a(ptw-fcntl.o): relocation  
R_X86_64_32 against `a local symbol' can not be used when making a  
shared object; recompile with -fPIC
/usr/lib64/libpthread.a: could not read symbols: Bad value
make[4]: *** [internet.so] Error 2

jason
On 09/12/2008, at 4:50 PM, Prof Brian Ripley wrote:

            
Jason Tan
Senior Computer Support Officer
Western Australian Supercomputer Program (WASP)
The University of Western Australia
M024
35 Stirling Highway
CRAWLEY WA 6009
Ph: +618 64888742
Fax: +618 6488 8088
Email: jason.tan at uwa.edu.au
Web: www.wasp.uwa.edu.au