Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Apr 2005 22:14:30 -0400
From:      Mike Schroll <FreeBSD@LogicX.us>
To:        clement@FreeBSD.org, bms@FreeBSD.org
Cc:        ports@FreeBSD.org
Subject:   ntop-3.1_1 / libpcap-0.8.3 -fPIC on amd64
Message-ID:  <426C5286.5060606@LogicX.us>

next in thread | raw e-mail | index | archive | help
Another port I came across which seemingly doesn't handle amd64 -fPIC 
properly.
In conversation with lev regarding subversion, I'd like to hear what the 
proper procedure is for handling -fPIC

as once again I have in my /etc/make.conf:
CFLAGS?= -Os -fPIC -pipe

I compiled with: WITHOUT_LOCALE=true WITH_PCAP_PORT=true 
WITH_XMLDUMP=true WITH_TCPWRAPPER=true

rm -fr .libs/libntop.la .libs/libntop.* .libs/libntop-3.1.*
cc -shared  -Wl,--rpath -Wl,/usr/local/lib  address.lo argv.lo 
dataFormat.lo fcUtils.lo getopt.lo getopt1.lo globals-core.lo hash.lo 
iface.lo initialize.lo leaks.lo ntop.lo pbuf.lo plugin.lo prefs.lo 
protocols.lo sessions.lo term.lo util.lo traffic.lo vendor.lo version.lo 
ntop_darwin.lo  -L/usr/local/lib -L/usr/lib -lgdome -lxml2 -lglib-2.0 
-lpthread -lc -lcrypt -lssl -lcrypto -lpcap -lgdbm -lgd -lpng -lz 
-lwrap  -Wl,-soname -Wl,libntop-3.1.so -o .libs/libntop-3.1.so
/usr/bin/ld: /usr/local/lib/libpcap.a(pcap-bpf.o): relocation 
R_X86_64_32 can not be used when making a shared object; recompile with 
-fPIC
/usr/local/lib/libpcap.a: could not read symbols: Bad value
gmake[2]: *** [libntop.la] Error 1
gmake[2]: Leaving directory `/usr/ports/net/ntop/work/ntop'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/net/ntop/work/ntop'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/net/ntop.
*** Error code 1

Stop in /usr/ports/net/ntop.
** Command failed [exit code 1]: /usr/bin/script -qa 
/tmp/portupgrade80600.1 make WITHOUT_X11=yes
** Fix the problem and try again.


-Mike Schroll

-- 
Applied Networking System Administration Major
Rochester Institute of Technology
Rochester, NY

Information Sciences and Technology Major
Penn State University
University Park, PA

FreeBSD@LogicX.us
AIM: L0g1cX
http://MSchroll.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?426C5286.5060606>