From nobody@FreeBSD.org  Sat Apr 21 21:16:44 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5C8911065672
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 21 Apr 2012 21:16:44 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 2E2E08FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 21 Apr 2012 21:16:44 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q3LLGhxR005545
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 21 Apr 2012 21:16:43 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q3LLGh9R005544;
	Sat, 21 Apr 2012 21:16:43 GMT
	(envelope-from nobody)
Message-Id: <201204212116.q3LLGh9R005544@red.freebsd.org>
Date: Sat, 21 Apr 2012 21:16:43 GMT
From: Kalten <kalten@gmx.at>
To: freebsd-gnats-submit@FreeBSD.org
Subject: audio/openal-soft: libavcodec linking error
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         167177
>Category:       ports
>Synopsis:       audio/openal-soft: libavcodec linking error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mva
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 21 21:20:07 UTC 2012
>Closed-Date:    Sun Apr 22 07:53:59 UTC 2012
>Last-Modified:  Sun Apr 22 08:00:23 UTC 2012
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->mva 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Apr 21 21:20:32 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=167177 
State-Changed-From-To: open->closed 
State-Changed-By: mva 
State-Changed-When: Sun Apr 22 07:53:59 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=167177 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/167177: commit references a PR
Date: Sun, 22 Apr 2012 07:54:06 +0000 (UTC)

 mva         2012-04-22 07:53:15 UTC
 
   FreeBSD ports repository
 
   Modified files:
     audio/openal-soft    Makefile 
   Log:
   - Unbreak build, if ffmpeg is installed.
   
   PR:             167177
   Submitted by:   Kalten <kalten@gmx.at>
   
   Revision  Changes    Path
   1.17      +1 -1      ports/audio/openal-soft/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
