Bug#664819: libav source build needs to link with -lgcrypt

2012-04-29 Thread Reinhard Tartler
On Thu, Mar 22, 2012 at 1:30 AM, John David Anglin dave.ang...@bell.net wrote:
 On 20-Mar-12, at 9:54 PM, Andres Mejia wrote:

 This issue is common if you're using the libav-extra libraries. It's
 likely a broken symlink from your *.so files.


 I don't think so.  Updating libgcrypt11 to 1.5.0-3 fixes the build.
  Somehow,
 it eliminates the dependency.

I'm not sure if I understand your message. Does this mean that there
is nothing to do in libav and we can close this bug?


-- 
regards,
    Reinhard



___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers


Bug#664819: libav source build needs to link with -lgcrypt

2012-04-29 Thread John David Anglin


On 29-Apr-12, at 4:40 AM, Reinhard Tartler wrote:

On Thu, Mar 22, 2012 at 1:30 AM, John David Anglin dave.ang...@bell.net 
 wrote:

On 20-Mar-12, at 9:54 PM, Andres Mejia wrote:


This issue is common if you're using the libav-extra libraries. It's
likely a broken symlink from your *.so files.



I don't think so.  Updating libgcrypt11 to 1.5.0-3 fixes the build.
 Somehow,
it eliminates the dependency.


I'm not sure if I understand your message. Does this mean that there
is nothing to do in libav and we can close this bug?



In the original report,  there wasn't a broken symlink but I'm puzzled
by the message:

/lib/libgcrypt.so.11: could not read symbols: Invalid operation

Yet the linker seems to have read the symbols:
/usr/bin/ld.bfd.real: note: 'gcry_control@@GCRYPT_1.2' is defined in  
DSO /lib/libgcrypt.so.11 so try adding it to the linker command line
Note the undefined reference came from libavformat/ 
libavformat.a(network.o).  I think
that libraries need to be explicitly specified on the command line  
when linking with archive libraries.

I don't know why the archive version of libavformat was used.

With libgcrypt11 1.5.0-3, I had a successful build of the libav  
package.  There isn't a reference to the

above symbol in my installed version of libavformat.a.

Given that issue that triggered the problem is gone, I would close.

Dave
--
John David Anglin   dave.ang...@bell.net






___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers


Bug#664819: libav source build needs to link with -lgcrypt

2012-03-21 Thread John David Anglin

On 20-Mar-12, at 9:54 PM, Andres Mejia wrote:


This issue is common if you're using the libav-extra libraries. It's
likely a broken symlink from your *.so files.


I don't think so.  Updating libgcrypt11 to 1.5.0-3 fixes the build.   
Somehow,

it eliminates the dependency.

Dave
--
John David Anglin   dave.ang...@bell.net






___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers


Bug#664819: libav source build needs to link with -lgcrypt

2012-03-20 Thread Dave Anglin
Source: libav
Version: 4:0.8.1-1
Severity: normal

gcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavutil 
-Llibpostproc -Llibswscale -Wl,--as-needed -Wl,--warn-common 
-Wl,-rpath-link=libpostproc:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil
 -o ffmpeg ff
