ntop ticket 14308

Ryan Schmidt ryandesign at macports.org
Wed Mar 19 21:06:19 PDT 2008


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




More information about the macports-users mailing list