Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Sep 2012 12:28:04 GMT
From:      "Herbert J. Skuhra" <h.skuhra@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/171249: multimedia/mplayer: build error if OSVERSION >=900033 and world is built WITHOUT_CLANG
Message-ID:  <201209021228.q82CS4qI091881@red.freebsd.org>
Resent-Message-ID: <201209021230.q82CUCpO065900@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         171249
>Category:       ports
>Synopsis:       multimedia/mplayer: build error if OSVERSION >=900033 and world is built WITHOUT_CLANG
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 02 12:30:12 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Herbert J. Skuhra
>Release:        FreeBSD 9.1-PRERELEASE i386
>Organization:
>Environment:
FreeBSD oslo.ath.cx 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r239375: Sun Aug 19 00:39:37 CEST 2012     herbert@oslo.ath.cx:/usr/obj/usr/src/sys/PC1  i386
>Description:
The build of multimedia/mplayer fails if OSVERSION >=900033 and clang is not installed (world built WITHOUT_CLANG):

Checking for clang version ... clang ./configure: clang: not found (experimental support only)
Checking for working compiler ... 
Error: Compiler is not functioning correctly. Check your installation and custom CFLAGS -O2 -pipe -O3 -fomit-frame-pointer -ffast-math -I/usr/local/live/liveMedia/include -I/usr/local/live/BasicUsageEnvironment/include -I/usr/local/live/UsageEnvironment/include -I/usr/local/live/groupsock/include -fno-strict-aliasing .



>How-To-Repeat:

>Fix:
Patch attached!

Patch attached with submission follows:

--- Makefile.options.orig	2012-09-02 14:23:04.000000000 +0200
+++ Makefile.options	2012-09-02 14:26:17.000000000 +0200
@@ -55,7 +55,7 @@
 CONFIGURE_ARGS+=--enable-runtime-cpudetection
 .endif
 
-.if ${OSVERSION} >= 900033
+.if ${OSVERSION} >= 900033 && exists(/usr/bin/clang) && !defined(WITH_OTCHAIN)
 WITH_BASE_CLANG=yes
 .endif
 


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209021228.q82CS4qI091881>