mpeg.o cmdutils.o -lavdevice -lavfilter -lavformat -lavcodec -lpostproc 
-lswscale -lavutil -ldl -lX11 -lXext -lXfixes -lcdio_paranoia -lcdio_cdda 
-lcdio -ljack 
-lasound -ldc1394 -lraw1394 -lxvidcore -lx264 -lvpx -lvpx -lvorbisenc -lvorbis 
-logg -ltheoraenc -ltheoradec -logg -lspeex -lschroedinger-1.0 -lrtmp -lz 
-lgnutl
s -lpulse-simple -lpulse -lopenjpeg -lopencv_core -lopencv_imgproc -lopencv_high
gui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_obj
detect -lopencv_contrib -lopencv_legacy -lopencv_flann -lmp3lame -lgsm -lfreetyp
e -ldirac_encoder -ldirac_decoder -lstdc++ -lgnutls -lva -lm -pthread -lbz2 -lz 
/usr/bin/ld.bfd.real: libavformat/libavformat.a(network.o): undefined reference 
to symbol 'gcry_control@@GCRYPT_1.2'
/usr/bin/ld.bfd.real: note: 'gcry_control@@GCRYPT_1.2' is defined in DSO /lib/li
bgcrypt.so.11 so try adding it to the linker command line
/lib/libgcrypt.so.11: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [ffmpeg] Error 1
make[1]: Leaving directory `/home/dave/debian/libav/libav-0.8.1/debian-static'
make: *** [build-stamp-static] Error 2

The following allows a successful build:

--- rules.save  2012-03-18 14:40:11.0 -0400
+++ rules   2012-03-20 19:08:22.0 -0400
@@ -46,6 +46,7 @@
dh_testdir
mkdir -p debian-$*
cd debian-$*  CFLAGS=$(CFLAGS) CPPFLAGS=$(CPPFLAGS) 
LDFLAGS=$(LDFLAGS) $(CURDIR)/configure \
+   --extra-libs=-lgcrypt \
$($*_build_confflags) $(extra_$*_build_confflags)
touch $@
 


-- System Information:
Debian Release: wheezy/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 3.2.11+ (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers


Bug#664819: libav source build needs to link with -lgcrypt

2012-03-20 Thread Andres Mejia
On Tue, Mar 20, 2012 at 9:24 PM, Dave Anglin dave.ang...@bell.net wrote:
 Source: libav
 Version: 4:0.8.1-1
 Severity: normal

 gcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavutil 
 -Llibpostproc -Llibswscale -Wl,--as-needed -Wl,--warn-common 
 -Wl,-rpath-link=libpostproc:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil
  -o ffmpeg ff
 mpeg.o cmdutils.o -lavdevice -lavfilter -lavformat -lavcodec -lpostproc 
 -lswscale -lavutil -ldl -lX11 -lXext -lXfixes -lcdio_paranoia -lcdio_cdda 
 -lcdio -ljack
 -lasound -ldc1394 -lraw1394 -lxvidcore -lx264 -lvpx -lvpx -lvorbisenc 
 -lvorbis -logg -ltheoraenc -ltheoradec -logg -lspeex -lschroedinger-1.0 
 -lrtmp -lz -lgnutl
 s -lpulse-simple -lpulse -lopenjpeg -lopencv_core -lopencv_imgproc 
 -lopencv_high
 gui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d 
 -lopencv_obj
 detect -lopencv_contrib -lopencv_legacy -lopencv_flann -lmp3lame -lgsm 
 -lfreetyp
 e -ldirac_encoder -ldirac_decoder -lstdc++ -lgnutls -lva -lm -pthread -lbz2 
 -lz
 /usr/bin/ld.bfd.real: libavformat/libavformat.a(network.o): undefined 
 reference
 to symbol 'gcry_control@@GCRYPT_1.2'
 /usr/bin/ld.bfd.real: note: 'gcry_control@@GCRYPT_1.2' is defined in DSO 
 /lib/li
 bgcrypt.so.11 so try adding it to the linker command line
 /lib/libgcrypt.so.11: could not read symbols: Invalid operation
 collect2: ld returned 1 exit status
 make[1]: *** [ffmpeg] Error 1
 make[1]: Leaving directory `/home/dave/debian/libav/libav-0.8.1/debian-static'
 make: *** [build-stamp-static] Error 2

 The following allows a successful build:

 --- rules.save  2012-03-18 14:40:11.0 -0400
 +++ rules       2012-03-20 19:08:22.0 -0400
 @@ -46,6 +46,7 @@
        dh_testdir
        mkdir -p debian-$*
        cd debian-$*  CFLAGS=$(CFLAGS) CPPFLAGS=$(CPPFLAGS) 
 LDFLAGS=$(LDFLAGS) $(CURDIR)/configure \
 +               --extra-libs=-lgcrypt \
                $($*_build_confflags) $(extra_$*_build_confflags)
        touch $@



 -- System Information:
 Debian Release: wheezy/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
 Architecture: hppa (parisc64)

 Kernel: Linux 3.2.11+ (SMP w/4 CPU cores)
 Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/dash



 ___
 pkg-multimedia-maintainers mailing list
 pkg-multimedia-maintainers@lists.alioth.debian.org
 http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

libav builds fine. See [1].

This issue is common if you're using the libav-extra libraries. It's
likely a broken symlink from your *.so files.

1. https://buildd.debian.org/status/package.php?p=libav

-- 
~ Andres



___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers