SDL_mixer does not compile under ubuntu

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

Moderators: cheriff, TyRaNiD

Post Reply
jandujar
Posts: 12
Joined: Thu Sep 27, 2007 10:45 pm

SDL_mixer does not compile under ubuntu

Post by jandujar »

Hello,

I donwload the toolchain from svn://svn.ps2dev.org/psp/trunk

and I'm having problems compiling the SDL_mixer.

Code: Select all

psp@ubuntu-7:~/downloads/psplibraries/build/SDL_mixer$ ./autogen.sh
acinclude.m4:375: the serial number must appear before any macro definition
/usr/share/aclocal/oaf.m4:4: warning: underquoted definition of AM_PATH_OAF
/usr/share/aclocal/oaf.m4:4:   run info '(automake)Extending aclocal'
/usr/share/aclocal/oaf.m4:4:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
Now you are ready to run ./configure
psp@ubuntu-7:~/downloads/psplibraries/build/SDL_mixer$    LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
>      ./configure --host psp --with-sdl-prefix=$(psp-config --psp-prefix) \
>      --disable-music-mp3 --prefix=$(psp-config --psp-prefix) \
>      --disable-music-libmikmod --enable-music-mod
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... ./config.guess: unable to guess system type

This script, last modified 2001-01-17, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

    ftp://ftp.gnu.org/pub/gnu/config/

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2001-01-17

uname -m = i686
uname -r = 2.6.22-14-386
uname -s = Linux
uname -v = #1 Sun Oct 14 22&#58;36&#58;54 GMT 2007

/usr/bin/uname -p = 
/bin/uname -X     = 

hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = 
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 

UNAME_MACHINE = i686
UNAME_RELEASE = 2.6.22-14-386
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 Sun Oct 14 22&#58;36&#58;54 GMT 2007
configure&#58; error&#58; cannot guess build type; you must specify one
What's happens?
Someone set up us the bomb? <- litle joke
danzel
Posts: 182
Joined: Fri Nov 04, 2005 11:03 pm

Post by danzel »

read the README.PSP
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Presumably he already did, the command he ran is straight out of README.PSP.

Jandujar, it should have worked... could you upload the config.guess file somewhere online so I can take a look at it? Also the output of "md5sum config.guess" and "ls -l /bin/sh".
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

I just did a clean install of Xubuntu 7.10 and an install of the toolchain and libraries. Everything's fine. My guess is he is missing a dependency, or trying to do something out of order. If you just get all the dependencies, then run the toolchain.sh and libraries.sh scripts, it all works peachy.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

My guess is that config.guess somehow got corrupted or he's using a non-standard shell that's causing issues. I don't think that error could arise from a simple dependency mismatch.
jandujar
Posts: 12
Joined: Thu Sep 27, 2007 10:45 pm

Post by jandujar »

danzel, I have read the README.PSP, everything works until yesterday, because I update the ubuntu distribution.

My machine:
Linux ubuntu-7 2.6.22-14-386 #1 Sun Oct 14 22:36:54 GMT 2007 i686 GNU/Linux

all the process

Code: Select all

psp@ubuntu-7&#58;~/downloads$ svn co svn&#58;//svn.ps2dev.org/psp/trunk/psplibraries
A    psplibraries/depends
A    psplibraries/depends/check-make.sh
A    psplibraries/depends/check-autoconf.sh
A    psplibraries/depends/check-subversion.sh
A    psplibraries/depends/check-pspdev.sh
A    psplibraries/depends/check-psptoolchain.sh
A    psplibraries/depends/check-libtool.sh
A    psplibraries/depends/check-automake.sh
A    psplibraries/depends/check-wget.sh
A    psplibraries/libraries.sh
A    psplibraries/scripts
A    psplibraries/scripts/008-libogg.sh
A    psplibraries/scripts/005-libbulletml.sh
A    psplibraries/scripts/015-pspirkeyb.sh
A    psplibraries/scripts/007-libmikmod.sh
A    psplibraries/scripts/010-libpspvram.sh
A    psplibraries/scripts/009-libpng.sh
A    psplibraries/scripts/013-lua.sh
A    psplibraries/scripts/003-freetype.sh
A    psplibraries/scripts/002-bzip2.sh
A    psplibraries/scripts/020-SDL_mixer.sh
A    psplibraries/scripts/004-jpeg.sh
A    psplibraries/scripts/014-pspgl.sh
A    psplibraries/scripts/017-SDL.sh
A    psplibraries/scripts/012-libvorbis.sh
A    psplibraries/scripts/006-libmad.sh
A    psplibraries/scripts/019-SDL_image.sh
A    psplibraries/scripts/018-SDL_gfx.sh
A    psplibraries/scripts/011-libTremor.sh
A    psplibraries/scripts/001-zlib.sh
A    psplibraries/scripts/021-SDL_ttf.sh
A    psplibraries/scripts/016-sqlite.sh
A    psplibraries/readme.txt
A    psplibraries/libraries-sudo.sh
Revisión obtenida&#58; 2328
psp@ubuntu-7&#58;~/downloads$ cd psplibraries/
psp@ubuntu-7&#58;~/downloads/psplibraries$ make build
psp@ubuntu-7&#58;~/downloads/psplibraries$ cd build
psp@ubuntu-7&#58;~/downloads/psplibraries/build$ ../scripts/020-SDL_mixer.sh 
A    SDL_mixer/PBProjects.tar.gz
A    SDL_mixer/SDL_mixer.qpg.in
A    SDL_mixer/music_cmd.c
A    SDL_mixer/depcomp
A    SDL_mixer/native_midi
A    SDL_mixer/native_midi/native_midi_common.c
A    SDL_mixer/native_midi/native_midi_common.h
A    SDL_mixer/native_midi/Makefile.am
A    SDL_mixer/native_midi/native_midi_mac.c
A    SDL_mixer/native_midi/native_midi_win32.c
A    SDL_mixer/native_midi/native_midi.h
A    SDL_mixer/music_cmd.h
A    SDL_mixer/effect_stereoreverse.c
A    SDL_mixer/config.guess
A    SDL_mixer/native_midi_gpl
A    SDL_mixer/native_midi_gpl/emumidi.h
A    SDL_mixer/native_midi_gpl/readmidi.c
A    SDL_mixer/native_midi_gpl/patchload.c
A    SDL_mixer/native_midi_gpl/gmvoices.h
A    SDL_mixer/native_midi_gpl/awe_voice.h
A    SDL_mixer/native_midi_gpl/gsvoices.h
A    SDL_mixer/native_midi_gpl/Makefile.am
A    SDL_mixer/native_midi_gpl/emumidi.c
A    SDL_mixer/native_midi_gpl/native_midi_gpl.c
A    SDL_mixer/native_midi_gpl/playevents.c
A    SDL_mixer/native_midi_gpl/README
A    SDL_mixer/native_midi_gpl/playmidi.h
A    SDL_mixer/effects_internal.c
A    SDL_mixer/timidity
A    SDL_mixer/timidity/output.c
A    SDL_mixer/timidity/instrum.c
A    SDL_mixer/timidity/timidity.h
A    SDL_mixer/timidity/mix.h
A    SDL_mixer/timidity/controls.c
A    SDL_mixer/timidity/output.h
A    SDL_mixer/timidity/instrum.h
A    SDL_mixer/timidity/controls.h
A    SDL_mixer/timidity/playmidi.c
A    SDL_mixer/timidity/resample.c
A    SDL_mixer/timidity/config.h
A    SDL_mixer/timidity/tables.c
A    SDL_mixer/timidity/README
A    SDL_mixer/timidity/playmidi.h
A    SDL_mixer/timidity/resample.h
A    SDL_mixer/timidity/readmidi.c
A    SDL_mixer/timidity/tables.h
A    SDL_mixer/timidity/sdl_a.c
A    SDL_mixer/timidity/readmidi.h
A    SDL_mixer/timidity/sdl_c.c
A    SDL_mixer/timidity/filter.c
A    SDL_mixer/timidity/FAQ
A    SDL_mixer/timidity/common.c
A    SDL_mixer/timidity/Makefile.am
A    SDL_mixer/timidity/filter.h
A    SDL_mixer/timidity/timidity.c
A    SDL_mixer/timidity/mix.c
A    SDL_mixer/timidity/common.h
A    SDL_mixer/ltmain.sh
A    SDL_mixer/config.sub
A    SDL_mixer/music_ogg.c
A    SDL_mixer/effects_internal.h
A    SDL_mixer/CWProjects.sea.bin
A    SDL_mixer/music_ogg.h
A    SDL_mixer/VisualC.zip
A    SDL_mixer/CHANGES
A    SDL_mixer/COPYING
A    SDL_mixer/autogen.sh
A    SDL_mixer/playmus.c
A    SDL_mixer/SDL_mixer.h
A    SDL_mixer/MPWmake.sea.bin
A    SDL_mixer/mikmod
A    SDL_mixer/mikmod/mdreg.c
A    SDL_mixer/mikmod/virtch.c
A    SDL_mixer/mikmod/load_s3m.c
A    SDL_mixer/mikmod/mmio.c
A    SDL_mixer/mikmod/mikmod_internals.h
A    SDL_mixer/mikmod/mikmod_build.h
A    SDL_mixer/mikmod/AUTHORS
A    SDL_mixer/mikmod/mlreg.c
A    SDL_mixer/mikmod/mlutil.c
A    SDL_mixer/mikmod/virtch_common.c
A    SDL_mixer/mikmod/mdriver.c
A    SDL_mixer/mikmod/mplayer.c
A    SDL_mixer/mikmod/drv_nos.c
A    SDL_mixer/mikmod/mwav.c
A    SDL_mixer/mikmod/load_it.c
A    SDL_mixer/mikmod/README
A    SDL_mixer/mikmod/load_mod.c
A    SDL_mixer/mikmod/virtch2.c
A    SDL_mixer/mikmod/mloader.c
A    SDL_mixer/mikmod/load_xm.c
A    SDL_mixer/mikmod/COPYING.LESSER
A    SDL_mixer/mikmod/mmerror.c
A    SDL_mixer/mikmod/mmalloc.c
A    SDL_mixer/mikmod/mikmod.h
A    SDL_mixer/mikmod/Makefile.am
A    SDL_mixer/mikmod/munitrk.c
A    SDL_mixer/mikmod/sloader.c
A    SDL_mixer/mikmod/npertab.c
A    SDL_mixer/mikmod/drv_sdl.c
A    SDL_mixer/SDL_mixer.spec.in
A    SDL_mixer/load_aiff.c
A    SDL_mixer/configure.in
A    SDL_mixer/load_aiff.h
A    SDL_mixer/load_ogg.c
A    SDL_mixer/README
A    SDL_mixer/README.PSP
A    SDL_mixer/wavestream.c
A    SDL_mixer/load_ogg.h
A    SDL_mixer/effect_position.c
A    SDL_mixer/music.c
A    SDL_mixer/wavestream.h
A    SDL_mixer/mixer.c
A    SDL_mixer/acinclude.m4
A    SDL_mixer/load_voc.c
A    SDL_mixer/missing
A    SDL_mixer/Makefile.am
A    SDL_mixer/playwave.c
A    SDL_mixer/load_voc.h
A    SDL_mixer/install-sh
 U   SDL_mixer
Revisión obtenida&#58; 2328
acinclude.m4&#58;375&#58; the serial number must appear before any macro definition
/usr/share/aclocal/oaf.m4&#58;4&#58; warning&#58; underquoted definition of AM_PATH_OAF
/usr/share/aclocal/oaf.m4&#58;4&#58;   run info '&#40;automake&#41;Extending aclocal'
/usr/share/aclocal/oaf.m4&#58;4&#58;   or see http&#58;//sources.redhat.com/automake/automake.html#Extending-aclocal
Now you are ready to run ./configure
configure&#58; WARNING&#58; If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... ./config.guess&#58; unable to guess system type

This script, last modified 2001-01-17, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

    ftp&#58;//ftp.gnu.org/pub/gnu/config/

If the version you run &#40;./config.guess&#41; is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2001-01-17

uname -m = i686
uname -r = 2.6.22-14-386
uname -s = Linux
uname -v = #1 Sun Oct 14 22&#58;36&#58;54 GMT 2007

/usr/bin/uname -p = 
/bin/uname -X     = 

hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = 
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 

UNAME_MACHINE = i686
UNAME_RELEASE = 2.6.22-14-386
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 Sun Oct 14 22&#58;36&#58;54 GMT 2007
configure&#58; error&#58; cannot guess build type; you must specify one
psp@ubuntu-7&#58;~/downloads/psplibraries/build$ 

danzel
Posts: 182
Joined: Fri Nov 04, 2005 11:03 pm

Post by danzel »

jandujar wrote:danzel, I have read the README.PSP, everything works until yesterday, because I update the ubuntu distribution.
Sorry, my bad. Forgot what the README.PSP said myself :)

what is the output of:

Code: Select all

dpkg -l | grep autoconf
dpkg -l | grep automake
Ubuntu should have no trouble building the toolchain.
jandujar
Posts: 12
Joined: Thu Sep 27, 2007 10:45 pm

Post by jandujar »

Code: Select all

dpkg -l | grep autoconf
ii  autoconf                                   2.61-4                                    automatic configure script builder
psp@ubuntu-7&#58;~$ dpkg -l | grep automake
ii  automake                                   1&#58;1.10+nogfdl-1                           A tool for generating GNU Standards-complian
ii  automake1.9                                1.9.6+nogfdl-3ubuntu1                     A tool for generating GNU Standards-complian
psp@ubuntu-7&#58;~$ 
¿?
two automake?
I have deleted the first automake ->apt-get remove automake
and the error persist.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

jimparis wrote:My guess is that config.guess somehow got corrupted or he's using a non-standard shell that's causing issues. I don't think that error could arise from a simple dependency mismatch.
It could if it were one of the build tools he was missing. :)
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Jandujar, if you don't give us what we ask for there's no way we can help..
could you upload the config.guess file somewhere online so I can take a look at it? Also the output of "md5sum config.guess" and "ls -l /bin/sh".
danzel
Posts: 182
Joined: Fri Nov 04, 2005 11:03 pm

Post by danzel »

jandujar wrote:two automake?
I have deleted the first automake ->apt-get remove automake
and the error persist.
Remove "automake1.9" and reinstall "automake".
jandujar
Posts: 12
Joined: Thu Sep 27, 2007 10:45 pm

Post by jandujar »

sorry for the delay.

I have removed automake1.9 and reinstalled automake, and nothing matter.

ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2007-10-10 08:48 /bin/sh -> dash

I uploaded the downloaded files and the config.guess, etc...
http://rapidshare.com/files/65946107/SD ... ar.gz.html
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Dash might have problems. Try pointing sh to bash instead by running

Code: Select all

sudo ln -sf bash /bin/sh
and try again. (you can put it back later with "sudo ln -sf dash /bin/sh")

If that still doesn't help, could you go into the SDL_mixer directory and run

Code: Select all

/bin/bash -x config.guess
and paste the output here?
jandujar
Posts: 12
Joined: Thu Sep 27, 2007 10:45 pm

Post by jandujar »

same problem

Code: Select all


psp@ubuntu-7&#58;~/downloads/psplibraries/build/SDL_mixer$ bash -x config.guess 
+ timestamp=2001-01-17
++ echo config.guess
++ sed -e 's,.*/,,'
+ me=config.guess
+ usage='Usage&#58; config.guess &#91;OPTION&#93;

Output the configuration name of the system `config.guess'\'' is run on.

Operation modes&#58;
  -h, --help         print this help, then exit
  -t, --time-stamp   print date of last modification, then exit
  -v, --version      print version number, then exit

Report bugs and patches to <config-patches@gnu.org>.'
+ version='GNU config.guess &#40;2001-01-17&#41;

Originally written by Per Bothner.
Copyright &#40;C&#41; 1992, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.'
+ help='
Try `config.guess --help'\'' for more information.'
+ test 0 -gt 0
+ test 0 '!=' 0
+ dummy=dummy-10055
+ trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
+ case $CC_FOR_BUILD,$HOST_CC,$CC in
+ echo 'int dummy&#40;&#41;&#123;&#125;'
+ for c in cc gcc c89
+ test 1 = 0
+ for c in cc gcc c89
+ test 0 = 0
+ CC_FOR_BUILD=gcc
+ break
+ rm -f dummy-10055.c dummy-10055.o dummy-10055.rel
+ test xgcc = x
+ UNAME_MACHINE=i686
+ UNAME_RELEASE=2.6.22-14-386
+ UNAME_SYSTEM=Linux
+ UNAME_VERSION='#1 Sun Oct 14 22&#58;36&#58;54 GMT 2007'
+ case "$&#123;UNAME_MACHINE&#125;&#58;$&#123;UNAME_SYSTEM&#125;&#58;$&#123;UNAME_RELEASE&#125;&#58;$&#123;UNAME_VERSION&#125;" in
++ cd /
++ ld --help
++ sed -ne '/supported emulations&#58;/!d
                                    s/&#91;         &#93;&#91;      &#93;*/ /g
                                    s/.*supported emulations&#58; *//
                                    s/ .*//
                                    p'
