#18 mp3blaster 3.2.5 does not build with sid and gcc 4.4.5

open
nobody
None
5
2011-04-06
2011-04-06
Boris
No

If I try to build mp3blaster from source with sid-support enabled, I'll run into this error:

g++ -DHAVE_CONFIG_H -I. -I.. -I../mpegsound -I/usr/include/ncurses -I../nmixer -I/usr/local/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DMP3BLASTER_DOCDIR=\"/usr/local/share/mp3blaster\" -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -g -O2 -MT global.o -MD -MP -MF .deps/global.Tpo -c -o global.o global.cc
global.cc: In function 'void debug(const char*, ...)':
global.cc:197: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
global.cc: In function 'int is_sid(const char*)':
global.cc:374: error: invalid conversion from 'const char*' to 'char*'

This seems to be most likely due to a stricter gcc. The fix however is easy because ext can be a pointer to const char without a problem (see attached patch)

Discussion

  • Boris
    Boris
    2011-04-06

    mp3blaster-3.2.5_sid-gcc44.patch