From nobody@FreeBSD.org  Sun Jul 30 12:42:14 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DD2D616A4DD
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 30 Jul 2006 12:42:14 +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 96A2B43D45
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 30 Jul 2006 12:42:14 +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 k6UCgEda044943
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 30 Jul 2006 12:42:14 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k6UCgEV4044942;
	Sun, 30 Jul 2006 12:42:14 GMT
	(envelope-from nobody)
Message-Id: <200607301242.k6UCgEV4044942@www.freebsd.org>
Date: Sun, 30 Jul 2006 12:42:14 GMT
From: B Briggs <rcbdyndns@bellsouth.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: libxine 1.1.2 build failure
X-Send-Pr-Version: www-2.3

>Number:         101051
>Category:       ports
>Synopsis:       libxine 1.1.2 build failure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    nobutaka
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 30 12:50:17 GMT 2006
>Closed-Date:    Tue Aug 01 17:21:59 GMT 2006
>Last-Modified:  Tue Aug 01 17:21:59 GMT 2006
>Originator:     B Briggs
>Release:        6.1R
>Organization:
>Environment:
FreeBSD bbriggs.lotmgr.com 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #0: Thu Jul 27 08:43:08 CDT 2006     root@bbriggs.lotmgr.com:/usr/obj/usr/src/sys/K61a  i386
>Description:
build fails on inline function. Relevant output when using ccache:

 ccache cc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../include -I../../../include -I../../../src -I../../../src/xine-engine -I../../../src/xine-engine -I../../../src/xine-utils -I../../../src/input -I../../../src/input -I../../../lib -I../../../lib -DSIMPLE_IDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_FASTMEMCPY -DCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB -DCONFIG_GPL -I../../../src/libffmpeg/libavutil -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include -D_THREAD_SAFE -fno-strict-aliasing -mtune=i386 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -ffast-math -fno-inline-functions -Wall -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -DENABLE_IPV6 -O -pipe -fno-force-addr -I/usr/local/include -I/usr/local/include/dvd
 read -I/usr/X11R6/include -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute -Wstrict-aliasing=2 -MT h263.lo -MD -MP -MF .deps/h263.Tpo -c h263.c  -fPIC -DPIC -o .libs/h263.o
h263.c: In function `mpeg4_decode_partition_a':
h263.c:69: sorry, unimplemented: inlining failed in call to 'mpeg4_decode_dc': function body not available
h263.c:3447: sorry, unimplemented: called from here
h263.c: At top level:
h263.c:73: warning: 'mpeg4_get_block_length' declared `static' but never defined
gmake[5]: *** [h263.lo] Error 1
gmake[5]: Leaving directory `/usr/ports/multimedia/libxine/work/xine-lib-1.1.2/src/libffmpeg/libavcodec'
gmake[4]: *** [all-recursive] Error 1

and 
cat config.log | grep inline
..
| #define inline inline __attribute__ ((__always_inline__))
configure:51927: checking if ccache cc supports "-fno-inline-functions" flags
configure:51952: ccache cc -c -fno-inline-functions -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include -D_THREAD_SAFE conftest.c >&5
| #define inline inline __attribute__ ((__always_inline__))
configure:52284: result: no - assuming bugginess in -finline-functions

However, when not using ccache, after make clean && make:

 cc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../include -I../../../include -I../../../src -I../../../src/xine-engine -I../../../src/xine-engine -I../../../src/xine-utils -I../../../src/input -I../../../src/input -I../../../lib -I../../../lib -DSIMPLE_IDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_FASTMEMCPY -DCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB -DCONFIG_GPL -I../../../src/libffmpeg/libavutil -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include -D_THREAD_SAFE -fno-strict-aliasing -mtune=i386 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -ffast-math -finline-functions -Wall -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -DENABLE_IPV6 -O -pipe -fno-force-addr -I/usr/local/include -I/usr/local/include/dvdread -I/us
 r/X11R6/include -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute -Wstrict-aliasing=2 -MT h263.lo -MD -MP -MF .deps/h263.Tpo -c h263.c  -fPIC -DPIC -o .libs/h263.o
h263.c: In function `mpeg4_decode_partition_a':
h263.c:69: sorry, unimplemented: inlining failed in call to 'mpeg4_decode_dc': function body not available
h263.c:3447: sorry, unimplemented: called from here
h263.c: At top level:
h263.c:73: warning: 'mpeg4_get_block_length' declared `static' but never defined
gmake[5]: *** [h263.lo] Error 1
gmake[5]: Leaving directory `/usr/ports/multimedia/libxine/work/xine-lib-1.1.2/src/libffmpeg/libavcodec'

and different output in config.log:

| #define inline inline __attribute__ ((__always_inline__))
configure:51927: checking if cc supports "-fno-inline-functions" flags
configure:51952: cc -c -fno-inline-functions -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include -D_THREAD_SAFE conftest.c >&5
| #define inline inline __attribute__ ((__always_inline__))
ac_cv_always_inline=yes
ac_cv_c___inline__=''
ac_cv_c_inline=inline
CFLAGS='-mtune=i386 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4  -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -ffast-math -finline-functions -Wall -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE $(MULTIPASS_CFLAGS) -DENABLE_IPV6 -O -pipe -fno-force-addr -I/usr/local/include -I/usr/local/include/dvdread -I/usr/X11R6/include -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute -Wstrict-aliasing=2'


Note -finline-functions in the second build and -fno-inline-functions in the first build. However the compile fails either way with the same error message.

>How-To-Repeat:
make clean && make
>Fix:

>Release-Note:
>Audit-Trail:

From: Bo Briggs <rcbdyndns@bellsouth.net>
To: <bug-followup@FreeBSD.org>,<rcbdyndns@bellsouth.net>
Cc:  
Subject: Re: ports/101051: libxine 1.1.2 build failure
Date: Sun, 30 Jul 2006 14:08:10 -0400

 After some experimentation, I removed 
 CFLAGS = -O -pipe
 from /etc/make.conf
 
 Notice in the original PR that these flags are added after -finline-functions and therefore must override it.
 
 Is there any way to make the build ignore CFLAGS in make.conf?
 
 
Responsible-Changed-From-To: freebsd-ports-bugs->nobutaka 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Jul 30 22:34:43 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=101051 
State-Changed-From-To: open->closed 
State-Changed-By: nobutaka 
State-Changed-When: Tue Aug 1 17:20:26 UTC 2006 
State-Changed-Why:  
Fixed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=101051 
>Unformatted:
