Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
media-libs/sdl-image not emerging
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
rasmussen
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2002
Posts: 142
Location: .se

PostPosted: Fri Oct 11, 2002 6:33 pm    Post subject: media-libs/sdl-image not emerging Reply with quote

Subject says all, here's the error:

Code:

checking for a BSD compatible install... /bin/install -c
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.4... no
*** Could not run SDL test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. In the latter case, you
*** may want to edit the sdl-config script: /usr/bin/sdl-config
configure: error: *** SDL version 1.2.4 not found!

!!! ERROR: The ebuild did not complete successfully.
!!! Function econf, Line 9, Exitcode 1
!!! econf failed

root@loke:~ >/usr/bin/sdl-config --version
1.2.5


So I suspect there's something wrong with the configure script of sdl-image -- apparently it doesn't consider 1.2.5 as a higher version than 1.2.4

Odd thing:

Code:

root@loke:~ >emerge -s libsdl
Searching...   
[ Results for search key : libsdl ]
[ Applications found : 1 ]
 
*  media-libs/libsdl
      Latest version available: 1.2.4.20020601
      Latest version installed: 1.2.4.20020601
      Homepage: http://www.libsdl.org/
      Description: Simple Direct Media Layer
 
root@loke:~ >


So, why's it reporting 1.2.5 ???
Back to top
View user's profile Send private message
rasmussen
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2002
Posts: 142
Location: .se

PostPosted: Fri Oct 11, 2002 7:04 pm    Post subject: Reply with quote

I looked at the config.log in the /var/tmp/portage directory and here's what it says :

Code:

configure:2209: checking for SDL - version >= 1.2.4
configure:2294: gcc -o conftest -march=i686 -O3 -pipe -I/usr/include/SDL -D_REENTRANT   conftest.c  -L/usr/lib -Wl,-rpat
h,/usr/lib -lSDL -lpthread 1>&5
/usr/lib/libSDL.so: undefined reference to `snd_pcm_hw_params_set_periods_near'
/usr/lib/libSDL.so: undefined reference to `snd_pcm_hw_params_set_rate_near'
/usr/lib/libSDL.so: undefined reference to `snd_pcm_drain'
/usr/lib/libSDL.so: undefined reference to `snd_pcm_hw_params_set_access'
/usr/lib/libSDL.so: undefined reference to `snd_pcm_hw_params_set_channels'
/usr/lib/libSDL.so: undefined reference to `snd_pcm_hw_params_sizeof'
/usr/lib/libSDL.so: undefined reference to `snd_pcm_hw_params_set_format'
/usr/lib/libSDL.so: undefined reference to `snd_pcm_writei'
/usr/lib/libSDL.so: undefined reference to `snd_pcm_hw_params_get_channels'
/usr/lib/libSDL.so: undefined reference to `snd_pcm_hw_params'
/usr/lib/libSDL.so: undefined reference to `snd_pcm_prepare'
/usr/lib/libSDL.so: undefined reference to `snd_pcm_resume'
/usr/lib/libSDL.so: undefined reference to `snd_pcm_hw_params_any'
/usr/lib/libSDL.so: undefined reference to `snd_pcm_hw_params_set_period_size_near'
collect2: ld returned 1 exit status


So it's the SDL test program which is failing -- but which library is it that it desperately wants to link to?

Help requested.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Oct 11, 2002 9:25 pm    Post subject: Reply with quote

Something in alsa-lib, perhaps?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
rasmussen
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2002
Posts: 142
Location: .se

PostPosted: Fri Oct 11, 2002 10:36 pm    Post subject: Problem fixed Reply with quote

OK, finally fixed the problem. Turns out that there is version dependency between libSDL and ALSA.

LibSDL will compile and install with ALSA of just about any version, but when building programs using libSDL it'll spit out a dozen undefined references unless the 0.9 versions of ALSA is used.

Alas, 0.9 is sorely broken on for the ymfpci soundcard on Toshiba Tecra 8x00 laptops, so I've been running the 0.5 versions. Until now, that is.

Guess I'll have to use the OSS driver until ALSA catches up.

NEway, problem fixed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
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