forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
dom



Joined: 05 Oct 2004
Posts: 29

PostPosted: Wed Nov 09, 2005 1:10 am    Post subject: libtool.m4 and ltmain.sh have a version mismatch! Reply with quote

Hi everybody,

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

Code:
*** [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:

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:
# # 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:

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:

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
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Wed Nov 09, 2005 4:30 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
dom



Joined: 05 Oct 2004
Posts: 29

PostPosted: Mon Nov 14, 2005 6:50 am    Post subject: Reply with quote

Thank you mrbrown,

will try libTremor asap, not much time those days ....
_________________
@+
dom
Back to top
View user's profile Send private message
pensoffsky



Joined: 13 Nov 2005
Posts: 8

PostPosted: Mon Dec 12, 2005 7:05 am    Post subject: Reply with quote

Quote:
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
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Mon Dec 12, 2005 7:10 am    Post subject: Reply with quote

Compile and install libTremor. Don't use libogg and libvorbis, they are way too slow. Reconfigure and recompile SDL_mixer once libTremor is installed.
Back to top
View user's profile Send private message
pensoffsky



Joined: 13 Nov 2005
Posts: 8

PostPosted: Mon Dec 12, 2005 8:11 am    Post subject: Reply with quote

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

pens
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group