Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Sep 2012 19:30:03 -0700 (PDT)
From:      Greg Lewis <glewis@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/171304: multimedia/vlc doesn't compile
Message-ID:  <201209040230.q842U3aK040136@misty.eyesbeyond.com>
Resent-Message-ID: <201209040240.q842e9Kh018016@freefall.freebsd.org>

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

>Number:         171304
>Category:       ports
>Synopsis:       multimedia/vlc doesn't compile
>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 Sep 04 02:40:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Greg Lewis
>Release:        FreeBSD 8.3-RELEASE-p3 i386
>Organization:
FreeBSD
>Environment:
System: FreeBSD misty.eyesbeyond.com 8.3-RELEASE-p3 FreeBSD 8.3-RELEASE-p3 #0: Sat Jun 23 13:28:02 PDT 2012 glewis@misty.eyesbeyond.com:/usr/obj/usr/src/sys/MISTY i386


>Description:

On my machine, vlc will fail to compile misc/cpu.c, emitting errors like
this:

misc/cpu.c:129: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'static'

>How-To-Repeat:
Just try and build the port.  I suspect your processor has to support
certain MMX or SSE features.

>Fix:

Use a newer version of GCC.  I actually believe 4.4 or better should work.

Index: Makefile
===================================================================
--- Makefile	(revision 303631)
+++ Makefile	(working copy)
@@ -25,6 +25,8 @@
 BUILD_DEPENDS=	ffmpeg${FFMPEG_SUFFIX}>0.11:${PORTSDIR}/multimedia/ffmpeg${FFMPEG_SUFFIX}
 RUN_DEPENDS=	ffmpeg${FFMPEG_SUFFIX}>0.11:${PORTSDIR}/multimedia/ffmpeg${FFMPEG_SUFFIX}
 
+USE_GCC=	4.6+
+
 OPTIONS_DEFINE=	A52 AALIB ASS AVAHI CACA DBUS DIRAC DOCS DTS DVDREAD \
 		DVDNAV FAAD FLAC FLUID FRIBIDI GLX GNOMEVFS GNUTLS GOOM \
 		HTTPD JACK LIVEMEDIA LUA MAD MATROSKA MODPLUG MPEG2 MTP \
>Release-Note:
>Audit-Trail:
>Unformatted:



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