Bug 175390 - net/ntop fails if python27 is configured with PTH
Summary: net/ntop fails if python27 is configured with PTH
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-18 01:30 UTC by David Coursey
Modified: 2014-08-11 10:13 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Coursey 2013-01-18 01:30:00 UTC
Installed a very minimal system to act as a bridging firewall.  After the bridge and pf were working tried to install ntop-5.0.1.

Installing the ntop port failed with the errors outlined below.

The full install log is here:  http://pastebin.com/4Vgvk9yj

My forum post that was solved is here:  http://forums.freebsd.org/showthread.php?t=37024




Here are the last few lines of the error:

/usr/local/include/pth/pth.h:577:1: warning: "sendto" redefined
In file included from ntop.h:254,
                 from globals-core.c:26:
/usr/local/include/pth/pthread.h:535:1: warning: this is the location of the previous definition
In file included from /usr/local/include/python2.7/Python.h:166,
                 from ntop.h:485,
                 from globals-core.c:26:
/usr/local/include/pth/pth.h:578:1: warning: "pread" redefined
In file included from ntop.h:254,
                 from globals-core.c:26:
/usr/local/include/pth/pthread.h:536:1: warning: this is the location of the previous definition
In file included from /usr/local/include/python2.7/Python.h:166,
                 from ntop.h:485,
                 from globals-core.c:26:
/usr/local/include/pth/pth.h:579:1: warning: "pwrite" redefined
In file included from ntop.h:254,
                 from globals-core.c:26:
/usr/local/include/pth/pthread.h:537:1: warning: this is the location of the previous definition
In file included from ntop.h:523,
                 from globals-core.c:26:
globals-core.h:900:1: warning: "sleep" redefined
In file included from /usr/local/include/python2.7/Python.h:166,
                 from ntop.h:485,
                 from globals-core.c:26:
/usr/local/include/pth/pth.h:562:1: warning: this is the location of the previous definition
gmake[2]: *** [globals-core.lo] Error 1
gmake[2]: Leaving directory `/usr/ports/net/ntop/work/ntop-5.0.1'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/net/ntop/work/ntop-5.0.1'
gmake: *** [all] Error 2
*** [do-build] Error code 1

Stop in /usr/ports/net/ntop.
*** [install] Error code 1

Stop in /usr/ports/net/ntop.
root@fw:/usr/ports/net/ntop #

Fix: 

Compile Python 2.7 with PTH disabled.
How-To-Repeat: 1. Install 9.1-RELEASE
2. Install ntop from ports
3. Receive error
4. Disable python27 PTH 
5. Install ntop successfully
Comment 1 Edwin Groothuis freebsd_committer 2013-01-18 04:10:45 UTC
Class Changed
From-To: maintainer-update->change-request

Fix category (submitter is not maintainer) (via the GNATS Auto Assign 
Tool)
Comment 2 Edwin Groothuis freebsd_committer 2013-01-18 04:10:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sylvio

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 3 John Marino freebsd_committer 2014-06-11 19:03:19 UTC
This port has no maintainer.
Comment 4 John Marino freebsd_committer 2014-06-19 09:15:27 UTC
So what is the suggested fix?

Test for PTH support before attempting to build and set IGNORE if it's not there?

Do you have any solution in mind?
Comment 5 John Marino freebsd_committer 2014-08-11 10:13:45 UTC
No response on ancient PR, closing