From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Apr 21 21:20:07 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA5F51065674 for ; Sat, 21 Apr 2012 21:20:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B3AB38FC16 for ; Sat, 21 Apr 2012 21:20:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3LLK78Y055362 for ; Sat, 21 Apr 2012 21:20:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3LLK7nZ055361; Sat, 21 Apr 2012 21:20:07 GMT (envelope-from gnats) Resent-Date: Sat, 21 Apr 2012 21:20:07 GMT Resent-Message-Id: <201204212120.q3LLK7nZ055361@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kalten Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C8911065672 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/167177: audio/openal-soft: libavcodec linking error X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Apr 2012 21:20:08 -0000 >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: