ports/187017: [patch] multimedia/libxine port fails during configure with clang 3.4
Don Lewis
truckman at FreeBSD.org
Tue Feb 25 05:40:00 UTC 2014
>Number: 187017
>Category: ports
>Synopsis: [patch] multimedia/libxine port fails during configure with clang 3.4
>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: Tue Feb 25 05:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Don Lewis
>Release: FreeBSD 11.0-CURRENT i386
>Organization:
FreeBSD Project
>Environment:
System: FreeBSD scratch.catspoiler.org 11.0-CURRENT FreeBSD 11.0-CURRENT #70 r262340M: Sat Feb 22 15:58:39 PST 2014 dl at scratch.catspoiler.org:/usr/obj/usr/src/sys/GENERICSMB i386
Ports revision r345674
>Description:
The multimedia/libxine port fails during the configure phase:
checking for gcc... cc
checking whether the C compiler works... no
configure: error: in `/usr/ports/multimedia/libxine/work/xine-lib-1.2.4':
configure: error: C compiler cannot create executables
See `config.log' for more details
===> Script "configure" failed unexpectedly.
The reason for the failure is found in config.log:
configure:4779: checking whether the C compiler works
configure:4801: cc -g -O2 -pipe -march=athlon64 -fno-force-addr -I/usr/local/inc
lude -I/usr/local/include/dvdread -I/usr/local/include/ffmeg -fomit-frame-pointe
r -DLIBICONV_PLUG -fno-strict-aliasing -DNDEBUG -D_REENTRANT -DXINE_COMPILE -I/u
sr/local/include -I/usr/local/include/ffmpeg -DLIBICONV_PLUG -g -L/usr/local/li
b conftest.c >&5
cc: error: unknown argument: '-fno-force-addr'
configure:4805: $? = 1
configure:4843: result: no
>How-To-Repeat:
Attempt to build multimedia/libxine on a machine with clang version 3.4 as
system compiler.
>Fix:
The build gets further with this Makefile patch:
Index: Makefile
===================================================================
--- Makefile (revision 345674)
+++ Makefile (working copy)
@@ -51,7 +51,11 @@
EXTRA_X_LIBS="-lGL -lGLU -lXext -lX11 -lm"
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/ffmpeg
LDFLAGS+= -L${LOCALBASE}/lib
-CFLAGS+= -fno-force-addr -I${LOCALBASE}/include -I${LOCALBASE}/include/dvdread -I${LOCALBASE}/include/ffmeg
+_COMPILER_VERSION!= ${CC} --version
+.if !${_COMPILER_VERSION:Mclang}
+CFLAGS+= -fno-force-addr
+.endif
+CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/dvdread -I${LOCALBASE}/include/ffmeg
CONFIGURE_ARGS= --with-w32-path=${LOCALBASE}/lib/win32 \
--enable-ipv6 \
--with-external-libmad \
but then the build phase fails here:
gmake[4]: Entering directory `/usr/ports/multimedia/libxine/work/xine-lib-1.2.4/
src/libw32dll'
Making all in wine
gmake[5]: Entering directory `/usr/ports/multimedia/libxine/work/xine-lib-1.2.4/
src/libw32dll/wine'
CC libwine_la-afl.lo
CC libwine_la-driver.lo
cc: error: unknown argument: '-fno-rename-registers'
cc: error: unknown argument: '-fno-rename-registers'
gmake[5]: *** [libwine_la-afl.lo] Error 1
gmake[5]: *** Waiting for unfinished jobs....
gmake[5]: *** [libwine_la-driver.lo] Error 1
gmake[5]: Leaving directory `/usr/ports/multimedia/libxine/work/xine-lib-1.2.4/s
rc/libw32dll/wine'
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list