rendering.cpp not using /usr/include/GL/glext.h?

Bug #1295918 reported by that guy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Lightspark
New
Undecided
Unassigned

Bug Description

"error: ‘GL_UNSIGNED_INT_8_8_8_8_REV’ was not declared in this scope"

/usr/include/GL/glext.h says:
#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367

# gcc -v
Using built-in specs.
COLLECT_GCC=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.7.3/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/powerpc-unknown-linux-gnu/4.7.3/lto-wrapper
Target: powerpc-unknown-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.7.3-r1/work/gcc-4.7.3/configure --host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu --prefix=/usr --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.7.3 --includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.7.3/include --datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.7.3 --mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.7.3/man --infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.7.3/info --with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.7.3/include/g++-v4 --with-python-dir=/share/gcc-data/powerpc-unknown-linux-gnu/4.7.3/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.7.3-r1 p1.4, pie-0.5.5' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --enable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto --without-cloog --without-ppl
Thread model: posix
gcc version 4.7.3 (Gentoo 4.7.3-r1 p1.4, pie-0.5.5)

<snip>
[ 29%] Building CXX object src/CMakeFiles/spark.dir/backends/rtmputils.cpp.o
cd /var/tmp/portage/www-plugins/lightspark-0.7.2/work/lightspark-0.7.2_build/src && /usr/bin/powerpc-unknown-linux-gnu-g++ -DAUDIO_BACKEND=\"pulsesdl\" -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DENABLE_CURL -DENABLE_GLES2 -DENABLE_LIBAVCODEC -DGNASH_PATH=\"/usr/bin/gnash\" -DHAVE_ATOMIC -DHAVE_AVCODEC_ALLOC_CONTEXT3 -DHAVE_AVCODEC_DECODE_AUDIO3 -DHAVE_AVCODEC_DECODE_AUDIO4 -DHAVE_AVCODEC_DECODE_VIDEO2 -DHAVE_AVCODEC_OPEN2 -DHAVE_AVFORMAT_CLOSE_INPUT -DHAVE_AVFORMAT_FIND_STREAM_INFO -DHAVE_AVIO_ALLOC_CONTEXT -DHAVE_NEW_GLIBMM_THREAD_API -DHAVE_SUPPORT_TARGETSELECT_H -DLLVM_31 -DLS_DATADIR=\"/usr/share/lightspark\" -DPRIVATELIBDIR=\"/usr/lib/lightspark\" -DXMLPP_2_35_1 -Dspark_EXPORTS -DNDEBUG -mcpu=7450 -O2 -pipe -maltivec -mabi=altivec -D__STDC_CONSTANT_MACROS -fPIC -maltivec -Wall -Wnon-virtual-dtor -Woverloaded-virtual -pipe -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -Wdisabled-optimization -Wextra -Wno-unused-parameter -Wno-invalid-offsetof -fPIC -I/var/tmp/portage/www-plugins/lightspark-0.7.2/work/lightspark-0.7.2_build -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libxml++-2.6 -I/usr/lib/libxml++-2.6/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/var/tmp/portage/www-plugins/lightspark-0.7.2/work/lightspark-0.7.2/src -I/var/tmp/portage/www-plugins/lightspark-0.7.2/work/lightspark-0.7.2/src/scripting -o CMakeFiles/spark.dir/backends/rtmputils.cpp.o -c /var/tmp/portage/www-plugins/lightspark-0.7.2/work/lightspark-0.7.2/src/backends/rtmputils.cpp
/var/tmp/portage/www-plugins/lightspark-0.7.2/work/lightspark-0.7.2/src/backends/rendering.cpp: In member function ‘void lightspark::RenderThread::commonGLInit(int, int)’:
/var/tmp/portage/www-plugins/lightspark-0.7.2/work/lightspark-0.7.2/src/backends/rendering.cpp:534:9: warning: unused variable ‘err’ [-Wunused-variable]
/var/tmp/portage/www-plugins/lightspark-0.7.2/work/lightspark-0.7.2/src/backends/rendering.cpp: In member function ‘GLuint lightspark::RenderThread::allocateNewGLTexture() const’:
/var/tmp/portage/www-plugins/lightspark-0.7.2/work/lightspark-0.7.2/src/backends/rendering.cpp:899:91: error: ‘GL_UNSIGNED_INT_8_8_8_8_REV’ was not declared in this scope
/var/tmp/portage/www-plugins/lightspark-0.7.2/work/lightspark-0.7.2/src/backends/rendering.cpp: In member function ‘void lightspark::RenderThread::loadChunkBGRA(const lightspark::TextureChunk&, uint32_t, uint32_t, uint8_t*)’:
/var/tmp/portage/www-plugins/lightspark-0.7.2/work/lightspark-0.7.2/src/backends/rendering.cpp:1087:76: error: ‘GL_UNSIGNED_INT_8_8_8_8_REV’ was not declared in this scope
make[2]: *** [src/CMakeFiles/spark.dir/backends/rendering.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/www-plugins/lightspark-0.7.2/work/lightspark-0.7.2_build'
make[1]: *** [src/CMakeFiles/spark.dir/all] Error 2
make[1]: Leaving directory `/var/tmp/portage/www-plugins/lightspark-0.7.2/work/lightspark-0.7.2_build'
make: *** [all] Error 2
 * ERROR: www-plugins/lightspark-0.7.2::gentoo failed (compile phase):
 * emake failed

any other info needed please ask.

Revision history for this message
that guy (bonafide-b) wrote :

Sorry, I should mention the same bug seems to exist with 0.7.2-r1

Revision history for this message
that guy (bonafide-b) wrote :

Furthermore, my ebuild has a use flag for gles and when I disable it I can compile okay with -fpermissive

# lightspark -v
INFO: Lightspark version 0.7.2 Copyright 2009-2013 Alessandro Pignotti and others

Thanks, it works, just not gles or gles2 on a powerpc G4. Thanks for all your efforts!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.