• Bug#267169: libSDL_image.la: wrong ordering of libs

    From Yann Dirson@1:229/2 to All on Sat Aug 21 01:30:12 2004
    From: [email protected]

    Package: libsdl-image1.2-dev
    Version: 1.2.3-5
    Severity: important

    Attempting to link a program (wesnoth) as -all-static using libtool
    fails with things like:

    /usr/lib/libtiff.a(tif_jpeg.o)(.text+0x4ab): In function `TIFFjpeg_write_tables':
    : undefined reference to `jpeg_write_tables'

    This appears to be caused by a wrong ordering of libraries in the .la file:

    $ grep dependency_libs /usr/lib/libSDL_image.la
    dependency_libs=' -lpthread -ljpeg -lpng -lz -ltiff -lSDL -lpthread'

    If I move -ljpeg after -ltiff, these symbols are correctly resolved.

    Fixing this is maybe just a matter of reordering the tests fo those
    libs in configure.in.

    -- System Information:
    Debian Release: 3.1
    APT prefers unstable
    APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: i386 (i586)
    Kernel: Linux 2.4.23-k6+preempt+acl
    Locale: LANG=C, LC_CTYPE=french

    Versions of packages libsdl-image1.2-dev depends on:
    ii libc6-dev 2.3.2.ds1-16 GNU C Library: Development Librari ii libjpeg62-dev 6b-9 Development files for the IJG JPEG ii libpng12-dev 1.2.5.0-7 PNG library - development
    ii libsdl-image1.2 1.2.3-5 image loading library for Simple D ii libsdl1.2-dev 1.2.7-7 Simple DirectMedia Layer developme ii libtiff4-dev 3.6.1-1.1 Tag Image File Format library, dev ii zlib1g-dev 1:1.2.1.1-5 compression library - development

    -- no debconf information

    --
    Yann Dirson <[email protected]> |
    Debian-related: <[email protected]> | Support Debian GNU/Linux:
    | Freedom, Power, Stability, Gratis
    http://ydirson.free.fr/ | Check <http://www.debian.org/>


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Josselin Mouette@1:229/2 to All on Sat Aug 21 11:50:08 2004
    From: [email protected]

    Le samedi 21 août 2004 à 01:11 +0200, Yann Dirson a écrit :
    Attempting to link a program (wesnoth) as -all-static using libtool
    fails with things like:

    /usr/lib/libtiff.a(tif_jpeg.o)(.text+0x4ab): In function `TIFFjpeg_write_tables':
    : undefined reference to `jpeg_write_tables'

    This appears to be caused by a wrong ordering of libraries in the .la file:

    $ grep dependency_libs /usr/lib/libSDL_image.la
    dependency_libs=' -lpthread -ljpeg -lpng -lz -ltiff -lSDL -lpthread'

    If I move -ljpeg after -ltiff, these symbols are correctly resolved.

    Fixing this is maybe just a matter of reordering the tests fo those
    libs in configure.in.

    FYI, the real issue is libtiff not shipping a .la file. That said, I
    don't really have an opinion on what should be done. Support for static
    linking is quite messy.
    --
    .''`. Josselin Mouette /\./\
    : :' : [email protected]
    `. `' [email protected]
    `- Debian GNU/Linux -- The power of freedom

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)

    iD8DBQBBJxWIrSla4ddfhTMRAsw/AKD1ihHH9FZ1oikSvg3ShyzwSS/2sgCcCSOm jGq62lxh/ylPQonEGfxOnP4=
    =Pezh
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Yann Dirson@1:229/2 to Josselin Mouette on Sat Aug 21 15:30:16 2004
    From: [email protected]

    On Sat, Aug 21, 2004 at 11:27:36AM +0200, Josselin Mouette wrote:
    Le samedi 21 ao�t 2004 � 01:11 +0200, Yann Dirson a �crit :
    Attempting to link a program (wesnoth) as -all-static using libtool
    fails with things like:

    /usr/lib/libtiff.a(tif_jpeg.o)(.text+0x4ab): In function `TIFFjpeg_write_tables':
    : undefined reference to `jpeg_write_tables'

    This appears to be caused by a wrong ordering of libraries in the .la file:

    $ grep dependency_libs /usr/lib/libSDL_image.la
    dependency_libs=' -lpthread -ljpeg -lpng -lz -ltiff -lSDL -lpthread'

    If I move -ljpeg after -ltiff, these symbols are correctly resolved.

    Fixing this is maybe just a matter of reordering the tests fo those
    libs in configure.in.

    FYI, the real issue is libtiff not shipping a .la file. That said, I
    don't really have an opinion on what should be done. Support for static linking is quite messy.

    If libtiff is built using libtool, that's right. But nothing prevents
    libtool libs to link against non-libtool ones anyway, and we can still
    make things better until libtiff gets improved :)

    --
    Yann Dirson <[email protected]> |
    Debian-related: <[email protected]> | Support Debian GNU/Linux:
    | Freedom, Power, Stability, Gratis
    http://ydirson.free.fr/ | Check <http://www.debian.org/>


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)