Menu

#14 make error, on Mac OS BSD Darwin

open
nobody
None
5
2005-04-13
2005-04-13
No

seems there is a swap between some include lines...

#include <netinet/in.h>
#include <arpa/inet.h>

should be in this order :

#include <arpa/inet.h>
#include <netinet/in.h>

because "netinet" need "in_addr_t" type defined to work.

I fixed that in following files:

inspectsocks.c
parser.c
validateconf.c
tsocks.c

;)

but I continue to encounter bugs..... please help :

========
bipro-frj:~/Desktop/DLs/tsocks-1.8 root# make
gcc -fPIC -g -O2 -Wall -I. -c tsocks.c -o tsocks.o
gcc -fPIC -g -O2 -Wall -I. -c parser.c -o parser.o
parser.c: In function `make_netent':
parser.c:537: warning: passing arg 2 of `inet_aton' from incompatible
pointer type
parser.c:546: warning: passing arg 2 of `inet_aton' from incompatible
pointer type
gcc -fPIC -g -O2 -Wall -I. -nostdlib -shared -o libtsocks.so.1.8
tsocks.o common.o parser.o -ldl -lc
gcc: unrecognized option `-shared'
ld: warning multiple definitions of symbol _close
tsocks.o definition of _close in section (__TEXT,__text)
/usr/lib/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/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/libdl.dylib(select.So) definition of _select
ld: Undefined symbols:
dyld_stub_binding_helper
make: *** [libtsocks.so.1.8] Error 1
========

Discussion


Log in to post a comment.