Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440148 - www-plugins/lightspark-0.7.0[gles] - In file included from .../work/lightspark-0.7.0/src/swf.cpp:34: /usr/include/libxml++-2.6/libxml++/parsers/textreader.h:44:7: error: expected identifier before numeric constant
Summary: www-plugins/lightspark-0.7.0[gles] - In file included from .../work/lightspar...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Chí-Thanh Christopher Nguyễn
URL: https://bugs.launchpad.net/lightspark...
Whiteboard:
Keywords:
: 445742 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-29 17:42 UTC by David Kredba
Modified: 2012-12-04 20:16 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build.log -j1 (build.log,31.74 KB, text/plain)
2012-10-29 17:44 UTC, David Kredba
Details
lightspark-0.7.0-libxmlpp-gles.patch (lightspark-0.7.0-libxmlpp-gles.patch,5.49 KB, patch)
2012-10-30 00:35 UTC, Chí-Thanh Christopher Nguyễn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Kredba 2012-10-29 17:42:55 UTC
Building CXX object src/CMakeFiles/spark.dir/swf.cpp.o
cd /var/tmp/portage/www-plugins/lightspark-0.7.0/work/lightspark-0.7.0_build/src && /usr/bin/x86_64-pc-linux-gnu-g++  -Dspark_EXPORTS -DHAVE_SUPPORT_TARGETSELECT_H -DLLVM_31 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DENABLE_GLES2 -DAUDIO_BACKEND=\"pulsesdl\" -DHAVE_AVCODEC_DECODE_VIDEO2 -DHAVE_AVCODEC_DECODE_AUDIO3 -DHAVE_AVCODEC_DECODE_AUDIO4 -DHAVE_AVIO_ALLOC_CONTEXT -DHAVE_AVCODEC_ALLOC_CONTEXT3 -DHAVE_AVCODEC_OPEN2 -DHAVE_AVFORMAT_CLOSE_INPUT -DHAVE_AVFORMAT_FIND_STREAM_INFO -DENABLE_LIBAVCODEC -DHAVE_NEW_GLIBMM_THREAD_API -DENABLE_RTMP -DLS_DATADIR=\"/usr/share/lightspark\" -DGNASH_PATH=\"/usr/bin/gnash\" -DPRIVATELIBDIR=\"/usr/lib64/lightspark\" -DHAVE_ATOMIC  -DNDEBUG -O2 -pipe -ggdb -march=native  -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.0/work/lightspark-0.7.0_build -I/usr/include/boost-1_49 -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libxml++-2.6 -I/usr/lib64/libxml++-2.6/include -I/usr/include/libxml2 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng15 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/pango-1.0 -I/usr/include/gtk-2.0 -I/usr/lib64/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.0/work/lightspark-0.7.0/src -I/var/tmp/portage/www-plugins/lightspark-0.7.0/work/lightspark-0.7.0/src/scripting    -o CMakeFiles/spark.dir/swf.cpp.o -c /var/tmp/portage/www-plugins/lightspark-0.7.0/work/lightspark-0.7.0/src/swf.cpp
In file included from /usr/include/libxml++-2.6/libxml++/libxml++.h:54:0,
                 from /var/tmp/portage/www-plugins/lightspark-0.7.0/work/lightspark-0.7.0/src/parsing/crossdomainpolicy.h:23,
                 from /var/tmp/portage/www-plugins/lightspark-0.7.0/work/lightspark-0.7.0/src/backends/security.h:32,
                 from /var/tmp/portage/www-plugins/lightspark-0.7.0/work/lightspark-0.7.0/src/swf.cpp:34:
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:44:7: error: expected identifier before numeric constant
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:44:7: error: expected ‘}’ before numeric constant
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:44:7: error: expected unqualified-id before numeric constant
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:73:3: error: expected unqualified-id before ‘public’
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:85:16: error: expected unqualified-id before ‘const’
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:85:16: error: expected ‘)’ before ‘const’
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:93:16: error: expected unqualified-id before ‘const’
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:93:16: error: expected ‘)’ before ‘const’
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:95:18: error: expected constructor, destructor, or type conversion before ‘;’ token
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:125:31: error: non-member function ‘int xmlpp::get_attribute_count()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:130:34: error: non-member function ‘Glib::ustring xmlpp::get_base_uri()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:135:21: error: non-member function ‘int xmlpp::get_depth()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:140:27: error: non-member function ‘bool xmlpp::has_attributes()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:145:22: error: non-member function ‘bool xmlpp::has_value()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:150:23: error: non-member function ‘bool xmlpp::is_default()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:155:29: error: non-member function ‘bool xmlpp::is_empty_element()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:157:36: error: non-member function ‘Glib::ustring xmlpp::get_local_name()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:158:30: error: non-member function ‘Glib::ustring xmlpp::get_name()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:159:39: error: non-member function ‘Glib::ustring xmlpp::get_namespace_uri()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:161:5: error: ‘xmlNodeType’ does not name a type
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:163:32: error: non-member function ‘Glib::ustring xmlpp::get_prefix()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:164:27: error: non-member function ‘char xmlpp::get_quote_char()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:166:31: error: non-member function ‘Glib::ustring xmlpp::get_value()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:167:34: error: non-member function ‘Glib::ustring xmlpp::get_xml_lang()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:169:35: error: non-member function ‘xmlpp::xmlReadState xmlpp::get_read_state()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:173:45: error: non-member function ‘Glib::ustring xmlpp::get_attribute(int)’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:174:60: error: non-member function ‘Glib::ustring xmlpp::get_attribute(const Glib::ustring&)’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:175:95: error: non-member function ‘Glib::ustring xmlpp::get_attribute(const Glib::ustring&, const Glib::ustring&)’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:179:65: error: non-member function ‘Glib::ustring xmlpp::lookup_namespace(const Glib::ustring&)’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:188:30: error: non-member function ‘bool xmlpp::get_normalization()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:191:57: error: non-member function ‘bool xmlpp::get_parser_property(xmlpp::ParserProperties)’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:195:36: error: non-member function ‘const xmlpp::Node* xmlpp::get_current_node()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:195:36: error: new declaration ‘const xmlpp::Node* xmlpp::get_current_node()’
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:194:11: error: ambiguates old declaration ‘xmlpp::Node* xmlpp::get_current_node()’
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:200:21: error: non-member function ‘bool xmlpp::is_valid()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:202:3: error: expected unqualified-id before ‘private’
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:204:5: error: ‘friend’ used outside of class
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:209:33: error: non-member function ‘void xmlpp::check_for_exceptions()’ cannot have cv-qualifier
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:217:1: error: expected declaration before ‘}’ token
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:207:17: warning: ‘void xmlpp::on_libxml_error(void*, const char*, int, void*)’ declared ‘static’ but never defined [-Wunused-function]

