Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#6105 - apricots: crashes beacause of alut

Attached to Project: Arch Linux
Opened by charly ghislain (cghislai) - Saturday, 30 December 2006, 11:17 GMT
Last edited by Damir Perisa (damir.perisa) - Sunday, 09 September 2007, 11:22 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Damir Perisa (damir.perisa)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

apricots crashes when launched. It seems it can't find alut in openal. Installing freealut doesn't fix.
Maybe the openal binary provided by arch was built without alut, while apricots was built against an openal version using alut.
This task depends upon

Closed by  Damir Perisa (damir.perisa)
Sunday, 09 September 2007, 11:22 GMT
Reason for closing:  Fixed
Additional comments about closing:  thanx for patch - fixed
Comment by Damir Perisa (damir.perisa) - Monday, 01 January 2007, 23:14 GMT
~|500> apricots
apricots: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
Comment by Damir Perisa (damir.perisa) - Monday, 01 January 2007, 23:18 GMT
Targets: xdg-utils-1.0.1-1 archlinux-menus-1.2-1 avahi-0.6.16-2 cdrkit-1.1.1-1 cmake-2.4.5-1 glib-perl-1.142-1
glitz-0.5.6-1 gnome-backgrounds-2.16.2-1 gnome-python-extras-2.14.2-3 cairo-perl-1.022-1
gtk2-perl-1.141-1 guile-gtk-1.2_0.60-1 kaffeine-0.8.3-2 libgksu-2.0.3-1 libldap-2.3.31-1
libmpcdec-1.2.4-1 libmysqlclient-5.0.27-1 libnotify-0.4.3-1 mysql-clients-5.0.27-1 mysql-5.0.27-2
libevent-1.1a-2 nfs-utils-1.0.10-3 ntp-4.2.4-1 openldap-2.3.31-1 pycrypto-2.0.1-1
python-geoip-1.2.1-1 xine-lib-1.1.3-1 xkeyboard-config-0.9-1

Total Package Size: 34.3 MB

Proceed with upgrade? [Y/n]
Comment by Damir Perisa (damir.perisa) - Monday, 01 January 2007, 23:42 GMT
rebuilding apricots
Comment by Damir Perisa (damir.perisa) - Monday, 01 January 2007, 23:44 GMT
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking AL/alchecking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking AL/al.h usability... yes
checking AL/al.h presence... yes
checking for AL/al.h... yes
checking for alutInit in -lopenal... no
checking for extra includes... no
checking for extra libs... no
checking if apricots should be compiled... yes
.h usability... yes


g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -march=i686 -O2 -pipe -fno-exceptions -fno-check-new -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DAP_PATH=\"/usr/share/apricots/\" -DAP_AUDIO_OPENAL -c -o sampleio.o `test -f 'sampleio.cpp' || echo './'`sampleio.cpp
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++
sampleio.cpp: In member function 'void sampleio::init(int, char (*)[255], int, int)':
sampleio.cpp:92: error: 'alutLoadWAV' was not declared in this scope
make[3]: *** [sampleio.o] Error 1

checking AL/al.h presence... yes
checking for AL/al.h... yes
checking for alutInit in -lopenal... no
checking for extra includes... no
checking for extra libs... no
checking if apricots should be compiled... yes
Comment by Damir Perisa (damir.perisa) - Monday, 01 January 2007, 23:55 GMT
alutLoadWAVFile instead of alutLoadWAV should be used - bäh! - needs to be patched.
Comment by charly ghislain (cghislai) - Friday, 05 January 2007, 15:25 GMT
thanks! thats a well described bug report. Thanks for your time. Maybe ill post a patch in the near future (actually, after my exams)
Comment by Damir Perisa (damir.perisa) - Friday, 05 January 2007, 17:49 GMT
yea, thanx for the compliment - sorry that i0m not looking at this now (my diploma thesis takes lots of time atm). if you find something on the web (maybe the debian people have some patch?) or write one yourself, great....

we can also ask the community to search for a solution.

the problem is that the new function alutLoadWAVFile that replaces alutLoadWAV has a different syntax, that's why i cannot simply replace it.
Comment by Allan McRae (Allan) - Sunday, 09 September 2007, 04:39 GMT
Attached is an updated package build and patch (from gentoo) that fixes the package. Haven't over test but the games start with sound and I get get the plane to take-off...

Loading...