Bug#433055: ocaml-vorbis: dllvorbis_stubs.so linked incorrectly
tags 433055 fixed-upstream
clone 433055 -1
reassign -1 ocaml-mad 0.2.1-1
retitle -1 ocaml-mad: dllmad_stubs.so linked incorrectly
kthxbye
On Sat, Jul 14, 2007 at 03:43:45 +0200, Julien Cristau wrote:
> Package: ocaml-vorbis
> Version: 0.2.3-2
> Severity: serious
>
> Problem reported on #debian-ocaml:
> # #load "vorbis/vorbis.cma";;
> Cannot load required shared library dllvorbis_stubs.
> Reason: /usr/lib/ocaml/3.09.2/stublibs/dllvorbis_stubs.so: undefined
> symbol: vorbis_info_clear.
>
> And indeed:
> $ ldd /usr/lib/ocaml/3.09.2/stublibs/dllvorbis_stubs.so
> linux-gate.so.1 => (0xffffe000)
> libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e84000)
> /lib/ld-linux.so.2 (0x80000000)
>
> The problem is caused by the following in src/Makefile.in:
> ACLIBS = @LIBS@
> CLIBS = $(ACLIBS:-l%=%)
> LDFLAGS = @LDFLAGS@ @OGG_LIBS@ @VORBIS_LIBS@
>
> which gives after configure:
> ACLIBS =
> CLIBS = $(ACLIBS:-l%=%)
> LDFLAGS = -logg -lvorbisenc -lvorbisfile -lvorbis -lm -logg
>
> OCamlMakefile then uses the CLIBS variable to find out how to link the
> stubs library, LDFLAGS isn't used, and you lose.
>
Same issue in ocaml-mad.
Cheers,
Julien
Reply to: