Skip to content

Instantly share code, notes, and snippets.

@tisba
Created April 11, 2013 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tisba/5366459 to your computer and use it in GitHub Desktop.
Save tisba/5366459 to your computer and use it in GitHub Desktop.
==> Downloading http://downloads.sourceforge.net/project/justniffer/justniffer/justniffer%200.5.11/justniffer_0.5.11.tar.gz
Already downloaded: /Library/Caches/Homebrew/justniffer-0.5.11.tar.gz
tar xf /Library/Caches/Homebrew/justniffer-0.5.11.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file lib/libnids-1.21_patched/configure.gnu
==> ./configure --prefix=/usr/local/Cellar/justniffer/0.5.11
./configure --prefix=/usr/local/Cellar/justniffer/0.5.11
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for bash... yes
BASH_F= yes
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of c++... gcc3
checking dependency style of c++... (cached) gcc3
i686-apple-darwin11-llvm-gcc-4.2: no input files
checking for gcc... cc
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking dependency style of cc... gcc3
checking dependency style of cc... (cached) gcc3
checking how to run the C preprocessor... cc -E
checking for ranlib... ranlib
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for strftime... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking netinet/ip.h usability... yes
checking netinet/ip.h presence... yes
checking for netinet/ip.h... yes
checking for pcap_open_live in -lpcap... yes
checking for boostlib >= 1.20.0... yes
checking whether the Boost::Regex library is available... yes
checking for exit in -lboost_regex-mt... yes
checking whether the Boost::Program_Options library is available... yes
checking for exit in -lboost_program_options-mt... yes
checking whether the Boost::IOStreams library is available... yes
checking for exit in -lboost_iostreams-mt... yes
checking for lib/libnids-1.21_patched/README.original... yes
checking for a Python interpreter with version >= 2.4... python
checking for python... /usr/local/opt/python/bin/python
checking for python version... 2.7
checking for python platform... darwin
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating python/Makefile
config.status: creating include/config.h
config.status: executing depfiles commands
=== configuring in lib/libnids-1.21_patched (/private/tmp/justniffer-2apG/justniffer-0.5.11/lib/libnids-1.21_patched)
configure: running /bin/sh ./configure.gnu --disable-option-checking '--prefix=/usr/local/Cellar/justniffer/0.5.11' 'CXX=c++' 'CC=cc' --cache-file=/dev/null --srcdir=.
checking build system type... i386-apple-darwin12.3.0
checking host system type... i386-apple-darwin12.3.0
checking target system type... i386-apple-darwin12.3.0
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether byte ordering is bigendian... no
checking for gettimeofday... yes
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking for libpcap... yes
skipping glib2 support
checking for libnet... no
skipping libnet
checking whether to build shared library... no
checking the name of struct icmp... struct icmp
checking if tcp states are defined... no
checking for bsd-ish struct udphdr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: WARNING: 'src/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating samples/Makefile
config.status: creating src/config.h
==> make install
make install
Making install in lib/libnids-1.21_patched
cd src ; /usr/bin/make _install
cc -c -g -O2 -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=0 -DHAVE_TCP_STATES=0 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include/pcap checksum.c
cc -c -g -O2 -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=0 -DHAVE_TCP_STATES=0 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include/pcap ip_fragment.c
cc -c -g -O2 -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=0 -DHAVE_TCP_STATES=0 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include/pcap ip_options.c
cc -c -g -O2 -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=0 -DHAVE_TCP_STATES=0 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include/pcap killtcp.c
cc -c -g -O2 -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=0 -DHAVE_TCP_STATES=0 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include/pcap libnids.c
cc -c -g -O2 -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=0 -DHAVE_TCP_STATES=0 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include/pcap scan.c
cc -c -g -O2 -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=0 -DHAVE_TCP_STATES=0 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include/pcap tcp.c
cc -c -g -O2 -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=0 -DHAVE_TCP_STATES=0 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include/pcap util.c
brew: superenv removed: -g -O2 -W -Wall
brew: superenv removed: -g -O2 -W -Wall
brew: superenv removed: -g -O2 -W -Wall
brew: superenv removed: -g -O2 -W -Wall
brew: superenv removed: -g -O2 -W -Wall
brew: superenv removed: -g -O2 -W -Wall
brew: superenv removed: -g -O2 -W -Wall
brew: superenv removed: -g -O2 -W -Wall
cc -c -g -O2 -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=0 -DHAVE_TCP_STATES=0 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include/pcap allpromisc.c
cc -c -g -O2 -D_BSD_SOURCE -W -Wall -DLIBNET_VER=-1 -DHAVE_ICMPHDR=0 -DHAVE_TCP_STATES=0 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include/pcap hash.c
brew: superenv removed: -g -O2 -W -Wall
brew: superenv removed: -g -O2 -W -Wall
ar -cr libnids2.a checksum.o ip_fragment.o ip_options.o killtcp.o libnids.o scan.o tcp.o util.o allpromisc.o hash.o
/usr/bin/ranlib: file: libnids2.a(allpromisc.o) has no symbols
ranlib libnids2.a
ranlib: file: libnids2.a(allpromisc.o) has no symbols
../mkinstalldirs /usr/local/Cellar/justniffer/0.5.11/lib
mkdir /usr/local/Cellar/justniffer/0.5.11/lib
../mkinstalldirs /usr/local/Cellar/justniffer/0.5.11/include
mkdir /usr/local/Cellar/justniffer/0.5.11/include
../mkinstalldirs /usr/local/Cellar/justniffer/0.5.11/share/man/man3
mkdir /usr/local/Cellar/justniffer/0.5.11/share
mkdir /usr/local/Cellar/justniffer/0.5.11/share/man
mkdir /usr/local/Cellar/justniffer/0.5.11/share/man/man3
# we don't want to distribute the patched version of libnids. It is usefull just for justniffer
#/usr/bin/install -c -c -m 644 libnids2.a /usr/local/Cellar/justniffer/0.5.11/lib
#/usr/bin/install -c -c -m 644 nids2.h /usr/local/Cellar/justniffer/0.5.11/include
Making install in src
c++ -DHAVE_CONFIG_H -I. -I../include -I ../lib/libnids-1.21_patched/src -I/usr/local/include -I ../include -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
c++ -DHAVE_CONFIG_H -I. -I../include -I ../lib/libnids-1.21_patched/src -I/usr/local/include -I ../include -g -O2 -MT formatter.o -MD -MP -MF .deps/formatter.Tpo -c -o formatter.o formatter.cpp
c++ -DHAVE_CONFIG_H -I. -I../include -I ../lib/libnids-1.21_patched/src -I/usr/local/include -I ../include -g -O2 -MT utilities.o -MD -MP -MF .deps/utilities.Tpo -c -o utilities.o utilities.cpp
c++ -DHAVE_CONFIG_H -I. -I../include -I ../lib/libnids-1.21_patched/src -I/usr/local/include -I ../include -g -O2 -MT regex.o -MD -MP -MF .deps/regex.Tpo -c -o regex.o regex.cpp
brew: superenv removed: -I/usr/local/include -g -O2
brew: superenv removed: -I/usr/local/include -g -O2
brew: superenv removed: -I/usr/local/include -g -O2
brew: superenv removed: -I/usr/local/include -g -O2
mv -f .deps/utilities.Tpo .deps/utilities.Po
mv -f .deps/regex.Tpo .deps/regex.Po
mv -f .deps/main.Tpo .deps/main.Po
mv -f .deps/formatter.Tpo .deps/formatter.Po
c++ -g -O2 -o justniffer main.o formatter.o utilities.o regex.o -L../lib/libnids-1.21_patched/src -lnids2 -lpcap -L/usr/local/lib -lboost_regex-mt -lboost_program_options-mt
brew: superenv removed: -g -O2 -L/usr/local/lib
Undefined symbols for architecture x86_64:
"_after", referenced from:
_process_tcp in libnids2.a(tcp.o)
_add_from_skb in libnids2.a(tcp.o)
"_before", referenced from:
_process_tcp in libnids2.a(tcp.o)
_add_from_skb in libnids2.a(tcp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [justniffer] Error 1
make: *** [install-recursive] Error 1
==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: f5543c372454b215f2cfda648ae875179c8ceef8
CPU: 8-core 64-bit ivybridge
OS X: 10.8.3-x86_64
Xcode: 4.6.1
CLT: 4.6.0.0.1.1358221012
X11: 2.7.4 => /opt/X11
==> ENV
CC: cc
CXX: c++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.8
ACLOCAL_PATH: /usr/local/share/aclocal
OBJC: cc
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/python/bin:/usr/bin:/bin:/usr/sbin:/sbin
Error: justniffer did not build
Logs: /Users/basti/Library/Logs/Homebrew/justniffer/config.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment