Date: Wed, 16 Apr 2008 21:07:49 GMT From: barbara <barbara.xxx1975@libero.ot> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/122831: textproc/enchant failure due to gcc version Message-ID: <200804162107.m3GL7nAR044683@www.freebsd.org> Resent-Message-ID: <200804162110.m3GLA1D3012317@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <bsd.port.post.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804162107.m3GL7nAR044683>