bugGnash - The GNU Flash player - Bugs: bug #17225, SDL sound handler attempted to...

 
 

bug #17225: SDL sound handler attempted to build even if dependencies are not met

Submitted by:  None
Submitted on:  Fri 28 Jul 2006 01:10:28 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Sandro Santilli <strk>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Tue 01 Aug 2006 07:34:47 AM UTC, comment #6:

It's OK for me. However I can't test compilation because I get another error (see bug #17247).
Also I attach an output cleanup patch for configure.ac.

Anonymous
Mon 31 Jul 2006 08:35:09 PM UTC, comment #5:

I made sound support default to disabled.
Also, turned the no-sdl Warning into an error if sdl sound is requested. Tests welcome.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 31 Jul 2006 02:02:08 PM UTC, comment #4:

OK, thanks.

By the way would be nice to mention --disable-sound in the output of ./configure --help.

Anonymous
Mon 31 Jul 2006 11:53:31 AM UTC, comment #3:

Ok, I know what the problem is.
Previously, HAS_SDL was used to switch between sound backend.
Now SOUND_HANDLER (or similar) is used.

./configure fails to set sound_hanlder=none when sdl is
requested but not installed.

A quick workaround is to specify --disable-sound
I'll fix the automatic guess.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 31 Jul 2006 07:59:52 AM UTC, comment #2:

Yes, I get this warning:
WARNING: No SDL_Mixer development package installed! You need to have the SDL Mixer development package installed if you wish to have MP3 support for Gnash. To compile this project with SDL sound support, install libsdl-mixer1.2-dev (using apt-get) or SDL_mixer-devel (using yum).

However I got the same warning some days before, but compiled fine.

I have not installed SDL_mixer.

This is the output of 'make dumpconfig':
Linux fedora-box 2.6.17-1.2157_FC5 #1 Tue Jul 11 22:55:46 EDT 2006 i686 i686 i386 GNU/Linux
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.1 20060525 (Red Hat 4.1.1-1)
JPEG_CFLAGS is
JPEG_LIBS is -ljpeg
PNG_CFLAGS is
PNG_LIBS is -lpng
OGG_CFLAGS is
OGG_LIBS is -logg
ZLIB_CFLAGS is
ZLIB_LIBS is -lz
LIBXML_CFLAGS is -I/usr/include/libxml2
LIBXML_LIBS is -lxml2 -lz -lm
SDL_CFLAGS is -I/usr/include/SDL
SDL_LIBS is -lSDL
SDL_MIXER_CFLAGS is
SDL_MIXER_LIBS is
OPENGL_CFLAGS is
OPENGL_LIBS is -lGL -lGLU
GLEXT_CFLAGS is -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include
GLEXT_LIBS is -lgtkglext-x11-1.0 -lgdkglext-x11-1.0
GTK2_CFLAGS is -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
GTK2_LIBS is -lgtk-x11-2.0 -lgdk-x11-2.0
FLTK_CFLAGS is
FLTK_LIBS is
XFT_CFLAGS is -I/usr/include/X11
XFT_LIBS is -lXft
PANGO_CFLAGS is -I/usr/include/pango-1.0
PANGO_LIBS is -lpango-1.0
CAIRO_CFLAGS is -I/usr/include/cairo
CAIRO_LIBS is -lcairo
ATK_CFLAGS is -I/usr/include/atk-1.0
ATK_LIBS is -latk-1.0
GLIB_CFLAGS is -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
GLIB_LIBS is -lglib-2.0
X_CFLAGS is -I.
X_LIBS is -L/usr/lib
DMALLOC_CFLAGS is
DMALLOC_LIBS is
MP3_CFLAGS is
MP3_LIBS is
PTHREAD_CFLAGS is
PTHREAD_LIBS is -lpthread
CURL_CFLAGS is
CURL_LIBS is -lcurl
GSTREAMER_CFLAGS is
GSTREAMER_LIBS is
KDE_INCLUDES is -I/usr/include/kde
KDE_LDFLAGS is
A blank value for CFLAGS means the header is installed in the
default system header location. All the LIBS should have a
legit value

Anonymous
Sun 30 Jul 2006 01:14:17 AM UTC, comment #1:

Did ./configure raise a Warning about not finding SDL_mixer ?
Do you have SDL_mixer ?
What does 'make dumpconfig' say about it ?

Sandro Santilli <strk>
Project MemberIn charge of this item.
Fri 28 Jul 2006 01:10:28 PM UTC, original submission:

I get this error while compiling current gnash with a FC5 and its gcc 4.1.1:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I../server -I../libbase -I../backend -I../libgeometry -I/usr/include -I/usr/include/SDL -I/usr/include/libxml2 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/include/glib-2.0/../../lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/atk-1.0 -DQT_THREAD_SUPPORT -D_REENTRANT -g -O2 -ansi -pedantic -Wno-long-long -Wall -MT render_handler_ogl.lo -MD -MP -MF .deps/render_handler_ogl.Tpo -c render_handler_ogl.cpp -o render_handler_ogl.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I../server -I../libbase -I../backend -I../libgeometry -I/usr/include -I/usr/include/SDL -I/usr/include/libxml2 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/include/glib-2.0/../../lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/atk-1.0 -DQT_THREAD_SUPPORT -D_REENTRANT -g -O2 -ansi -pedantic -Wno-long-long -Wall -MT sound_handler_sdl.lo -MD -MP -MF ".deps/sound_handler_sdl.Tpo" -c -o sound_handler_sdl.lo sound_handler_sdl.cpp; \
then mv -f ".deps/sound_handler_sdl.Tpo" ".deps/sound_handler_sdl.Plo"; else rm -f ".deps/sound_handler_sdl.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I../server -I../libbase -I../backend -I../libgeometry -I/usr/include -I/usr/include/SDL -I/usr/include/libxml2 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/include/glib-2.0/../../lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/atk-1.0 -DQT_THREAD_SUPPORT -D_REENTRANT -g -O2 -ansi -pedantic -Wno-long-long -Wall -MT sound_handler_sdl.lo -MD -MP -MF .deps/sound_handler_sdl.Tpo -c sound_handler_sdl.cpp -fPIC -DPIC -o .libs/sound_handler_sdl.o
sound_handler_sdl.cpp:16:23: error: SDL_mixer.h: No such file or directory
sound_handler_sdl.cpp:29: error: 'Mix_Chunk' was not declared in this scope
sound_handler_sdl.cpp:29: error: template argument 1 is invalid
sound_handler_sdl.cpp:29: error: template argument 2 is invalid
sound_handler_sdl.cpp: In constructor 'SDL_sound_handler::SDL_sound_handler()':
sound_handler_sdl.cpp:44: error: 'AUDIO_S16SYS' was not declared in this scope
sound_handler_sdl.cpp:44: error: 'Mix_OpenAudio' was not declared in this scope
sound_handler_sdl.cpp:46: error: 'Mix_GetError' was not declared in this scope
sound_handler_sdl.cpp:51: error: 'Mix_AllocateChannels' was not declared in this scope
sound_handler_sdl.cpp:52: error: 'MIX_MAX_VOLUME' was not declared in this scope
sound_handler_sdl.cpp:52: error: 'Mix_Volume' was not declared in this scope
sound_handler_sdl.cpp:56: error: 'Mix_QuerySpec' was not declared in this scope
sound_handler_sdl.cpp:63: error: 'AUDIO_U8' was not declared in this scope
sound_handler_sdl.cpp:64: error: 'AUDIO_S8' was not declared in this scope
sound_handler_sdl.cpp:65: error: 'AUDIO_U16LSB' was not declared in this scope
sound_handler_sdl.cpp:66: error: 'AUDIO_S16LSB' was not declared in this scope
sound_handler_sdl.cpp:67: error: 'AUDIO_U16MSB' was not declared in this scope
sound_handler_sdl.cpp:68: error: 'AUDIO_S16MSB' was not declared in this scope
sound_handler_sdl.cpp: In destructor 'virtual SDL_sound_handler::~SDL_sound_handler()':
sound_handler_sdl.cpp:88: error: 'Mix_CloseAudio' was not declared in this scope
sound_handler_sdl.cpp:89: error: request for member 'size' in '((SDL_sound_handler*)this)->SDL_sound_handler::m_samples', which is of non-class type 'int'
sound_handler_sdl.cpp:91: error: invalid types 'int[int]' for array subscript
sound_handler_sdl.cpp:93: error: invalid types 'int[int]' for array subscript
sound_handler_sdl.cpp:93: error: 'Mix_FreeChunk' was not declared in this scope
sound_handler_sdl.cpp:99: error: request for member 'size' in '((SDL_sound_handler*)this)->SDL_sound_handler::m_samples', which is of non-class type 'int'
sound_handler_sdl.cpp: In member function 'virtual int SDL_sound_handler::create_sound(void*, int, int, gnash::sound_handler::format_type, int, bool)':
sound_handler_sdl.cpp:121: error: 'Mix_Chunk' was not declared in this scope
sound_handler_sdl.cpp:121: error: 'sample' was not declared in this scope
sound_handler_sdl.cpp:163: error: 'Mix_QuickLoad_RAW' was not declared in this scope
sound_handler_sdl.cpp:164: error: 'MIX_MAX_VOLUME' was not declared in this scope
sound_handler_sdl.cpp:164: error: 'Mix_VolumeChunk' was not declared in this scope
sound_handler_sdl.cpp:167: error: request for member 'push_back' in '((SDL_sound_handler*)this)->SDL_sound_handler::m_samples', which is of non-class type 'int'
sound_handler_sdl.cpp:168: error: request for member 'size' in '((SDL_sound_handler*)this)->SDL_sound_handler::m_samples', which is of non-class type 'int'
sound_handler_sdl.cpp: In member function 'virtual void SDL_sound_handler::play_sound(int, int, int, long int)':
sound_handler_sdl.cpp:174: error: request for member 'size' in '((SDL_sound_handler*)this)->SDL_sound_handler::m_samples', which is of non-class type 'int'
sound_handler_sdl.cpp:176: error: invalid types 'int[int]' for array subscript
sound_handler_sdl.cpp:179: error: invalid types 'int[int]' for array subscript
sound_handler_sdl.cpp:179: error: 'Mix_PlayChannel' was not declared in this scope
sound_handler_sdl.cpp: In member function 'virtual void SDL_sound_handler::stop_all_sounds()':
sound_handler_sdl.cpp:190: error: 'Mix_Playing' was not declared in this scope
sound_handler_sdl.cpp:192: error: 'Mix_HaltChannel' was not declared in this scope
sound_handler_sdl.cpp: In member function 'virtual int SDL_sound_handler::get_volume(int)':
sound_handler_sdl.cpp:202: error: request for member 'size' in '((SDL_sound_handler*)this)->SDL_sound_handler::m_samples', which is of non-class type 'int'
sound_handler_sdl.cpp:206: error: invalid types 'int[int]' for array subscript
sound_handler_sdl.cpp:206: error: 'Mix_VolumeChunk' was not declared in this scope
sound_handler_sdl.cpp: In member function 'virtual void SDL_sound_handler::set_volume(int, int)':
sound_handler_sdl.cpp:214: error: request for member 'size' in '((SDL_sound_handler*)this)->SDL_sound_handler::m_samples', which is of non-class type 'int'
sound_handler_sdl.cpp:216: error: 'MIX_MAX_VOLUME' was not declared in this scope
sound_handler_sdl.cpp:217: error: invalid types 'int[int]' for array subscript
sound_handler_sdl.cpp:217: error: 'Mix_VolumeChunk' was not declared in this scope
sound_handler_sdl.cpp: In member function 'virtual void SDL_sound_handler::stop_sound(int)':
sound_handler_sdl.cpp:224: error: request for member 'size' in '((SDL_sound_handler*)this)->SDL_sound_handler::m_samples', which is of non-class type 'int'
sound_handler_sdl.cpp:228: error: 'Mix_Chunk' was not declared in this scope
sound_handler_sdl.cpp:228: error: 'playing_chunk' was not declared in this scope
sound_handler_sdl.cpp:228: error: 'Mix_GetChunk' was not declared in this scope
sound_handler_sdl.cpp:229: error: invalid types 'int[int]' for array subscript
sound_handler_sdl.cpp:232: error: 'Mix_HaltChannel' was not declared in this scope
sound_handler_sdl.cpp: In member function 'virtual void SDL_sound_handler::delete_sound(int)':
sound_handler_sdl.cpp:242: error: request for member 'size' in '((SDL_sound_handler*)this)->SDL_sound_handler::m_samples', which is of non-class type 'int'
sound_handler_sdl.cpp:244: error: 'Mix_Chunk' was not declared in this scope
sound_handler_sdl.cpp:244: error: 'chunk' was not declared in this scope
sound_handler_sdl.cpp:244: error: invalid types 'int[int]' for array subscript
sound_handler_sdl.cpp:248: error: 'Mix_FreeChunk' was not declared in this scope
sound_handler_sdl.cpp:249: error: invalid types 'int[int]' for array subscript
make[2]: *** [sound_handler_sdl.lo] Error 1
make[2]: Leaving directory `/home/fabio/sorgenti/gnash/backend'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fabio/sorgenti/gnash'
make: *** [all] Error 2

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #10444:  configure.ac.patch added by None (6KiB - text/x-patch - output cleanup patch for configure.ac)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 8 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 01 Aug 2006 10:58:54 AM UTCstrkStatusReady For Test=>Fixed
  Open/ClosedOpen=>Closed
Tue 01 Aug 2006 07:34:47 AM UTCNoneAttached File-=>Added configure.ac.patch, #10444
Mon 31 Jul 2006 08:35:09 PM UTCstrkStatusConfirmed=>Ready For Test
Mon 31 Jul 2006 11:53:31 AM UTCstrkStatusNeed Info=>Confirmed
  Assigned toNone=>strk
  Summarycompile error=>SDL sound handler attempted to build even if dependencies are not met
Sun 30 Jul 2006 01:15:26 AM UTCstrkStatusNone=>Need Info

Back to the top


Powered by Savane 3.1-cleanup1