Jump to content
Eternal Lands Official Forums
Sign in to follow this  
majestyk

Gentoo Openal/freealut compile problems

Recommended Posts

When compiling the CVS source on one of my gentoo boxes, I get:

sound.c: In function `get_loaded_buffer':

sound.c:266: warning: `alutLoadWAVFile' is deprecated (declared at /usr/include/AL/alut.h:102)

sound.c:269: warning: `alutUnloadWAV' is deprecated (declared at /usr/include/AL/alut.h:105)

 

Later on, it exits stating:

sound.o: In function `get_loaded_buffer':

sound.c:266: undefined reference to `alutLoadWAVFile'

sound.c:269: undefined reference to `alutUnloadWAV'

sound.o: In function `destroy_sound':

sound.c:917: undefined reference to `alutExit'

collect2: ld returned 1 exit status

make: *** [el.x86.linux.bin] Error 1

 

Since it works on another box, I checked to which packages the /usr/include/AL/* files belong, and which versions they have. On the machine where it works:

equery b /usr/include/AL/alut.h

[ Searching for file(s) /usr/include/AL/alut.h in *... ]

media-libs/openal-20050504-r1 (/usr/include/AL/alut.h)

 

On the machine where it does NOT work:

[ Searching for file(s) /usr/include/AL/alut.h in *... ]

media-libs/freealut-1.0.1 (/usr/include/AL/alut.h)

 

Checking on the machine where it works for updates to this package:

warp ~ # emerge -av freealut

 

These are the packages that I would merge, in order:

 

Calculating dependencies ...done!

[blocks B ] ~media-libs/openal-20050504 (is blocking media-libs/freealut-1.0.1)

[ebuild UD] media-libs/openal-0.0.8 [20050504-r1] +alsa -arts -debug +esd +mp3 +sdl +vorbis 0 kB

[ebuild N ] media-libs/freealut-1.0.1 444 kB

 

The old version of the openal pacakge has been deprecated, and the part which is included by the elc has been split off into the freealut package. If you check the openAL web page, you can see that freealut has been released already in february; on gentoo, this package has been marked stable on May, 26th., so this is bound to hit other gentoo users too. If there is anything I can help with, just name it, but I doubt I can be of big service in making the actual code changes. :-|

 

Cheers,

majestyk

Share this post


Link to post
Share on other sites
amd@box770 ~/code/elc $ diff -u Makefile.linux.orig Makefile.linux
--- Makefile.linux.orig 2006-06-08 19:35:31.000000000 +0300
+++ Makefile.linux	  2006-06-08 19:35:54.000000000 +0300
@@ -39,7 +39,7 @@
_CXXFLAGS=$(PLATFORM) -O3 -fomit-frame-pointer -ffast-math -pipe $(OPTIONS)


-LDFLAGS=$(shell sdl-config --libs) $(shell xml2-config --libs) -lSDL_net -lopenal $(XDIR) -lGL -lGLU -lvorbis -lvorbisfile -lcal3d -lm -lpng
+LDFLAGS=$(shell sdl-config --libs) $(shell xml2-config --libs) $(shell freealut-config --libs) -lSDL_net -lopenal $(XDIR) -lGL -lGLU -lvorbis -lvorbisfile -lcal3d -lm -lpng
_LDFLAGS=$(XDIR) -lGL -lpthread -lz
STATICLIBS=libs/libSDL_net.a libs/libSDL.a libs/libopenal.a libs/libvorbisfile.a libs/libvorbis.a libs/libogg.a libs/libxml2.a libs/libcal3d.a libs/libpng.a libs/libasound.a

Share this post


Link to post
Share on other sites

On the subject of the EL ebuild (not worth a seperate thread though):

 

Why is the AUTO_UPDATE feature still disabled?

sed \
	-e "s@CFLAGS=\$(PLATFORM) \$(CWARN) -O -ggdb -pipe@CFLAGS=${CFLAGS} @g"\
	-e "s@CXXFLAGS=\$(PLATFORM) \$(CXXWARN) -O -ggdb -pipe@CXXFLAGS=${CXXFLAGS} @g"\
	-e "s@OPTIONS=@${OPTIONS} @g" \
	-e 's/ -DAUTO_UPDATE//' \

 

Access to '/usr/shared/games/eternal-lands' directory can be made r/w to 'games' group members, to allow updated from the live client, with group stickybit set on the directories. I see this is already done in the data ebuild :)

 

Incremental updates shouldn't have any effect on the eternal-lands-data package (?) That would just be the minimum data set required for the corresponding client release.

Edited by trollson

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×