libtool.m4 and ltmain.sh have a version mismatch!

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
dom
Posts: 29
Joined: Tue Oct 05, 2004 7:20 pm

libtool.m4 and ltmain.sh have a version mismatch!

Post by dom »

Hi everybody,

i'm trying to compile some libs for the psp.
when configuring libogg, i get the following error :

Code: Select all

*** [Gentoo] sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.20, ltmain.sh = 1.5.6) ***

Please run:

  libtoolize --copy --force

if appropriate, please contact the maintainer of this
package (or your distribution) for help.
when running libtoolize --copy --force , psp specific configuration is gone.

After :

Code: Select all

LDFLAGS="-L`psp-config --pspsdk-path`/lib -lc -lpspuser" ./autogen.sh      --host psp --prefix=`psp-config --psp-prefix`
i commented the following in configure :

Code: Select all

# # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
# #
# # Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
# #        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
# #        calls AC_LIBTOOL_CONFIG and creates libtool.
# #
# echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
# echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
# if test -z "$ltmain"; then
#   echo "$as_me:$LINENO: result: no" >&5
# echo "${ECHO_T}no" >&6
#   echo
#   echo "*** [Gentoo] sanity check failed! ***"
#   echo "*** \$ltmain is not defined, please check the patch for consistency! ***"
#   echo
#   exit 1
# fi
# gentoo_lt_version="1.5.20"
# gentoo_ltmain_version=`grep '^[[:space:]]*VERSION=' $ltmain | sed -e 's|^[[:space:]]*VERSION=||'`
# if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then
#   echo "$as_me:$LINENO: result: no" >&5
# echo "${ECHO_T}no" >&6
#   echo
#   echo "*** [Gentoo] sanity check failed! ***"
#   echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***"
#   echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***"
#   echo
#   echo "Please run:"
#   echo
#   echo "  libtoolize --copy --force"
#   echo
#   echo "if appropriate, please contact the maintainer of this"
#   echo "package (or your distribution) for help."
#   echo
#   exit 1
# else
#   echo "$as_me:$LINENO: result: yes" >&5
# echo "${ECHO_T}yes" >&6
# fi
then :

Code: Select all

LDFLAGS="-L`psp-config --pspsdk-path`/lib -lc -lpspuser" ./configure --host psp --prefix=`psp-config --psp-prefix`
and make && make install just run fine.

Is this safe to bypass this sanity check ?
Can this sanity check be disabled in configure.in or elsewhere with a less dirty method ?


Is this problem related to my following settings or distribution ?

Code: Select all

automake --version
automake (GNU automake) 1.6.3
but automake-1.4  automake-1.5  automake-1.6  automake-1.7  automake-1.8  automake-1.9 are also present

autoconf --version
autoconf (GNU Autoconf) 2.59
but autoconf-2.13  autoconf-2.59 are aslo present

libtool --version
ltmain.sh (GNU libtool) 1.5.20 (1.1220.2.287 2005/08/31 18:54:15)

Os is gentoo on p4 hardware
@+
dom
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

If everything works then I'd guess it's ok to bypass that check.

BTW, I added libogg and libvorbis so that I could get OGG support for SDL_mixer going. I then hacked SDL_mixer to be able to link with libTremor (the fastest OGG decoder on PSP). libogg and libvorbis are horribly slow on PSP. If you want to play OGG through SDL_mixer or without it, I suggest you use libTremor.
dom
Posts: 29
Joined: Tue Oct 05, 2004 7:20 pm

Post by dom »

Thank you mrbrown,

will try libTremor asap, not much time those days ....
@+
dom
pensoffsky
Posts: 8
Joined: Sun Nov 13, 2005 7:23 am

Post by pensoffsky »

BTW, I added libogg and libvorbis so that I could get OGG support for SDL_mixer going. I then hacked SDL_mixer to be able to link with libTremor (the fastest OGG decoder on PSP). libogg and libvorbis are horribly slow on PSP. If you want to play OGG through SDL_mixer or without it, I suggest you use libTremor.
how did you do that?
i am trying to get ogg support in sdl_mixer,
on the pc it works fine, the program plays ogg and wav,
but on the psp only wav works, when the prog tries to load a ogg file it crashes,

i think the lvorbis & logg are not linked into the program
what am i doing wrong?

pensoffsky
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

Compile and install libTremor. Don't use libogg and libvorbis, they are way too slow. Reconfigure and recompile SDL_mixer once libTremor is installed.
pensoffsky
Posts: 8
Joined: Sun Nov 13, 2005 7:23 am

Post by pensoffsky »

thx for the fast answer,
that solved the problem,
thanks

pens
Post Reply