Reproducible: Always




Tried gcc 4.6.3 and 4.5.4 too, failed too.
Rebuild libxmlpp without effect.

Portage 2.2.0_alpha142 (default/linux/amd64/10.0/desktop, gcc-4.7.2, glibc-2.15-r3, 3.6.2-gentoo-1d x86_64)
=================================================================
System uname: Linux-3.6.2-gentoo-1d-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.2
Timestamp of tree: Mon, 29 Oct 2012 16:00:01 +0000
ld GNU ld (GNU Binutils) 2.23
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.2
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.4
sys-devel/binutils:       2.23
sys-devel/gcc:            4.4.7, 4.5.4, 4.6.3, 4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -ggdb -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -ggdb -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe -ggdb -march=native"
GENTOO_MIRRORS="ftp://gentoo.mirror.web4u.cz/"
LANG="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="echo"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="R X a52 aac acl acpi aften akonadi alsa amd64 amr aspell atlas attica berkdb blas bluetooth bluray boost branding bs2b bzip2 c++0x cairo caps cdda cddb cdio cdparanoia cdr cleartype cli consolekit cracklib crypt cups cvs cxx dbus djvu dot dri dts dv dvb dvd dvdr dvi eds egl emboss emf emovix encode exif faac fam ffmpeg fftw firefox fits flac fltk fluidsynth fontconfig fortran fpx freetds frei0r ftp gcj gd gdbm geoip ggi gif glut gmp gnome gnuplot gnutls gpac gpm gps graphviz gsl gsm gstreamer gtk guile h323 handbook hdf hdf5 iconv icu id3tag idn ieee1394 imagemagick imlib indi ipv6 ithreads jadetex java javascript jbig jpeg jpeg2k kate kde kipi ladspa lame lapack latex lcms ldap libass libnotify libsamplerate lirc live lua lzma lzo mad matroska md5sum midi mjpeg mms mmx mmxext mng modplug modules motif mp3 mp4 mpeg mplayer msn mtp mudflap multilib multimedia musepack musicbrainz mysql nautilus ncurses netcdf netpbm nls nptl numpy nut objc objc++ objc-gc ocaml octave odbc ofa ogg ogm okular openal opencl openexr opengl openmp openssl optimized-qmake pam pango pch pcre pdf perl pgplot phonon plotutils plplot png pnm policykit postgres postproc postscript ppds pppd projectm pulseaudio pvr python qalculate qscintilla qt3support qt4 qthelp quad quicktime qwt radio rdesktop readline rle rss rtmp ruby samba sasl scanner scrobbler sdl semantic-desktop session slang smp sndfile sox speex spell sqlite srt sse sse2 sse4_1 ssl ssse3 startup-notification subversion svg swig szip t1lib taglib tcl tcpd telepathy teletext theora threads tidy tiff tk tools truetype twolame udev udisks unicode upower usb utils v4l vaapi vala vcd vdpau video vnc vorbis vpx wav wavpack wmf wxwidgets x264 xanim xattr xcb xft xine xinerama xml xosd xpm xps xscreensaver xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2 canon hp215 sony_dscf1 sony_dscf55" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FFTOOLS="aviocat cws2fws ffeval graph2dot ismindex pktdumper qt-faststart trasher" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver scripting-beanshell scripting-javascript #pdfimport" LINGUAS="cs en" LIRC_DEVICES="inputlirc pctv hauppauge hauppauge_dvb devinput" PHP_TARGETS="php5-4" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 David Kredba 2012-10-29 17:44:37 UTC
Created attachment 327702 [details]
Build.log -j1
Comment 2 David Kredba 2012-10-29 17:44:53 UTC
[ebuild     U  ] www-plugins/lightspark-0.7.0 [0.6.0.1] USE="ffmpeg gles nsplugin* pulseaudio rtmp sdl -curl -profile" 0 kB
Comment 3 David Kredba 2012-10-29 17:46:32 UTC
Using "tricks" like: CPPFLAGS="-I/usr/include/libxml++-2.6 -I/usr/lib64/libxml++-2.6/include -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include" MAKEOPTS=-j1 emerge --oneshot lightspark
not helped too.
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-10-29 21:57:21 UTC
The problem seems to be related to the gles flag. I have updated the summary accordingly.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-10-30 00:35:02 UTC
Created attachment 327722 [details, diff]
lightspark-0.7.0-libxmlpp-gles.patch

