Opened 19 years ago
Closed 19 years ago
#3788 closed defect (fixed)
net/tsocks fails to configure and build
Reported by: | jay@… | Owned by: | tobypeterson |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | ||
Port: |
Description
tsocks fails in configure:
checking for correct poll prototype... configure: error: no match found!
But a quick hack change to fix that still doesn't let the build succeed: ---> Building tsocks with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_net_tsocks/work/tsocks-1.8" && make all CC_SWITCHES="-fno-common"" returned error 2 Command output: gcc -fPIC -g -O2 -Wall -I. -c -fno-common tsocks.c -o tsocks.o tsocks.c: In function 'connect': tsocks.c:215: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness tsocks.c:271: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness gcc -fPIC -g -O2 -Wall -I. -c -fno-common common.c -o common.o gcc -fPIC -g -O2 -Wall -I. -c -fno-common parser.c -o parser.o gcc -fPIC -g -O2 -Wall -I. -nostdlib -dynamiclib -o libtsocks.so.1.8 tsocks.o common.o parser.o -ldl -lc ld: warning multiple definitions of symbol _close tsocks.o definition of _close in section (TEXT,text) /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libdl.dylib(close.So) definition of _close ld: warning multiple definitions of symbol _connect tsocks.o definition of _connect in section (TEXT,text) /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libdl.dylib(connect.So) definition of _connect ld: warning multiple definitions of symbol _select tsocks.o definition of _select in section (TEXT,text) /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libdl.dylib(select.So) definition of _select ld: warning prebinding disabled because of undefined symbols ld: Undefined symbols: _fprintf$LDBLStub _printf$LDBLStub _vfprintf$LDBLStub /usr/bin/libtool: internal link edit command failed make: * [libtsocks.so.1.8] Error 1
Change History (4)
comment:1 Changed 19 years ago by mww@…
Owner: | changed from darwinports-bugs@… to toby@… |
---|
comment:2 Changed 19 years ago by toby@…
Fixed the configure test, not quite sure how to fix the linking error.
comment:3 Changed 19 years ago by opendarwin@…
Easy fix:
add "-lSystemStubs" to the LIBS in the Makefile so that the line is: LIBS = -lc -lSystemStubs
and everything works.
comment:4 Changed 19 years ago by toby@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Removed -nostdlib, seems to compile now
please try to assign bugs to the responsible maintainer;