Bug 167177 - audio/openal-soft: libavcodec linking error
Summary: audio/openal-soft: libavcodec linking error
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Marcus von Appen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-21 22:20 UTC by Kalten
Modified: 2012-04-22 09:00 UTC (History)
0 users

See Also:


Attachments
file.diff (406 bytes, patch)
2012-04-21 22:20 UTC, Kalten
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kalten 2012-04-21 22:20:07 UTC
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.

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:
How-To-Repeat: cd /usr/ports/audio/openal-soft
make
Comment 1 Edwin Groothuis freebsd_committer 2012-04-21 22:20:32 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mva

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Marcus von Appen freebsd_committer freebsd_triage 2012-04-22 08:53:59 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer 2012-04-22 08:54:06 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"