+ ld_supported_emulations=
+ case "$ld_supported_emulations" in
+ test i686 = alpha
+ test i686 = mips
+ test i686 = s390
+ test i686 = x86_64
+ test i686 = parisc -o i686 = hppa
+ test -z ''
+ echo i686-pc-linux-gnuoldld
i686-pc-linux-gnuoldld
+ exit 0

config.guess -v

Code: Select all

psp@ubuntu-7&#58;~/downloads/psplibraries/build/SDL_mixer$ bash config.guess -v
GNU config.guess &#40;2001-01-17&#41;

Originally written by Per Bothner.
Copyright &#40;C&#41; 1992, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Weird, there's definitely something screwy on your system:

Code: Select all

+ for c in cc gcc c89
+ test 1 = 0
+ for c in cc gcc c89
+ test 0 = 0
+ CC_FOR_BUILD=gcc
+ break
This means that "cc" does not properly compile things, only "gcc" does. On an Ubuntu system those should be the same thing. Could you paste output of "ls -l $(which cc)" and "update-alternatives --display cc".

Code: Select all

++ ld --help
++ sed -ne '/supported emulations&#58;/!d
                                    s/&#91;         &#93;&#91;      &#93;*/ /g
                                    s/.*supported emulations&#58; *//
                                    s/ .*//
                                    p'
+ ld_supported_emulations= 
And similarly your "ld" isn't putting out the right output. Could you paste output of "ls -l $(which ld)" and "ld --version"
jandujar
Posts: 12
Joined: Thu Sep 27, 2007 10:45 pm

Post by jandujar »

Code: Select all

ls -l $&#40;which cc&#41;
lrwxrwxrwx 1 root root 20 2007-10-10 09&#58;05 /usr/bin/cc -> /etc/alternatives/cc

ls -l /etc/alternatives/cc
lrwxrwxrwx 1 root root 12 2007-10-10 09&#58;05 /etc/alternatives/cc -> /usr/bin/gcc


update-alternatives --display cc
cc - el estado es auto.
 el enlace apunta actualmente a /usr/bin/gcc
/usr/bin/gcc - prioridad 20
 esclavo cc.1.gz&#58; /usr/share/man/man1/gcc.1.gz
Actualmente la «mejor» versión es /usr/bin/gcc.

ls -l $&#40;which ld&#41;
-rwxr-xr-x 1 root root 437908 2007-09-19 02&#58;15 /usr/bin/ld

ld --version
GNU ld &#40;GNU Binutils for Ubuntu&#41; 2.18
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or &#40;at your option&#41; a later version.
This program has absolutely no warranty.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

I have no idea what's going on. There are a number of weird inconsistencies:
  • when config.guess ran as part of the build, it printed out a message saying it couldn't figure out your system type -- but when you ran it manually with "bash -x", the output was "i686-pc-linux-gnuoldld"
  • the system type i686-pc-linux-gnuoldld would only be printed if your /usr/bin/ld were really old or broken, but it's not, it's the newest version. The "bash -x" output indicates that the "ld --help" output had no supported emulations listed, but that can't be true.
  • the "bash -x" output also indicated that "cc" did not work when compiling and executable, but "gcc" did. Your alternatives show that they're exactly the same thing.
Sorry, I'm not really sure what to try next. Are you running all those commands I asked for as the same user "psp"? Maybe the output of "env" would be enlightening.

I also updated the version of config.guess in the SDL_mixer repository, so maybe if you just retry it things will work now. Who knows.
jandujar
Posts: 12
Joined: Thu Sep 27, 2007 10:45 pm

Post by jandujar »

now it works!!!

I don't know what you did, but now it works.

Thanks.
Post Reply