Bug 132819 - games-sports/ultimatestunts needs patch for openal/freealut split
Bug#: 132819 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: nyhm@gentoo.org
Component: Games
URL: 
Summary: games-sports/ultimatestunts needs patch for openal/freealut split
Keywords:  
Status Whiteboard: 
Opened: 2006-05-09 13:25 0000
Description:   Opened: 2006-05-09 13:25 0000
music.cpp:94:21: error: AL/alut.h: No such file or directory
sndsample.cpp:39:21: error: AL/alut.h: No such file or directory
make[2]: *** [music.o] Error 1
make[2]: *** Waiting for unfinished jobs....
sndsample.cpp: In member function 'virtual bool CSndSample::load(const
CString&, const CParamList&)':
sndsample.cpp:111: error: invalid conversion from 'ALubyte*' to 'const ALchar*'
sndsample.cpp:111: error:   initializing argument 1 of 'void*
alGetProcAddress(const ALchar*)'
sndsample.cpp:137: error: invalid conversion from 'ALubyte*' to 'const ALchar*'
sndsample.cpp:137: error:   initializing argument 1 of 'void*
alGetProcAddress(const ALchar*)'
sndsample.cpp:162: error: 'alutLoadWAV' was not declared in this scope
make[2]: *** [sndsample.o] Error 1
make[2]: Leaving directory
`/var/tmp/portage/ultimatestunts-0.6.1/work/ultimatestunts-srcdata-0611/ultimatestunts'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/ultimatestunts-0.6.1/work/ultimatestunts-srcdata-0611'
make: *** [all] Error 2

!!! ERROR: games-sports/ultimatestunts-0.6.1 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  ebuild.sh, line 1237:   Called games_src_compile
  games.eclass, line 136:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.

------- Comment #1 From Tristan Heaven 2006-05-12 06:23:07 0000 -------
Created an attachment (id=86650) [details]
ultimatestunts-0.6.1-freealut.patch

This seems to work

------- Comment #2 From Chris Gianelloni (RETIRED) 2006-05-12 11:17:39 0000 -------
Fixed in CVS... thanks for the patch!

------- Comment #3 From Matheus Izvekov 2006-05-14 11:46:08 0000 -------
(In reply to comment #1)
> Created an attachment (id=86650) [edit] [details]
> ultimatestunts-0.6.1-freealut.patch
> 
> This seems to work
> 

It didnt work for me, go no sound

---Sound data
   Loading file cars/generic/engine.wav
alutCreateBufferFromFile failed
   Loading file cars/generic/skid.wav
alutCreateBufferFromFile failed
   Loading file cars/generic/crash_nonfatal.wav
alutCreateBufferFromFile failed

------- Comment #4 From Tristan Heaven 2006-05-14 11:56:25 0000 -------
Can you try it with the printf line changed to

printf("%s\n", alutGetErrorString(alutGetError()));

------- Comment #5 From Matheus Izvekov 2006-05-14 12:01:11 0000 -------
got this:

---Sound data
   Loading file cars/generic/engine.wav
There was an error opening the ALC device
   Loading file cars/generic/skid.wav
The operation was invalid in the current ALUT state
   Loading file cars/generic/crash_nonfatal.wav
The operation was invalid in the current ALUT state

------- Comment #6 From Matheus Izvekov 2006-05-14 12:02:23 0000 -------
Ops disregard, found the problem already

------- Comment #7 From Matheus Izvekov 2006-05-14 12:04:32 0000 -------
One program stole my sound device without me noticing
The current code doesnt generate a explicit error message for this case, thats
why i didnt look for it.
Thats something another patch ought to fix :)

------- Comment #8 From Chris Gianelloni (RETIRED) 2006-05-15 13:24:34 0000 -------
*** Bug 133310 has been marked as a duplicate of this bug. ***