The attached patch papers over a conflict between libX11 and libxml++ by modifying include order. This makes the build pass here even with gles enabled. Unfortunately I don't have time to further look into this, so report to upstream for a proper fix.
Comment 6 David Kredba 2012-10-30 07:42:48 UTC
Hello, thank you very much.

I opened an upstream bug and submitted your patch and comment to it.

https://bugs.launchpad.net/lightspark/+bug/1073056

Best regards, David.
Comment 7 David Kredba 2012-11-04 06:12:13 UTC
Upstream commited Chí-Thanh Christopher Nguyễn's patch:

Antti Ajanki 1073056@bugs.launchpad.net:

I've committed the proposed patch.

** Changed in: lightspark
       Status: New => Fix Committed

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1073056

Title:
   www-plugins/lightspark-0.7.0[gles] - In file included from
  .../work/lightspark-0.7.0/src/swf.cpp:34:
  /usr/include/libxml++-2.6/libxml++/parsers/textreader.h:44:7: error:
  expected identifier before numeric constant

Status in Lightspark:
  Fix Committed
Comment 8 Dennis Schridde 2012-11-04 19:32:14 UTC
Confirming that the patch makes lightspark-0.7.0 compile. I applied it as /etc/portage/patches/www-plugins/lightspark-0.7.0/lightspark-0.7.0-libxmlpp-gles.patch - maybe you can add it to Gentoo, too?
Comment 9 Sander Sweers 2012-11-18 12:39:18 UTC
This bug should be re-opened. It still fails to build and the accepted patch should be added to portage. Or don't add the patch and leave it open until a newer version is in portage that does compile properly with gles.
Comment 10 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-11-18 13:45:34 UTC
I originally created this patch as workaround for people who had an immediate need to use lightspark with gles, and did not expect upstream to accept it.

Anyway it is applied to 0.7.0 now.
Comment 11 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-12-04 20:16:27 UTC
*** Bug 445742 has been marked as a duplicate of this bug. ***