Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4774 - ntop fails to compile
Summary: ntop fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Maik Schreiber
URL:
Whiteboard:
Keywords:
: 4772 4832 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-07-09 17:59 UTC by Seemant Kulleen (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ntop-2.0.99_rc2-r2.tgz (ntop-2.0.99_rc2-r2.tgz,2.16 KB, application/octet-stream)
2002-07-10 23:54 UTC, Markus Krainer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Seemant Kulleen (RETIRED) gentoo-dev 2002-07-09 17:59:17 UTC
.libs/libntopreport.so: undefined reference to `allow_severity'
.libs/libntopreport.so: undefined reference to `deny_severity'
collect2: ld returned 1 exit status
make[2]: *** [ntop] Error 1
make[2]: Leaving directory `/var/tmp/portage/ntop-2.0.99_rc2-r1/work/RC2/ntop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ntop-2.0.99_rc2-r1/work/RC2/ntop'
make: *** [all-recursive-am] Error 2
Comment 1 Maik Schreiber 2002-07-09 18:27:30 UTC

*** This bug has been marked as a duplicate of 4772 ***
Comment 2 Markus Krainer 2002-07-10 23:52:34 UTC
There are IMHO 2 problems:
1. you can't disable tcpwrap support (--disable-tcpwrap doesn't work)
2. tcpwrap support breaks ntop.

First was resolved by Maik with making tcpwrap a dependency.
I looked into the second and it looks like the problem is that allow_severity
and deny_severity are declared 'extern int' in /usr/include/tcpd.h but are
nowhere defined (don't know if they should be in libwrap.a).

As they are used in webInterface.c I wrote a patch to put them in there.
This works for me, but I think the better solution is to mask all 
2.0.99_rc2 versions.


Comment 3 Markus Krainer 2002-07-10 23:54:46 UTC
Created attachment 2133 [details]
ntop-2.0.99_rc2-r2.tgz

The ebuild and the patch I used.
Comment 4 Maik Schreiber 2002-07-11 07:47:25 UTC
*** Bug 4772 has been marked as a duplicate of this bug. ***
Comment 5 Maik Schreiber 2002-07-11 07:48:11 UTC
*** Bug 4832 has been marked as a duplicate of this bug. ***
Comment 6 Maik Schreiber 2002-07-11 08:21:05 UTC
Markus' patch works fine for me, good work!

I'm now checking in ntop-2.0.99_rc2-r2 with the patch as well as masking it out
for the time being. Please check if it works for you, too.