ntop ticket 14308

Shawn Protsman protsman at mac.com
Thu Mar 20 10:08:42 PDT 2008


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.


More information about the macports-users mailing list