ports/103832: [PATCH] gxine build fails when /etc/make.conf contains CFLAGS= -O pipe
Randy Pratt
bsd-unix at earthlink.net
Sat Sep 30 00:20:19 UTC 2006
>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 at 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:
More information about the freebsd-ports-bugs
mailing list