Gentoo Problem During Configure

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
stobbsm
Posts: 3
Joined: August 20th, 2005, 2:56 am

Gentoo Problem During Configure

Post by stobbsm »

Hey guys, first time poster, long time player, but I've never had a problem before.

here is my error
checking for XOpenDisplay in -lX11... yes
checking for sdl-config... /usr/bin/sdl-config
checking for libpng-config... /usr/bin/libpng-config
checking for SDL - version >= 1.2.7... yes
checking for gnome-config... /usr/bin/gnome-config
checking for kde-config... no
checking for libtool... /usr/bin/libtool
checking for IMG_Load in -lSDL_image... yes
checking for Mix_OpenAudio in -lSDL_mixer... no
configure: error: *** SDL_mixer lib not found! Get SDL_mixer from
http://www.libsdl.org/projects/SDL_mixer/index.html

!!! ERROR: games-strategy/wesnoth-0.9.5 failed.
!!! Function egamesconf, Line 64, Exitcode 1
!!! egamesconf failed
!!! If you need support, post the topmost build error, NOT this status message.
Now, I know I have SDL_mixer installed. I tried thru the ebuild and manually compiling it.

What could it possilbly be?
How do I fix it?

All help is appreciated
Playing Wesnoth since 0.8.4
Pi
Posts: 4
Joined: August 13th, 2005, 3:45 am
Location: Glencoe Math Textbooks
Contact:

Post by Pi »

This is sort of an off topic remark, but man, your living in the tomorrow of wht I'm living in.
3.1415926535897932384626433832795...
Pi
Posts: 4
Joined: August 13th, 2005, 3:45 am
Location: Glencoe Math Textbooks
Contact:

Post by Pi »

or maybe it's just the wesnoth time
sorry :(
3.1415926535897932384626433832795...
Guest

Re: Gentoo Problem During Configure

Post by Guest »

stobbsm wrote:configure: error: *** SDL_mixer lib not found! Get SDL_mixer from
http://www.libsdl.org/projects/SDL_mixer/index.html

Now, I know I have SDL_mixer installed.
You need SDL_mixer-dev also.
stobbsm
Posts: 3
Joined: August 20th, 2005, 2:56 am

Post by stobbsm »

with gentoo, the dev files (sourcecode/headers) get installed at the same time. It's all compiled using the emerge command.

Anyways, I installed both ways, thru portage and manually.

What else could it be??
Playing Wesnoth since 0.8.4
Breeblebox
Posts: 209
Joined: October 27th, 2004, 8:24 am
Location: New Zealand

Post by Breeblebox »

Perhaps you have old or broken dependencies. Could you try the following for me?

Code: Select all

emerge sync
emerge -v depclean
revdep-rebuild -v
emerge -uDv wesnoth
You may want to go get a pizza during that depending on your connection speed and machine speed (get distcc first if you have more than one machine). Oh, and for reference, my sdl-mixer is;

Code: Select all

*  media-libs/sdl-mixer
      Latest version available: 1.2.6
      Latest version installed: 1.2.6
      Size of downloaded files: 1,120 kB
      Homepage:    http://www.libsdl.org/projects/SDL_mixer/index.html
      Description: Simple Direct Media Layer Mixer Library
      License:     LGPL-2
... and this package should be a one stop shop containing:

Code: Select all

/usr/include/SDL/SDL_mixer.h
/usr/lib/libSDL_mixer-1.2.so.0 -> libSDL_mixer-1.2.so.0.2.4
/usr/lib/libSDL_mixer-1.2.so.0.2.4
/usr/lib/libSDL_mixer.a
/usr/lib/libSDL_mixer.la
/usr/lib/libSDL_mixer.so -> libSDL_mixer-1.2.so.0.2.4
Further, the dependencies for Wesnoth in Gentoo as related to SDL are;

Code: Select all

breeble@goku ~ $ equery depgraph wesnoth|grep sdl
 `-- media-libs/libsdl-1.2.8-r1
 `-- media-libs/sdl-image-1.2.3-r1
 `-- media-libs/sdl-mixer-1.2.6
 `-- media-libs/sdl-net-1.2.5
Can you check your versions of these packages? Specifically libsdl and sdl-mixer
Bear, as in Fozzy,Bare, as in Arms,Beer, as in Free.
Distro | Browser
energyman76c
Posts: 199
Joined: May 26th, 2004, 9:38 pm

Post by energyman76c »

Hi,

you have to recompile sdl-mixer after every sdl-libs update.

for example:
updated sdl-libs to 1.x.x-r2 you have to recompile the installed sdl-mixer
Guest

Post by Guest »

Same problem and dosn't work. :(
lwa
Inactive Developer
Posts: 271
Joined: June 11th, 2005, 8:19 am
Location: Paris, France

Post by lwa »

check config.log
simkin
Posts: 15
Joined: June 7th, 2005, 7:17 am
Location: Valencian Country
Contact:

Post by simkin »

Which use flags have you enabled for sdl-mixer?
Signature dropped due to use of img tag
Guest

Post by Guest »

+mp3, +mikmod, +vorbis. This is all.

Config.log only say that: SDL_mixer lib not found !

Everything is same as Breeblebox said.

Code: Select all

/usr/include/SDL/SDL_mixer.h
/usr/lib/libSDL_mixer-1.2.so.0 -> libSDL_mixer-1.2.so.0.2.4
/usr/lib/libSDL_mixer-1.2.so.0.2.4
/usr/lib/libSDL_mixer.a
/usr/lib/libSDL_mixer.la
/usr/lib/libSDL_mixer.so -> libSDL_mixer-1.2.so.0.2.4
...and SDL-mixer is remerged, but same problem.
lwa
Inactive Developer
Posts: 271
Joined: June 11th, 2005, 8:19 am
Location: Paris, France

Post by lwa »

Anonymous wrote: Config.log only say that: SDL_mixer lib not found !
read more than one line.
Guest

Post by Guest »

Are you sure you have ogg in there? IIRC, vorbis does not automatically include ogg.
simkin
Posts: 15
Joined: June 7th, 2005, 7:17 am
Location: Valencian Country
Contact:

Post by simkin »

There is a plenty of threads in the gentoo forums regarding this issue. No universal solution, but more or less everyone finally gets it working. I don't know, it works fine for me. Have you tried to downgrade to 1.2.5-r1?
Signature dropped due to use of img tag
Guest

Post by Guest »

It's all:

Code: Select all

| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char Mix_OpenAudio ();
| int
| main ()
| {
| Mix_OpenAudio ();
|   ;
|   return 0;
| }
configure:9173: result: no
configure:9182: error: *** SDL_mixer lib not found! Get SDL_mixer from
http://www.libsdl.org/projects/SDL_mixer/index.html
Post Reply