Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Apr 2012 21:16:43 GMT
From:      Kalten <kalten@gmx.at>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/167177: audio/openal-soft: libavcodec linking error
Message-ID:  <201204212116.q3LLGh9R005544@red.freebsd.org>
Resent-Message-ID: <201204212120.q3LLK7nZ055361@freefall.freebsd.org>

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

>Number:         167177
>Category:       ports
>Synopsis:       audio/openal-soft: libavcodec linking error
>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:   Sat Apr 21 21:20:07 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Kalten
>Release:        FreeBSD 9.0-STABLE amd64
>Organization:
>Environment:
FreeBSD freeHugin.Walhalla.Leben 9.0-STABLE FreeBSD 9.0-STABLE #9: Sat Apr 21 19:32:10 CEST 2012     kalten@freeHugin.Walhalla.Leben:/usr/obj/usr/src/sys/HUGIN  amd64
>Description:
When compiling audio/openal-soft I get an link-error:
---CUT---
Building C object CMakeFiles/alstream.dir/examples/alstream.o
.[0mIn file included from /usr/ports/audio/openal-soft/work/openal-soft-1.14/examples/alffmpeg.h:9,
                 from /usr/ports/audio/openal-soft/work/openal-soft-1.14/examples/alstream.c:38:
/usr/local/include/libavformat/avformat.h:158: warning: 'AVMetadata' is deprecated
.[31m.[1mLinking C executable alstream
.[0m/usr/bin/ld: cannot find -lavcodec
*** Error code 1

Stop in /usr/ports/audio/openal-soft/work/openal-soft-1.14.
*** Error code 1
---cut---
ldconfig shows me
	595:-lavcodec.1 => /usr/local/lib/libavcodec.so.1
and `ls -laF /usr/local/lib/libavcodec*|cut -c 48-' shows:
 /usr/local/lib/libavcodec.a
 /usr/local/lib/libavcodec.so@ -> libavcodec.so.52.123.0
 /usr/local/lib/libavcodec.so.1@ -> libavcodec.so.52.123.0
 /usr/local/lib/libavcodec.so.52.123.0*
I admit, I do not know, why ldconfig does not present `-lavcodec' too.
>How-To-Repeat:
cd /usr/ports/audio/openal-soft
make
>Fix:
Deaktivating the generation of the examples by adding `-DEXAMPLES:BOOL=OFF' to `CMAKE_ARGS' in the port's Makefile lets us compile again.
I know, this is no real solution to the problem.

Patch attached with submission follows:

--- Makefile.orig	2012-04-21 20:14:47.000000000 +0200
+++ Makefile	2012-04-21 22:52:28.000000000 +0200
@@ -19,7 +19,7 @@
 USE_CMAKE=	yes
 USE_LDCONFIG=	yes
 CMAKE_ARGS+=	-DALSA:BOOL=OFF -DPORTAUDIO:BOOL=OFF -DSOLARIS:BOOL=OFF \
-		-DDSOUND:BOOL=OFF -DALSOFT_CONFIG:BOOL=ON
+		-DDSOUND:BOOL=OFF -DALSOFT_CONFIG:BOOL=ON -DEXAMPLES:BOOL=OFF
 
 OPTIONS=	PULSEAUDIO	"Enable sound streaming using PulseAudio" off
 


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



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