From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Sep 27 23:00:04 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B21B16A418 for ; Thu, 27 Sep 2007 23:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3E44A13C48A for ; Thu, 27 Sep 2007 23:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l8RN04QP048180 for ; Thu, 27 Sep 2007 23:00:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l8RN04tX048179; Thu, 27 Sep 2007 23:00:04 GMT (envelope-from gnats) Resent-Date: Thu, 27 Sep 2007 23:00:04 GMT Resent-Message-Id: <200709272300.l8RN04tX048179@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Cory R. King" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B54F816A419 for ; Thu, 27 Sep 2007 22:52:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 9661B13C47E for ; Thu, 27 Sep 2007 22:52:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l8RMqLNJ052439 for ; Thu, 27 Sep 2007 22:52:21 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l8RMqLMp052391; Thu, 27 Sep 2007 22:52:21 GMT (envelope-from nobody) Message-Id: <200709272252.l8RMqLMp052391@www.freebsd.org> Date: Thu, 27 Sep 2007 22:52:21 GMT From: "Cory R. King" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/116696: lang/python25 does not compile on FreeBSD 5.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Sep 2007 23:00:04 -0000 >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 # # $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: