[Tcpick-project] OS X 10.9.2 Mavericks build instructions
Status: Beta
Brought to you by:
duskdruid
From: David D. <dav...@gm...> - 2014-04-03 08:49:13
|
Hi all, I had a trouble creating a build for my OS X 10.9.2 Mavericks. I noticed other posts that pointed to compiling tcpick as a 32bit executable with: $ CFLAGS=-m32 ./configure $ make $ sudo make install But still I was getting the following errors after make: gcc -m32 -o tcpick args.o display.o lookup_tree.o lookup_query.o loop.o tracker.o tcpick.o write.o datalink.o verify.o colors.o time.o timer.o debug.o fragments.o quit.o msg.o -lpcap Undefined symbols for architecture i386: "_avail_filename", referenced from: _open_file in write.o "_verify", referenced from: _got_packet in loop.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) What helped me was removing all the __inline__ keywords from all the source files they were in: grep -rl __inline__ src/ | xargs sed -i '' -e 's/__inline__//g' And then following the above instructions: CFLAGS=-m32 ./configure make sudo make install Note that my knowledge of C is fading out with every year so I'm not sure if removing the __inline__ causes some hurt but I can finally run tcpick! Thanks for the project! David --- David Durman client IO http://client.io +31630368524 |