Bug#579025: libflac-dev: libFLAC.m4 may set empty -L flag

Thibaut VARENE varenet at debian.org
Sat Apr 24 14:30:45 UTC 2010


Package: libflac-dev
Version: 1.2.1-2+b1
Severity: important

In /usr/share/aclocal/libFLAC.m4:

  if test "x$libFLAC_libraries" != "x" ; then
    LIBFLAC_LIBDIR="$libFLAC_libraries"
  elif test "x$libFLAC_prefix" != "x" ; then
    LIBFLAC_LIBDIR="$libFLAC_prefix/lib"
  elif test "x$prefix" != "xNONE" ; then
    LIBFLAC_LIBDIR="$libdir"
  fi

  LIBFLAC_LIBS="-L$LIBFLAC_LIBDIR -lFLAC $OGG_LIBS -lm"

In configure.ac, the usual:
AM_PATH_LIBFLAC( [], [echo "*****Coun't find FLAC library, disabling FLAC
support"; flac=false])

Result in Makefile when configure is called without arguments:

LIBFLAC_LIBS = -L -lFLAC  -lm

Triggers the following error during build (at link time):

libtool: link: require no space between `-L' and `-lFLAC'

Fix: see /usr/share/aclocal/vorbis.m4 (from libvorbis-dev):

  if test "x$vorbis_libraries" != "x" ; then
    VORBIS_LIBS="-L$vorbis_libraries"
  elif test "x$vorbis_prefix" = "xno" || test "x$vorbis_prefix" = "xyes" ;
then
    VORBIS_LIBS=""
  elif test "x$vorbis_prefix" != "x" ; then
    VORBIS_LIBS="-L$vorbis_prefix/lib"
  elif test "x$prefix" != "xNONE"; then
    VORBIS_LIBS="-L$prefix/lib"
  fi

  if test "x$vorbis_prefix" != "xno" ; then
    VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
  fi

This bug actually prevents packages using AM_PATH_LIBFLAC to build

HTH

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

Kernel: Linux 2.6.31.1 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages libflac-dev depends on:
ii  libflac8                    1.2.1-2+b1   Free Lossless Audio Codec - runtim
ii  libogg-dev                  1.2.0~dfsg-1 Ogg bitstream library development 

libflac-dev recommends no packages.

libflac-dev suggests no packages.

-- no debconf information





More information about the pkg-multimedia-maintainers mailing list