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. --Shawn
~/ntop $ make /local/lib/libntop-3.3.5.dylib ld: warning -L: directory name (/usr/local/lib) does not exist ld: warning -L: directory name (/opt/local/lib/lib) does not exist ld: flag: -undefined dynamic_lookup can't be used with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1/usr/ libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit command failed make[2]: *** [libntop.la] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Charles 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.
--Shawn _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
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?
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
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
Well, after seeing your output I decided to build ntop on 10.5.2 (previously built on 10.4.11). I had to add a parameter to configure: $ ./configure --with-gdbm-lib=/opt/local/lib --with-gdbm-include=/opt/ local/include --with-localedir=/usr/share/locale naiad:~/workspace/ntop-3.3 $ make make all-recursive Making all in . /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. - I. -I/opt/local/include -g -Os -DBUILD=112 - DMACOSX_DEPLOYMENT_TARGET=10.5 -F/System/Library/PrivateFrameworks/ -F/ System/Library/Frameworks/ -pipe -Udarwin9 -Ddarwin9=darwin9 -I. -I/ usr/local/include -DDARWIN -I/usr/local/include -I/opt/local/ include -no-cpp-precomp -g -O2 -I/usr/local/include -Wshadow - Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested- externs -fno-common -DPIC -MT address.lo -MD -MP -MF .deps/ address.Tpo -c -o address.lo address.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I/opt/local/include -g -Os -DBUILD=112 - DMACOSX_DEPLOYMENT_TARGET=10.5 -F/System/Library/PrivateFrameworks/ -F/ System/Library/Frameworks/ -pipe -Udarwin9 -Ddarwin9=darwin9 -I. -I/ usr/local/include -DDARWIN -I/usr/local/include -I/opt/local/include - no-cpp-precomp -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith - Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno- common -DPIC -MT address.lo -MD -MP -MF .deps/address.Tpo -c address.c -fno-common -DPIC -o .libs/address.o In file included from ntop.h:484, from address.c:21: globals-structtypes.h:103: error: two or more data types in declaration specifiers globals-structtypes.h:103: warning: useless type name in empty declaration make[2]: *** [address.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Bummer! --Shawn On Mar 19, 2008, at 7:53 PM, Charlse Darwin wrote:
~/ntop $ make /local/lib/libntop-3.3.5.dylib ld: warning -L: directory name (/usr/local/lib) does not exist ld: warning -L: directory name (/opt/local/lib/lib) does not exist ld: flag: -undefined dynamic_lookup can't be used with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1/usr/ libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit command failed make[2]: *** [libntop.la] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Charles
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.
In article <7FDA5183-1C7A-4D56-BAC4-6853B96E0468@mac.com>, Shawn Protsman <protsman@mac.com> 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
I tried this and got the error below. Any hints? Cheers, Darrell ---
checking if compiler accepts -W (warning flags)... yes
Critical library/include tests...
found in /usr/local checking for pcap_next_ex in -lpcap... yes checking for gdbm... checking gdbm.h usability... no checking gdbm.h presence... no checking for gdbm.h... no checking for gdbm_open in -lgdbm... no
******************************************************************* * * ERROR: gdbm header or library routines are missing * (yes means it was found, no means it was not found) * * gdbm.h...no * gdbm_open() in -lgdbm...no * *>>> No way to proceed. * *??? 1. Install libgdbm *??? and Rerun ./configure *??? or 2. Use the --with-gdbm-xxxxx= options * *******************************************************************
configure: error: Unable to continue... aborting ./configure aabs:~/ntop-3.3 darrell$
-- To reply, substitute .net for .invalid in address, i.e., darrell.usenet6 (at) telus.net
Hi Darrel, The port has been fixed. I was able to install the ntop port without issue a week or so ago. --Shawn On Mar 29, 2008, at 11:34 AM, Darrell Greenwood wrote:
In article <7FDA5183-1C7A-4D56-BAC4-6853B96E0468@mac.com>, Shawn Protsman <protsman@mac.com> 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
I tried this and got the error below. Any hints?
Cheers,
Darrell
---
checking if compiler accepts -W (warning flags)... yes
Critical library/include tests...
found in /usr/local checking for pcap_next_ex in -lpcap... yes checking for gdbm... checking gdbm.h usability... no checking gdbm.h presence... no checking for gdbm.h... no checking for gdbm_open in -lgdbm... no
******************************************************************* * * ERROR: gdbm header or library routines are missing * (yes means it was found, no means it was not found) * * gdbm.h...no * gdbm_open() in -lgdbm...no * *>>> No way to proceed. * *??? 1. Install libgdbm *??? and Rerun ./configure *??? or 2. Use the --with-gdbm-xxxxx= options * *******************************************************************
configure: error: Unable to continue... aborting ./configure aabs:~/ntop-3.3 darrell$
-- To reply, substitute .net for .invalid in address, i.e., darrell.usenet6 (at) telus.net
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
In article <1068BB89-C5DE-4DCF-9392-56D2780CFF7C@mac.com>, Shawn Protsman <protsman@mac.com> wrote:
Hi Darrel,
The port has been fixed. I was able to install the ntop port without issue a week or so ago.
--Shawn
Hmm. http://trac.macosforge.org/projects/macports/ticket/14308 is still open. I just tried to install ntop again. Still didn't work for me, albeit with a different error output now after the first few error lines. Running an iBook G4, 10.4.11. Any hints? Many thanks, Darrell aabs:/Users/darrell adm$ sudo port selfupdate MacPorts base version 1.600 installed Downloaded MacPorts base version 1.600 The MacPorts installation is not outdated and so was not updated selfupdate done! aabs:/Users/darrell adm$ sudo port clean --all ntop ---> Cleaning ntop aabs:/Users/darrell adm$ sudo port install ntop ---> Fetching ntop ---> Attempting to fetch ntop-3.3.tar.gz from http://downloads.sourceforge.net/ntop ---> Verifying checksum(s) for ntop ---> Extracting ntop ---> Applying patches to ntop ---> Configuring ntop ---> Building ntop with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.mac ports.org_release_ports_net_ntop/work/ntop-3.3" && gnumake all " returned error 2 Command output: address.c:634: error: request for member 'addressQueuedCurrent' in something not a structure or union address.c:635: error: request for member 'queueAddressMutex' in something not a structure or union address.c: In function 'dequeueAddress': address.c:651: error: request for member 'ntopRunState' in something not a structure or union address.c:656: error: request for member 'queueAddressCondvar' in something not a structure or union address.c:658: error: request for member 'ntopRunState' in something not a structure or union address.c:664: error: request for member 'addressQueueFile' in something not a structure or union address.c:669: error: request for member 'ntopRunState' in something not a structure or union address.c:696: error: request for member 'queueAddressMutex' in something not a structure or union address.c:697: error: request for member 'addressQueuedCurrent' in something not a structure or union address.c:697: error: request for member 'addressQueuedCurrent' in something not a structure or union address.c:698: error: request for member 'queueAddressMutex' in something not a structure or union address.c:700: error: request for member 'addressQueueFile' in something not a structure or union address.c:702: error: request for member 'addressQueueFile' in something not a structure or union address.c:707: error: request for member 'dequeueAddressThreadId' in something not a structure or union address.c: In function 'fetchAddressFromCache': address.c:843: error: request for member 'numFetchAddressFromCacheCalls' in something not a structure or union address.c:854: error: request for member 'dnsCacheFile' in something not a structure or union address.c:856: error: request for member 'dnsCacheFile' in something not a structure or union address.c:871: error: request for member 'actTime' in something not a structure or union address.c:872: error: request for member 'numFetchAddressFromCacheCallsOK' in something not a structure or union address.c:875: error: request for member 'numFetchAddressFromCacheCallsSTALE' in something not a structure or union address.c:881: error: request for member 'numFetchAddressFromCacheCallsFAIL' in something not a structure or union address.c: In function 'ipaddr2str': address.c:914: error: request for member 'numipaddr2strCalls' in something not a structure or union address.c: In function 'checkSpoofing': address.c:1823: error: request for member 'runningPref' in something not a structure or union gnumake[2]: *** [address.lo] Error 1 gnumake[1]: *** [all-recursive] Error 1 gnumake: *** [all] Error 2 Error: Status 1 encountered during processing. aabs:~ darrell$ uname -a Darwin aabs.dyndns.org 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
participants (4)
-
Charlse Darwin
-
Darrell Greenwood
-
Ryan Schmidt
-
Shawn Protsman