Bug 126310 - multimedia/transcode configure failure locating libavcodec
Summary: multimedia/transcode configure failure locating libavcodec
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: freebsd-multimedia (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-06 20:10 UTC by Jonathan Lennox
Modified: 2008-09-01 18:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lennox 2008-08-06 20:10:02 UTC
The multimedia/transcode port fails to build, complaining that it can't find
avcoec_thread_init in -lavcodec:

checking ffmpeg/avcodec.h usability... yes
checking ffmpeg/avcodec.h presence... yes
checking for ffmpeg/avcodec.h... yes
checking libavcodec/avcodec.h usability... yes
checking libavcodec/avcodec.h presence... yes
checking for libavcodec/avcodec.h... yes
checking for pkgconfig support for libavcodec... gnome-config: not found
no
checking how to determine LIBAVCODEC_CFLAGS... user
checking how to determine LIBAVCODEC_LIBS... user
checking for avcodec_thread_init in -lavcodec... no
checking for pkgconfig support for libmpeg2... gnome-config: not found
no

Looking in the config.log file, I see:

configure:27697: checking for avcodec_thread_init in -lavcodec
configure:27732: cc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -fno-strict-aliasing -pipe -march=athlon-xp -I/compat/linux/usr/include/divx -isystem /usr/include -isystem /usr/local/include -L/usr/local/lib -L/usr/local/lib conftest.c -lavcodec -L/usr/local/lib -lavcodec -lm -lz   >&5
/usr/local/lib/libavcodec.so: undefined reference to `pthread_create'
/usr/X11R6/lib/libgpac.so.1: undefined reference to `pthread_attr_init'
/usr/X11R6/lib/libgpac.so.1: undefined reference to `pthread_exit'
/usr/X11R6/lib/libgpac.so.1: undefined reference to `pthread_cancel'
/usr/X11R6/lib/libgpac.so.1: undefined reference to `pthread_setschedparam'
/usr/X11R6/lib/libgpac.so.1: undefined reference to `pthread_attr_setdetachstate'
/usr/local/lib/libavcodec.so: undefined reference to `pthread_join'


libavcodec indeed does not appear to be linked with pthread libraries:

$ ldd /usr/local/lib/libavcodec.so
/usr/local/lib/libavcodec.so:
        liba52.so.0 => /usr/X11R6/lib/liba52.so.0 (0x8877d000)
        libavutil.so.1 => /usr/X11R6/lib/libavutil.so.1 (0x88789000)
        libz.so.3 => /lib/libz.so.3 (0x88795000)
        libm.so.4 => /lib/libm.so.4 (0x887a6000)
        libtheora.so.0 => /usr/X11R6/lib/libtheora.so.0 (0x887bc000)
        libvorbisenc.so.2 => /usr/X11R6/lib/libvorbisenc.so.2 (0x887fe000)
        libvorbis.so.4 => /usr/X11R6/lib/libvorbis.so.4 (0x888f9000)
        libx264.so.50 => /usr/X11R6/lib/libx264.so.50 (0x88920000)
        libogg.so.5 => /usr/local/lib/libogg.so.5 (0x889be000)
        libgpac.so.1 => /usr/X11R6/lib/libgpac.so.1 (0x889c3000)
        libssl.so.4 => /usr/lib/libssl.so.4 (0x88c29000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0x88c5b000)

$ pkg_which /usr/local/lib/libavcodec.so
ffmpeg-2008.07.27_2

How-To-Repeat: portupgrade multimedia/transcode
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-08-06 20:10:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-multimedia

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2008-09-01 18:20:25 UTC
db          2008-09-01 17:20:15 UTC

  FreeBSD ports repository

  Modified files:
    multimedia/transcode Makefile 
  Log:
  - Fix multimedia/transcode configure failure locating libavcodec on 6.x [1]
  - Add @ in front of LZO REPLACE_CMD to quieten down the build a bit.
  
  PR:             ports/126310
  
  Revision  Changes    Path
  1.111     +6 -2      ports/multimedia/transcode/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"
Comment 3 Diane Bruce freebsd_committer freebsd_triage 2008-09-01 18:21:30 UTC
State Changed
From-To: open->closed

Fixed thanks for the report!