Mel I have noticed that on Linux this problem appears. The problem is that the Lua makefile does not include -fPIC. I need to add a patch to configure for adding this patch.
Luca On Jan 2, 2009, at 5:06 PM, Mel Beckman wrote: > I forgot to mention that this was checked out revision 3647. > ________________________________________ > From: ntop-boun...@unipi.it [ntop-boun...@unipi.it] On Behalf Of Mel > Beckman [...@beckman.org] > Sent: Friday, January 02, 2009 8:02 AM > To: ntop@unipi.it > Subject: [Ntop] liblua.a(lapi.o): relocation R_X86_64_32 against > `luaO_nilobject_' can not be used > > On a freshly built from LiveCD Fedora 10 X86_64 system (Core 2 Duo, > 3.2GB) make fails as shown below. A previous built on an identical > system performed just three days ago from the SVN at that time had > no problems. I see that a change was made in a response to someone > else having a problem with this same module on a Debian system. > Could this be fallout from that repair? > > -mel > > > gcc -shared .libs/emitter.o .libs/globals-report.o .libs/ > graph.o .libs/fcReport.o .libs/http.o .libs/perl.o .libs/ > report.o .libs/reportUtils.o .libs/ssl.o .libs/webInterface.o .libs/ > map.o .libs/lua.o -Wl,--rpath -Wl,/home/admin/src/ntop/ntop/ > GeoIP-1.4.5/libGeoIP/.libs/ -Wl,--rpath -Wl,/home/admin/src/ntop/ > ntop/.libs -Wl,--rpath -Wl,/usr/local/lib -L/home/admin/src/ntop/ > ntop/GeoIP-1.4.5/libGeoIP/.libs//.libs -L/usr/local/lib -L/opt/local/ > lib -L/home/admin/src/ntop/ntop/GeoIP-1.4.5/libGeoIP/.libs/ /home/ > admin/src/ntop/ntop/GeoIP-1.4.5/libGeoIP/.libs//libGeoIP.so ./.libs/ > libntop.so -L/home/admin/src/ntop/ntop/lua-5.1.4/src -lpthread - > lcrypt -lc -lssl -lcrypto -lrrd_th -lpcap -lgdbm -lz -llua -Wl,- > soname -Wl,libntopreport-3.3.9.so -o .libs/libntopreport-3.3.9.so > /usr/bin/ld: /home/admin/src/ntop/ntop/lua-5.1.4/src/ > liblua.a(lapi.o): relocation R_X86_64_32 against `luaO_nilobject_' > can not be used when making a shared object; recompile with -fPIC > /home/admin/src/ntop/ntop/lua-5.1.4/src/liblua.a: could not read > symbols: Bad value > collect2: ld returned 1 exit status > make[2]: *** [libntopreport.la] Error 1 > make[2]: Leaving directory `/home/admin/src/ntop/ntop' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/admin/src/ntop/ntop' > make: *** [all] Error 2 > _______________________________________________ > Ntop mailing list > Ntop@unipi.it > http://listgateway.unipi.it/mailman/listinfo/ntop > _______________________________________________ > Ntop mailing list > Ntop@unipi.it > http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list Ntop@unipi.it http://listgateway.unipi.it/mailman/listinfo/ntop