From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Sep 30 00:20:19 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F5BD16A47B for ; Sat, 30 Sep 2006 00:20:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41B6543D4C for ; Sat, 30 Sep 2006 00:20:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8U0KIir049302 for ; Sat, 30 Sep 2006 00:20:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8U0KHc6049301; Sat, 30 Sep 2006 00:20:17 GMT (envelope-from gnats) Resent-Date: Sat, 30 Sep 2006 00:20:17 GMT Resent-Message-Id: <200609300020.k8U0KHc6049301@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, Randy Pratt Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C19FD16A403 for ; Sat, 30 Sep 2006 00:15:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6671743D49 for ; Sat, 30 Sep 2006 00:15:00 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k8U0F0AA098968 for ; Sat, 30 Sep 2006 00:15:00 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k8U0F0Jx098967; Sat, 30 Sep 2006 00:15:00 GMT (envelope-from nobody) Message-Id: <200609300015.k8U0F0Jx098967@www.freebsd.org> Date: Sat, 30 Sep 2006 00:15:00 GMT From: Randy Pratt To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/103832: [PATCH] gxine build fails when /etc/make.conf contains CFLAGS= -O pipe 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: Sat, 30 Sep 2006 00:20:19 -0000 >Number: 103832 >Category: ports >Synopsis: [PATCH] gxine build fails when /etc/make.conf contains CFLAGS= -O pipe >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 30 00:20:17 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Randy Pratt >Release: FreeBSD-PRERELEASE >Organization: >Environment: FreeBSD kt.weeeble.com 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Thu Sep 28 13:37:44 EDT 2006 rpratt@kt.weeeble.com:/usr/obj/usr/src/sys/CUSTOM i386 >Description: When /etc/make.conf contains: CFLAGS= -O -pipe the build will fail with: if cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I/usr/X11R6/include -I../pixmaps -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include -std=gnu99 -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -DXTHREADS -DXUSE_MTSAFE_API -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include/pango-1.0 -I/usr/X11R6/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DXP_UNIX -I/usr/local/include/nspr -I/usr/X11R6/include/firefox/js -DLOCALEDIR=\"/usr/X11R6/share/locale\" -O -pipe -I/usr/local/include -L/usr/local/lib -D_THREAD_SAFE -MT menu.o -MD -MP -MF ".deps/menu.Tpo" -c -o menu.o menu.c; \ then mv -f ".deps/menu.Tpo" ".deps/menu.Po"; else rm -f ".deps/menu.Tpo"; exit 1; fi In file included from menu.c:33: utils.h:92: warning: `sentinel' attribute directive ignored menu.c: In function `js_Fullscreen_cb': menu.c:293: sorry, unimplemented: inlining failed in call to 'js_Fullscreen_cb_int': function body not available menu.c:293: sorry, unimplemented: called from here gmake[1]: *** [menu.o] Error 1 gmake[1]: Leaving directory `/work/a/ports/multimedia/gxine/work/gxine-0.5.7/src' gmake: *** [all-recursive] Error 1 *** Error code 2 Stop in /a/ports/multimedia/gxine. These build failures have also been reported by pointyhat.freebsd.org: http://portsmon.freebsd.org/portoverview.py?category=multimedia&portname=gxine&wildcard= >How-To-Repeat: Use the following in /etc/make.conf : CFLAGS= -O -pipe and build. >Fix: Set CFLAGS in port Makefile to override /etc/make.conf # diff -ruN multimedia/gxine/Makefile.orig multimedia/gxine/Makefile --- multimedia/gxine/Makefile.orig Tue Sep 19 09:09:00 2006 +++ multimedia/gxine/Makefile Tue Sep 19 09:09:27 2006 @@ -24,6 +24,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib -I${X11BASE}/lib" CONFIGURE_ARGS= --mandir=${PREFIX}/man +CFLAGS= -O2 -fno-strict-aliasing -pipe INSTALLS_ICONS= yes --end of patch-- The value for CFLAGS in the Makefile was obtained by removing CFLAGS from /etc/make.conf and building the port. The value for CFLAGS that the port shows during build was used to make the patch. >Release-Note: >Audit-Trail: >Unformatted: