Bug 22226 - python 2.0 port fails to compile
Summary: python 2.0 port fails to compile
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Thomas Gellekum
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-23 01:30 UTC by Matt DeLapp
Modified: 2000-11-13 13:24 UTC (History)
0 users

See Also:


Attachments
python-port.diff (569 bytes, patch)
2000-10-27 12:22 UTC, Thomas Gellekum
no flags Details | Diff
python-port.diff (577 bytes, patch)
2000-11-10 13:09 UTC, Thomas Gellekum
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt DeLapp 2000-10-23 01:30:04 UTC
===>  Extracting for python-2.0

How-To-Repeat: make in /usr/ports/lang/python
Comment 1 Thomas Gellekum 2000-10-27 12:22:27 UTC
>  cc -fPIC  -O -pipe -D_THREAD_SAFE -I./../Include -I.. -DHAVE_CONFIG_H -c ./_cursesmodule.c
>  *** Error code 1
>  
>  Stop.

I think there are some compiler messages missing. Anyway, can you try
the attached patch? I don't have a 3.x machine to try it on.

tg
Comment 2 Maxim Sobolev freebsd_committer freebsd_triage 2000-11-03 15:10:26 UTC
Responsible Changed
From-To: freebsd-ports->tg

Let the python gury sort it out.
Comment 3 Thomas Gellekum 2000-11-10 13:09:44 UTC
tg
Comment 4 Alan Bawden 2000-11-12 07:08:04 UTC
The most recent patch suggested by Thomas Gellekum doesn't quite work.
Since the ncurses include files expect to be able to include each other
using `#include <ncurses/...>', you need to tell gcc to -also- look in
/usr/local/include.

With the patch below, Python-2.0 compiles (with some warnings...) and
installs on my FreeBSD-3.4 machine.

--- Makefile.~1~	Wed Oct 18 07:58:44 2000
+++ Makefile	Sun Nov 12 01:44:24 2000
@@ -76,6 +76,12 @@
 
 .include <bsd.port.pre.mk>
 
+.if ${OSVERSION} < 400000
+LIB_DEPENDS+=	ncurses.5:${PORTSDIR}/devel/ncurses
+CFLAGS+=	-I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include
+CONFIGURE_ENV+=	LDFLAGS="-L${LOCALBASE}/lib"
+.endif
+
 .if ${OSVERSION} >= 500000 && ${OSVERSION} < 500005
 CONFIGURE_ARGS+= --with-libs='-lxpg4'
 .endif
Comment 5 Thomas Gellekum freebsd_committer freebsd_triage 2000-11-13 13:22:50 UTC
State Changed
From-To: open->closed

Should be fixed now. Thanks for your cooperation, guys.