Date: Thu, 27 Sep 2007 22:52:21 GMT From: "Cory R. King" <coryking@mozimedia.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/116696: lang/python25 does not compile on FreeBSD 5.0 Message-ID: <200709272252.l8RMqLMp052391@www.freebsd.org> Resent-Message-ID: <200709272300.l8RN04tX048179@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 116696 >Category: ports >Synopsis: lang/python25 does not compile on FreeBSD 5.0 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 27 23:00:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Cory R. King >Release: FreeBSD 5.0-RELEASE >Organization: Mozi Media Group, LLC. >Environment: FreeBSD xxx 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Thu Jan 16 22:16:53 GMT 2003 root@hollin.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: The configure script will blow up all over the place with lines like In file included from conftest.c:38: /usr/include/stdlib.h:57: redefinition of `wchar_t' /usr/include/sys/_types.h:75: `wchar_t' previously declared here As you can see in my patch file comments, I pulled the OSVERSION out of my arse. I have no idea what the cutoff might be, or if it is my own system that is borked. >How-To-Repeat: Run on an ancient copy of freebsd like what is found on this system. dbserv tmp # gcc -v Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.2.1 [FreeBSD] 20021119 (release) The Makefile in question is is: # New ports collection makefile for: python25 # Date created: 3 July 2003 # Whom: Hye-Shik Chang <perky@FreeBSD.org> # # $FreeBSD: ports/lang/python25/Makefile,v 1.144 2007/07/30 09:41:36 alexbl Exp $ >Fix: *** Makefile.orig Thu Sep 27 15:22:37 2007 --- Makefile Thu Sep 27 15:43:02 2007 *************** *** 60,66 **** --- 60,72 ---- .endif # workaround for a bug in base curses.h. + # cory: this number has been pulled out of my rear. + # all I know is that with 500043, the compiler will choke on + # the redefinition of wchar_t + # gcc version 3.2.1 [FreeBSD] 20021119 (release) + .if ${OSVERSION} >= 600000 CFLAGS+= -D__wchar_t=wchar_t + .endif .if !defined(WITHOUT_THREADS) CONFIGURE_ARGS+= --with-threads >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709272252.l8RMqLMp052391>