GNOME Bugzilla – Bug 104009
[Solaris/0.6.1] gsta52dec.c can't be compiled
Last modified: 2004-12-22 21:47:04 UTC
The file includes <stdint.h>, that doesn't exist on a Solaris system (not mine at least :) .... The file is in ./ext/gsta52dec .... By the way, it doesn't include config.h either, perhaps it should?
Upstream checks for the C99 headers it uses and does some hack to create similar ones if they are not available. Perhaps to solve this you might want to do the same... generate stdint.h header that uses glib types. I think it's mostly the [u]intN_t variety of typedefs that are used. Or better yet, just use a compiler that supports C99.
A clarification: by "upstream" I mean the liba52 source.
Hmm, I'm compiling this with gcc-3.2.1, doesn't it support C99? And I still think that the configure script should notice that there is no such file (stdint.h) and thus, it shouldn't be included. JJ
It includes config.h now... If you remove the stdint.h, uint8_t/uint32_t are undefined types... Choose your favourite solution. ;).
Ronald, what is the status of this bug? is it fixed?
Created attachment 14577 [details] [review] I was hoping for someone to give a clean solution... Since noone did, here's my dirty hack. I don't want to be responsible for applying this. ;-).
Since nobody else cares, I applied this to CVS with a #ifdef HAVE_STDINT_H #include <stdint.h> #else <use above code> #endif. Waiting for 0.6.1 approval.
Applied to 0.6.1 CVS.