Menu

#58 compiling libmp3splt-0.5.1 dies on error

closed
nobody
None
5
2018-09-01
2008-10-03
No

[snip]
mv -f .deps/plugins.Tpo .deps/plugins.Plo
mv -f .deps/utils.Tpo .deps/utils.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -g -march=i686 -mtune=generic -O2 -pipe -I../include/libmp3splt -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -no-undefined -version-info 0:5:0 -o libmp3splt.la -rpath /usr/lib types_func.lo splt.lo mp3splt.lo cddb.lo checks.lo utils.lo plugins.lo ../libltdl/libltdlc.la -lm
libtool: link: cannot find the library ../libltdl/libltdlc.la' or unhandled argument../libltdl/libltdlc.la'
make[2]: *** [libmp3splt.la] Error 1
make: *** [all] Error 2

compiling dies with this error on my machine

  • gcc 4.3.2
  • libtool 2.2.6a

Discussion

1 2 > >> (Page 1 of 2)
  • Munteanu Alexandru

    Hello,

    thank you for reporting that.
    I don't have a new libtool version but I will install
    one and test. The error doesn't look like a 'libmp3splt' bug.
    Meanwhile, you can try running 'libtoolize --force' from
    the 'libmp3splt' directory.

    --
    Alex

     
  • Munteanu Alexandru

    Btw, what operating system are you using ?
    Verify that you have installed libltdl (if
    this package exists and is not included in
    libtool's distribution package).

    --
    Alex

     
  • Anonymous

    Anonymous - 2008-10-04

    files in libtool package

     
  • Anonymous

    Anonymous - 2008-10-04

    I have Arch Linux.
    It looks like libltdl is included in libtool, but no libltdlc.la file in in, see the attachment.
    File Added: libtool226a.txt

     
  • Anonymous

    Anonymous - 2008-10-04

    [snip]
    mv -f .deps/plugins.Tpo .deps/plugins.Plo
    mv -f .deps/utils.Tpo .deps/utils.Plo
    /bin/sh ../libtool --tag=CC --mode=link gcc -g -march=i686
    -mtune=generic -O2 -pipe -I../include/libmp3splt -D_LARGEFILE_SOURCE
    -D_FILE_OFFSET_BITS=64 -no-undefined -version-info 0:5:0 -o libmp3splt.la
    -rpath /usr/lib types_func.lo splt.lo mp3splt.lo cddb.lo checks.lo utils.lo
    plugins.lo ../libltdl/libltdlc.la -lm
    libtool: link: cannot find the library ../libltdl/libltdlc.la' or unhandled argument../libltdl/libltdlc.la'
    make[2]: *** [libmp3splt.la] Error 1
    make: *** [all] Error 2

    compiling dies with this error on my machine

    • gcc 4.3.2
    • libtool 2.2.6a

    [edit]
    I have Arch Linux. It looks like libltdl is included in libtool, but no sign of libtdlc.la file in in, see the attachment.

     
  • reMiND

    reMiND - 2008-10-11

    I'v got same trouble. It seems problem with arch's libtool (arch building script clean ALL *.la before making package, so arch's libtool free from any libltdlc.la and so on), but is it really needed use libltdlc.la for building libmp3splt?

     
  • Munteanu Alexandru

    I don't understand why this problem occurs.
    Libmp3splt links with 'libltdl', thus the flag '-lltdl'
    should appear instead of '../libltdl/libltdlc.la'.

    --
    Alex

     
  • alon_42

    alon_42 - 2008-11-12

    I got the same error using Ubuntu 8.10:

    /bin/bash ../libtool --tag=CC --mode=link gcc -g -I../include/libmp3splt -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DNO_ID3TAG -no-undefined -version-info 0:5:0 -o libmp3splt.la -rpath /usr/local/lib types_func.lo splt.lo mp3splt.lo cddb.lo checks.lo utils.lo plugins.lo ../libltdl/libltdlc.la -lm
    libtool: link: cannot find the library ../libltdl/libltdlc.la' or unhandled argument../libltdl/libltdlc.la'
    make[2]: *** [libmp3splt.la] Error 1
    make[2]: Leaving directory `/home/alan/Desktop/libmp3splt-0.5.2/src'

     
  • Munteanu Alexandru

    Hello,

    this problem occurs because some libtool version incompatibility.
    Until I found out how to support both libtool versions (1.X.Y and 2.X.Y),
    here is a temporary fix for this issue :

    1) Download this file :
    http://mp3splt.svn.sourceforge.net/viewvc/mp3splt/mp3splt-project/trunk/libmp3splt/autogen.sh
    2) Put it in the 'libmp3splt-X.X.X' directory.
    3) Make it executable with the following command :
    chmod +x autogen.sh
    4) Launch it :
    ./autogen.sh
    5) Retry to compile :
    ./configure
    make

    The 'autogen.sh' file will be added in the distribution packages starting the next release.

    --
    Alex

     
  • alon_42

    alon_42 - 2008-12-01

    Hi:
    re: autogen.sh
    I followed your instructions 1 to 5 ie and everything seemed ok including the make.
    I then entered: sudo checkinstall and encountered problem as follows:
    ...
    libtool: install: /usr/bin/install -c .libs/libmp3splt.a /usr/local/lib/libmp3splt.a
    libtool: install: chmod 644 /usr/local/lib/libmp3splt.a
    chmod: changing permissions of `/usr/local/lib/libmp3splt.a': No such file or directory
    make[2]: *** [install-libLTLIBRARIES] Error 1
    ...
    I'm using ubuntu 8.10.
    Thanks.

     
  • Munteanu Alexandru

    I think that you have to type
    make install
    to install the library, before trying to 'checkinstall'.

    --
    Alex

     
  • Ali Farhadi

    Ali Farhadi - 2008-12-12

    Hi,
    I also tried to install libmp3splt and I had the same error.
    I downloaded autogen.sh and followed your instructions.
    in step 5 when I try to make I get the following error:

    ...
    /bin/bash ../libtool --tag=CC --mode=link gcc -g -I../include/libmp3splt -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DNO_ID3TAG -L../src -L../src/.libs -L/lib -no-undefined -lmp3splt -o libsplt_mp3.la -rpath /usr/local/lib/libmp3splt mp3.lo -lmad -lid3tag -ldl
    libtool: link: gcc -shared .libs/mp3.o -Wl,-rpath -Wl,/home/ali/Desktop/libmp3splt-0.5.2/src/.libs -L/home/ali/Desktop/libmp3splt-0.5.2/src/.libs -L/home/ali/Desktop/libmp3splt-0.5.2/src -L/lib /home/ali/Desktop/libmp3splt-0.5.2/src/.libs/libmp3splt.so -L/usr/lib /usr/lib/libltdl.so -lm /usr/lib/libmad.so -lid3tag -ldl -Wl,-soname -Wl,libsplt_mp3.so.0 -o .libs/libsplt_mp3.so.0.0.0
    /usr/bin/ld: cannot find -lid3tag
    collect2: ld returned 1 exit status
    make[2]: *** [libsplt_mp3.la] Error 1
    ...

    By the way, I'm using Ubuntu 8.10

    Thanks

     
  • Munteanu Alexandru

    Hello,

    this must be a bug in 'libid3tag' check.
    libmp3splt shouldn't be build with libid3tag support if the library is not found.

    For the moment, you can "fix" this issue by installing libid3tag0-dev.
    Run the following command as root :

    apt-get install libid3tag-dev
    

    and then retry to compile.

    --
    Alex

     
  • Munteanu Alexandru

    Hello,

    as far as I have investigated, it seems that the problem is a libtool backward compatibility issue. The distribution tarball is created with 'make dist' using an older libtool version. The 'aclocal.m4' file shipped with the distribution contains the following code :

    AC_CHECK_HEADER([ltdl.h],
    [AC_CHECK_LIB([ltdl], [lt_dlcaller_register],
    [with_included_ltdl=no],
    [with_included_ltdl=yes])
    ]
    )

    in order to check for a possible installed libltdl library.

    However, the 'lt_dlcaller_register' function has been removed since libtool version 2.1b (see NEWS file of libtool); this makes the check for libltdl to fail and thus to use a local libltld found in a possible '../libltdl' directory.

    In order to keep libtool versions compatibilities (on older systems), this issue has been fixed with a hack replacing the removed function 'lt_dlcaller_register' check with 'lt_dlcaller_set_data' function with still exists in newer libtool versions.

    --
    Alex

     
  • Munteanu Alexandru

    This issue has been fixed in the latest version (libmp3splt 0.5.3).
    Furthermore, debian & ubuntu packages are available.
    I am closing the ticket for the moment.
    Please reply here if the problem still occurs.

    --
    Alex

     
  • Nobody/Anonymous

    Seems there is still a libtool related bug. I get an error on step 2.

    configure: error: libltdl not found - check libtool installation !

    But I do have it installed.

    yum install libtool
    Package libtool - 1.5.22-6.1.i386 is already installed.

    yum install libtool-ltdl
    Package libtool-ltdl - 1.5.22-6.1.i386 is already installed.

    Is there something I can do to get aroung this?

    I'm using CentOS 5.2

     
  • Munteanu Alexandru

    Hello,

    sorry for the late reply.

    For the CentOS issue, can you please attach the 'config.log' file from the 'libmp3splt' directory ?
    Please also post the result of the following commands :
    locate libltdl.so
    locate libltdl.so.3

    --
    Alex

     
  • Nobody/Anonymous

    I'm using OS X 10.5.8

    I'm trying to compile libmp3splt-0.5.9

    $ CPPFLAGS="-I/opt/local/include -I/usr/lib" LDFLAGS="-L/opt/local/lib -L/usr/lib" ./configure --disable-ogg --disable-vorbis
    -> This works
    $ make
    [...]
    /bin/sh ../libtool --tag=CC --mode=link gcc -Wall -O2 -I../include/libmp3splt -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -no-undefined -version-info 0:5:0 -L/opt/local/lib -L/usr/lib -o libmp3splt.la -rpath /usr/local/lib types_func.lo splt.lo mp3splt.lo cddb.lo checks.lo utils.lo plugins.lo win32.lo cue.lo cddb_cue_common.lo freedb.lo audacity.lo splt_array.lo string_utils.lo tags_utils.lo input_output.lo -lintl -liconv /usr/lib/libc.dylib -lm ../libltdl/libltdlc.la
    libtool: link: cannot find the library ../libltdl/libltdlc.la' or unhandled argument../libltdl/libltdlc.la'
    make[2]: *** [libmp3splt.la] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2
    -> fails

    When trying the autogen, things get worse!

    The same configure from above fails with

    ./configure: line 26339: syntax error near unexpected token ,{' ./configure: line 26339: XIPH_PATH_OGG(,{ echo "$as_me:$LINENO: WARNING: Ogg not found! Download the latest version of libogg at http://www.xiph.org." >&5'

     
  • Nobody/Anonymous

    I installed libogg and libvorbis now. Still the syntax eror. I commented all the lines except for 3 of them. So .configure now looks like this from line 26339 on:

    if test x$enable_ogg_plugin = xyes;then

    XIPH_PATH_OGG(,{ echo "$as_me:$LINENO: WARNING: Ogg not found! Download the latest version of libogg at http://www.xiph.org." >&5

    echo "$as_me: WARNING: Ogg not found! Download the latest version of libogg at http://www.xiph.org." >&2;})

    XIPH_PATH_VORBIS( if true; then

    OGG_PLUGIN_TRUE=

    OGG_PLUGIN_FALSE='#'

    else

    OGG_PLUGIN_TRUE='#'
    OGG_PLUGIN_FALSE=

    fi

    ogg="yes",

    { echo "$as_me:$LINENO: WARNING: Vorbis not found! Will build without ogg/vorbis support." >&5

    echo "$as_me: WARNING: Vorbis not found! Will build without ogg/vorbis support." >&2;})

    fi

    Compilation now worked.

     
  • Munteanu Alexandru

    Thank you for the feedback.

    XIPH_PATH_OGG is a macro from the "ogg.m4" file.
    On a debian system, it can be found in "/usr/share/aclocal/".

    What are you using to install packages like libogg and libvorbis:
    macports, fink, something else ?

    --
    Alex

     
  • Anonymous

    Anonymous - 2010-06-18

    Same error here, OS X 10.6.4, latest libmad and libid3tag installed.

     
  • Munteanu Alexandru

    Which error ? The XIPH one or the '../libltdl/libltdlc.la' ?

     
  • Nobody/Anonymous

    Similar same issue here on Mac OS 10.6.5:
    autoconf.sh bails out complaining about you must have gettext(msgfmt) installed to compile mp3splt-gtk.
    Since I don't intend to use gtk I tried ./configure which completes without issues.
    On make, however, I get the following error:

    libtool: link: cannot find the library ../libltdl/libltdlc.la' or unhandled argument../libltdl/libltdlc.la'

    Which is no surprise, since libltdlc.la is nowhere to be found on the system.
    The OS delivers
    /Developer/SDKs/MacOSX10.5.sdk/usr/lib/libltdl.3.1.4.dylib
    /Developer/SDKs/MacOSX10.5.sdk/usr/lib/libltdl.3.dylib
    /Developer/SDKs/MacOSX10.5.sdk/usr/lib/libltdl.a
    /Developer/SDKs/MacOSX10.5.sdk/usr/lib/libltdl.dylib
    /Developer/SDKs/MacOSX10.6.sdk/usr/include/libltdl
    /Developer/SDKs/MacOSX10.6.sdk/usr/include/libltdl/lt_dlloader.h
    /Developer/SDKs/MacOSX10.6.sdk/usr/include/libltdl/lt_error.h
    /Developer/SDKs/MacOSX10.6.sdk/usr/include/libltdl/lt_system.h
    /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libltdl.3.1.4.dylib
    /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libltdl.3.dylib
    /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libltdl.7.1.2.dylib
    /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libltdl.7.dylib
    /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libltdl.a
    /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libltdl.dylib

    and the same stuff is at

    /usr/lib/libltdl.3.1.4.dylib
    /usr/lib/libltdl.3.dylib
    /usr/lib/libltdl.7.1.2.dylib
    /usr/lib/libltdl.7.dylib
    /usr/lib/libltdl.a
    /usr/lib/libltdl.dylib

    and MacPorts etc. installs libltdl etc. in separate installs (what a waste), but NOT libltdlc.la.

    Somehow I managed to install the previous version mp3splt 2.2.8 (17/02/10) - uses libmp3splt 0.5.9 without problems on a previous version of OS 10.6.X but whatever I do I have not look with libmp2splt 0.6.

    Thanks!

     
  • Munteanu Alexandru

     
  • Munteanu Alexandru

     
1 2 > >> (Page 1 of 2)
MongoDB Logo MongoDB