Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Mar 2015 23:10:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 198994] net/ipsumdump 1.85 fails to link on amd64 and i386 10.1Stable
Message-ID:  <bug-198994-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198994

            Bug ID: 198994
           Summary: net/ipsumdump 1.85 fails to link on amd64 and i386
                    10.1Stable
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: dewayne@heuristicsystems.com.au

Unfortunately attempting to compile 1.85 on the latest stable 10.1 using both
gcc48 on i386 and clang on amd64 resulted in undefined references, per below:


amd64 with clang on 10.1-STABLE FreeBSD 10.1-STABLE #0 r280481M amd64

usr/local/libexec/ccache/c++ -O2 -pipe -g0 -ggdb0 -DSTRIP_FBSDID
-march=core-avx-i -fno-strict-aliasing   -o ipsumdump -rdynamic fromdagdump.o
fromdevice.o fromdump.o fromipsumdump.o fromnetflowsumdump.o fromnlanrdump.o
fromtcpdump.o kernelfilter.o ipsumdumpinfo.o ipsumdump_anno.o ipsumdump_icmp.o
ipsumdump_ip.o ipsumdump_link.o ipsumdump_payload.o ipsumdump_tcp.o
ipsumdump_udp.o toipsumdump.o todump.o anonipaddr.o changeuid.o
classification.o classifier.o counter.o drivermanager.o discard.o fakepcap.o
ipfilter.o ipnameinfo.o netmapinfo.o progressbar.o randomsample.o script.o
switch.o tee.o timefilter.o timesortedsched.o truncateippayload.o unqueue.o
ipsumdump.o sd_elements.o ../libclick-2.1/libsrc/libclick.a
`../libclick-2.1/click-buildtool --otherlibs`
fromdevice.o: In function `FromDevice::open_pcap(String, int, bool,
ErrorHandler*)':
fromdevice.cc:(.text+0xa77): undefined reference to `pcap_set_tstamp_precision'
fromdevice.o: In function `FromDevice::initialize(ErrorHandler*)':
fromdevice.cc:(.text+0xd9c): undefined reference to `pcap_get_tstamp_precision'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:101: recipe for target 'ipsumdump' failed
gmake[2]: *** [ipsumdump] Error 1
gmake[2]: Leaving directory
'/var/ports/usr/ports/net/ipsumdump/work/ipsumdump-1.85/src'
Makefile:40: recipe for target 'src' failed
gmake[1]: *** [src] Error 2
gmake[1]: Leaving directory
'/var/ports/usr/ports/net/ipsumdump/work/ipsumdump-1.85'
*** Error code 1


And on i386 where I'm using gcc4.8.4_1 on 10.1-STABLE FreeBSD 10.1-STABLE #0
r280481M i386

g++48 -O2 -pipe -g0 -ggdb0 -DSTRIP_FBSDID -march=c3-2 -mtune=c3-2
-fno-strict-aliasing   -o ipsumdump -rdynamic fromdagdump.o fromdevice.o
fromdump.o fromipsumdump.o fromnetflowsumdump.o fromnlanrdump.o fromtcpdump.o
kernelfilter.o ipsumdumpinfo.o ipsumdump_anno.o ipsumdump_icmp.o ipsumdump_ip.o
ipsumdump_link.o ipsumdump_payload.o ipsumdump_tcp.o ipsumdump_udp.o
toipsumdump.o todump.o anonipaddr.o changeuid.o classification.o classifier.o
counter.o drivermanager.o discard.o fakepcap.o ipfilter.o ipnameinfo.o
netmapinfo.o progressbar.o randomsample.o script.o switch.o tee.o timefilter.o
timesortedsched.o truncateippayload.o unqueue.o ipsumdump.o sd_elements.o
../libclick-2.1/libsrc/libclick.a `../libclick-2.1/click-buildtool --otherlibs`
fromdevice.o: In function `FromDevice::open_pcap(String, int, bool,
ErrorHandler*)':
fromdevice.cc:(.text+0x26b): undefined reference to `pcap_set_tstamp_precision'
fromdevice.o: In function `FromDevice::initialize(ErrorHandler*)':
fromdevice.cc:(.text.unlikely+0x457): undefined reference to
`pcap_get_tstamp_precision'
collect2: error: ld returned 1 exit status
Makefile:101: recipe for target 'ipsumdump' failed
gmake[2]: *** [ipsumdump] Error 1
gmake[2]: Leaving directory
'/var/ports/usr/ports/net/ipsumdump/work/ipsumdump-1.85/src'
Makefile:40: recipe for target 'src' failed
gmake[1]: *** [src] Error 2
gmake[1]: Leaving directory
'/var/ports/usr/ports/net/ipsumdump/work/ipsumdump-1.85'
*** Error code 1



Workaround - reverting to 1.84 :(

svnlite update -r "{2015-03-21}" /usr/ports/net/ipsumdump

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198994-13>