From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Apr 16 21:10:02 2008 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 2DC251065671 for ; Wed, 16 Apr 2008 21:10:02 +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 0BCF38FC1A for ; Wed, 16 Apr 2008 21:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3GLA1O6012318 for ; Wed, 16 Apr 2008 21:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3GLA1D3012317; Wed, 16 Apr 2008 21:10:01 GMT (envelope-from gnats) Resent-Date: Wed, 16 Apr 2008 21:10:01 GMT Resent-Message-Id: <200804162110.m3GLA1D3012317@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, barbara Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2627106567B for ; Wed, 16 Apr 2008 21:07:59 +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 C2B108FC14 for ; Wed, 16 Apr 2008 21:07:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m3GL7n5s044684 for ; Wed, 16 Apr 2008 21:07:49 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m3GL7nAR044683; Wed, 16 Apr 2008 21:07:49 GMT (envelope-from nobody) Message-Id: <200804162107.m3GL7nAR044683@www.freebsd.org> Date: Wed, 16 Apr 2008 21:07:49 GMT From: barbara To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/122831: textproc/enchant failure due to gcc version 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: Wed, 16 Apr 2008 21:10:02 -0000 >Number: 122831 >Category: ports >Synopsis: textproc/enchant failure due to gcc version >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 16 21:10:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: barbara >Release: 6.3-STABLE >Organization: >Environment: FreeBSD satanasso.local.net 6.3-STABLE FreeBSD 6.3-STABLE #0: Sun Apr 13 00:38:44 CEST 2008 root@satanasso.local.net:/usr/obj/usr/src/sys/SATANASSO i386 >Description: Upgrade of textproc/enchant is failing with the following error. Looking at gcc docs, it seems that the three offending options was added in different release of the 4.x branch c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"enchant\" -DVERSION=\"1.4.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_FLOCK=1 -DHAVE_LOCKF=1 -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -I. -I. -I../../src -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DENCHANT_PREFIX_DIR=\"/usr/local\" -Wall -Wextra -Wsign-compare -Wpointer-arith -Wwrite-strings -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -DENCHANT_ISPELL_DICT_DIR=\"/usr/local/share/enchant/ispell\" -D_ENCHANT_BUILD=1 -I/usr/local/include -O2 -pipe -fno-strict-aliasing -march=athlon-mp - MT correct.lo -MD -MP -MF .deps/correct.Tpo -c correct.cpp -fPIC -DPIC -o .libs/correct.o cc1plus: error: unrecognized command line option "-Wunsafe-loop-optimizations" cc1plus: error: unrecognized command line option "-Wno-missing-field-initializers" cc1plus: error: unrecognized command line option "-Wno-attributes" gmake[2]: *** [correct.lo] Error 1 gmake[2]: Leaving directory `/usr/ports/textproc/enchant/work/enchant-1.4.0/src/ispell' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/textproc/enchant/work/enchant-1.4.0/src' gmake: *** [all-recursive] Error 1 *** Error code 2 >How-To-Repeat: build or upgrade the port on pre 7 releases (I think) >Fix: I had the port built after applying the attached patch. I can't test it on 7-STABLE at the moment I'm not sure about the side effects of removing those flags :) Patch attached with submission follows: --- Makefile.orig 2008-04-16 19:23:32.000000000 +0200 +++ Makefile 2008-04-16 22:53:33.000000000 +0200 @@ -71,4 +71,17 @@ @${REINPLACE_CMD} -e 's|MKDIRPROG-mkdir|MKDIRPROG-mkdir -p|g' \ ${WRKSRC}/install-sh +pre-configure: +.if ${OSVERSION} < 700042 + @${REINPLACE_CMD} -E \ + -e "s|-Wunsafe-loop-optimizations ||g" \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -E \ + -e "s|no-missing-field-initializers ||g" \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -E \ + -e "s|no-attributes ||g" \ + ${WRKSRC}/configure +.endif + .include >Release-Note: >Audit-Trail: >Unformatted: