ntop ticket 14308

Charlse Darwin macports.users at gmail.com
Thu Mar 20 04:11:34 PDT 2008


On Mar 20, 2008, at 12:06 AM, Ryan Schmidt wrote:
>
> On Mar 19, 2008, at 21:53, Charlse Darwin wrote:
>
>> On Mar 19, 2008, at 6:34 PM, Shawn Protsman wrote:
>>
>>> This is in reference to http://trac.macosforge.org/projects/
>>> macports/ticket/14308
>>>   and hopefully helps the macport get fixed.
>>>
>>> Though the macport fails to build, the source can be built just  
>>> fine:
>>>
>>> 1 - Download ntop 3.3 source
>>> 2 - Run autogen.sh
>>> 3 - ./configure --with-gdbm-lib=/opt/local/lib --with-gdbm-include=/
>>> opt/local/include
>>> 4 - make; sudo make install
>>> 5 - run it and then log in to http://localhost:3000
>>>
>>> Everything works just fine.
>>
>> ~/ntop $ make
>> /local/lib/libntop-3.3.5.dylib
>> ld: warning -L: directory name (/usr/local/lib) does not exist
>
> Lots of software packages look in /usr/local automatically. It's  
> not a problem that this directory is absent.
>
>> ld: warning -L: directory name (/opt/local/lib/lib) does not exist
>
> I wonder why it says that. Could you show all previous lines that  
> mention /opt/local/lib/lib in the output?

$ sudo make install
Making install in .
test -z "/usr/local/lib" || /opt/local/bin/gmkdir -p "/usr/local/lib"
/bin/sh ./libtool   --mode=install /opt/local/bin/ginstall -c   
'libntop.la' '/usr/local/lib/libntop.la'
/opt/local/bin/ginstall -c .libs/libntop-3.3.5.dylib /usr/local/lib/ 
libntop-3.3.5.dylib
(cd /usr/local/lib && rm -f libntop.dylib && ln -s  
libntop-3.3.5.dylib libntop.dylib)
/opt/local/bin/ginstall -c .libs/libntop.lai /usr/local/lib/libntop.la
/opt/local/bin/ginstall -c .libs/libntop.a /usr/local/lib/libntop.a
ranlib /usr/local/lib/libntop.a
chmod 644 /usr/local/lib/libntop.a
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
  /bin/sh ./libtool   --mode=install /opt/local/bin/ginstall -c   
'libntopreport.la' '/usr/local/lib/libntopreport.la'
libtool: install: warning: relinking `libntopreport.la'
(cd /Users/pm/ntop; /bin/sh ./libtool --mode=relink gcc -no-cpp- 
precomp -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow - 
Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested- 
externs -fno-common -DPIC -release 3.3.5 -export-dynamic -L/usr/local/ 
lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib/lib -o  
libntopreport.la -rpath /usr/local/lib emitter.lo globals-report.lo  
graph.lo fcReport.lo http.lo report.lo reportUtils.lo ssl.lo  
webInterface.lo libntop.la -lpthread -lc -lssl -lrrd_th -lpcre -lgdbm  
-L/usr/lib -lnetsnmp -lcrypto -lz -lm -lwrap -lpcap )
mv: rename libntopreport-3.3.5.dylib to libntopreport-3.3.5.dylibU:  
No such file or directory
libtool: install: error: relink `libntopreport.la' with the above  
command before installing it
make[2]: *** [install-libLTLIBRARIES] Error 1
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1
$


>
>> ld: flag: -undefined dynamic_lookup can't be used with
>> MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
>
> Since you appear to be using Mac OS X 10.4, set the  
> MACOSX_DEPLOYMENT_TARGET environment variable to 10.4 for the  
> duration of your attempt to build this software. MacPorts sets this  
> variable for you automatically but if you're compiling manually,  
> set the variable manually, e.g. if your shell is bash:
>
> export MACOSX_DEPLOYMENT_TARGET=10.4
>
>> /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal  
>> link edit
>> command failed
>
> Probably due to the above.
>
>> make[2]: *** [libntop.la] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>
>



More information about the macports-users mailing list