Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303183 - media-gfx/freewrl-1.22.6 fails with xulrunner-1.9.2
Summary: media-gfx/freewrl-1.22.6 fails with xulrunner-1.9.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-02 06:31 UTC by Juergen Rose
Modified: 2010-02-08 23:51 UTC (History)
1 user (show)

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


Attachments
/var/tmp/portage/media-gfx/freewrl-1.22.6/temp/build.log (build.log,54.94 KB, text/plain)
2010-02-02 06:32 UTC, Juergen Rose
Details
patch to fix incompatibilities with xulrunner-1.9.2 (freewrl-1.22.6-xulrunner192-fixes.patch,5.60 KB, text/plain)
2010-02-05 14:53 UTC, Ian Stakenvicius (RETIRED)
Details
fixed ebuild for xuleunner-1.9.2 (freewrl-1.22.6.ebuild,4.43 KB, text/plain)
2010-02-05 14:56 UTC, Ian Stakenvicius (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2010-02-02 06:31:21 UTC
'emerge freewrl' fails with:
...
libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -Wundef -Wunused-macros -I/usr/include/freetype2 -DXP_UNIX -DJS_THREADSAFE -I/usr/include/xulrunner-1.9.2 -I/usr/include/nspr -I/usr/include/libxml2 -I/usr/include/libpng12 -DTARGET_MOTIF -O2 -D_GNU_SOURCE -fno-strict-aliasing -O2 -march=pentium4 -fomit-frame-pointer -MT x3d_parser/X3DParser.lo -MD -MP -MF x3d_parser/.deps/X3DParser.Tpo -c x3d_parser/X3DParser.c  -fPIC -DPIC -o x3d_parser/.libs/X3DParser.o
In file included from x3d_parser/X3DParser.c:39:
x3d_parser/../main/headers.h:1056: warning: data definition has no type or storage class
x3d_parser/../main/headers.h:1056: warning: type defaults to 'int' in declaration of 'updateStatusBar'
In file included from x3d_parser/X3DParser.c:57:
/usr/include/xulrunner-1.9.2/expat.h:140: error: expected specifier-qualifier-list before 'XML_Char'
/usr/include/xulrunner-1.9.2/expat.h:151: warning: type defaults to 'int' in declaration of 'XML_Char'
/usr/include/xulrunner-1.9.2/expat.h:151: error: expected ';', ',' or ')' before '*' token
...
x3d_parser/X3DParser.c:1744: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
make[3]: *** [x3d_parser/X3DParser.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-gfx/freewrl-1.22.6/work/freewrl-1.22.6/src/lib'
make[2]: *** [all-recursive] Error 1


Reproducible: Always




root@vilm:/root(7)# emerge -pvD1 freewrl

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-gfx/freewrl-1.22.6  USE="curl motif nsplugin sox xulrunner -debug -libeai -spidermonkey -static" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
root@vilm:/root(8)# emerge --info =media-gfx/freewrl-1.22.6
Portage 2.1.7.17 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.30-gentoo-r5 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.30-gentoo-r5-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 02 Feb 2010 04:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.5, 1.6.3, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.4.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo rsync://gd.tuwien.ac.at/opsys/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu"
LDFLAGS="-Wl,-O1"
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/java-overlay /var/lib/layman/science /var/lib/layman/x11 /var/lib/layman/zugaina /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs alsa ao aotuv apache2 asf aspell atlas audacious audiofile automount bash-completion beagle berkdb blas bluetooth boo boost branding bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib crypt cups curl cxx daap dbus device-mapper dga dia djvu doc dri ds2490 dts dv dvb dvd dvdr dvi dxr3 eds elf emacs emboss encode epiphany evo examples exif expat extensions extra extras fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx fts3 fuse galago garmin gd gdal gdbm geolocation geos gif gimp ginac git glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphtft graphviz gs gsl gsm gstreamer gtk guile hal harness hddtemp hdf hdf5 hlapi http httpd hvm iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda ithreads jabber jadetex java java5 java6 jbig john jpeg jpeg2k kde kdrive kerberos kexi kpathsea ladspa lame lapack latex lcms ldap libffi libgda libnotify libsamplerate lirc lm_sensors lua lzo mad mail maildir mailwrapper math matroska matrox mikmod mmx mmxext mng modules mono motif mozdevelop mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp overview pae pam pcre pda pdf perl plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio pymol python qhull qt3support qt4 quicktime readline reflection reiserfs rle romio rpc rrdcgi rrdtool samba sasl science sdl semantic-desktop server session slang slp smbclient smp sndfile snmp soup sox speex spell spl sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs theora thinkpad threads thunar thunderbird tidy tiff tk tntc tools truetype udev unicode usb userlocales utempter v4l2 virtualbox vorbis wav webdav webdav-serf webkit win32codecs wmf wxwidgets x264 x86 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                evdev               " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="mga vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-gfx/freewrl-1.22.6 was built with the following:
USE="curl motif nsplugin sox xulrunner -debug -libeai -spidermonkey -static" 
LDFLAGS="-Wl,-O1 -R/usr/lib/xulrunner-1.9/lib"

root@vilm:/root(9)# emerge -pqv =media-gfx/freewrl-1.22.6
[ebuild   R   ] media-gfx/freewrl-1.22.6  USE="curl motif nsplugin sox xulrunner -debug -libeai -spidermonkey -stati
Comment 1 Juergen Rose 2010-02-02 06:32:18 UTC
Created attachment 218129 [details]
/var/tmp/portage/media-gfx/freewrl-1.22.6/temp/build.log
Comment 2 Ian Stakenvicius (RETIRED) gentoo-dev 2010-02-02 15:55:42 UTC
friggin' mozilla-embedded expat...  I'm on it.

Comment 3 Ian Stakenvicius (RETIRED) gentoo-dev 2010-02-02 16:13:21 UTC
I assume that freewrl-1.22.5 fails the same way -- could you confirm this for me?

Thanks!
Comment 4 Juergen Rose 2010-02-02 17:04:23 UTC
Hi Ian,

I tried 'emerge -vD =freewrl-1.22.5', which fails with:
...
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -Wundef -Wunused-macros -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -I/usr/include/freetype2 -DXP_UNIX -DJS_THREADSAFE -I/usr/include/xulrunner-1.9.2 -I/usr/include/nspr -I/usr/include/libxml2 -I/usr/include/libpng12 -DTARGET_MOTIF -O2 -fno-strict-aliasing -O2 -march=pentium4 -fomit-frame-pointer -MT x3d_parser/X3DParser.lo -MD -MP -MF x3d_parser/.deps/X3DParser.Tpo -c x3d_parser/X3DParser.c  -fPIC -DPIC -o x3d_parser/.libs/X3DParser.o
In file included from x3d_parser/X3DParser.c:57:
/usr/include/xulrunner-1.9.2/expat.h:140: error: expected specifier-qualifier-list before 'XML_Char'
/usr/include/xulrunner-1.9.2/expat.h:151: warning: type defaults to 'int' in declaration of 'XML_Char'
/usr/include/xulrunner-1.9.2/expat.h:151: error: expected ';', ',' or ')' before '*' token
...
x3d_parser/X3DParser.c:1579: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
make[3]: *** [x3d_parser/X3DParser.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-gfx/freewrl-1.22.5/work/freewrl-1.22.5/src/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/freewrl-1.22.5/work/freewrl-1.22.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/freewrl-1.22.5/work/freewrl-1.22.5'
make: *** [all] Error 2
 * ERROR: media-gfx/freewrl-1.22.5 failed:


Regards Juergen
Comment 5 Ian Stakenvicius (RETIRED) gentoo-dev 2010-02-02 17:12:20 UTC
Thank-you.

The issue is definitely with the way freewrl accesses/includes the headers from xulrunner (there's apparently been a change from the way they were handled in xulrunner-1.9.0 and -1.9.1).  It'll take a day or two for me to work out a patch, but i'll post it and get portage updated as soon as I do.

Ian
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2010-02-04 17:17:29 UTC
OK, I've got a patch that'll work as long as you don't want to use the browser plugin (that API has also changed in xulrunner-1.9.2, it seems)

If you want i'll post it, otherwise I'll post the final solution after I've got the plugin compiling.
Comment 7 Juergen Rose 2010-02-05 12:45:10 UTC
I need freewrl mainly for octave-forge-vrml. If the patch could help me, I would be interested. 
Regards Juergen
Comment 8 Ian Stakenvicius (RETIRED) gentoo-dev 2010-02-05 14:18:50 UTC
I've solved all of the build-time issues now, just need to do some further testing before i post the results.

I'll attach the solution within a few hours, and hopefully will have portage updated before tomorrow.
Comment 9 Ian Stakenvicius (RETIRED) gentoo-dev 2010-02-05 14:53:57 UTC
Created attachment 218535 [details]
patch to fix incompatibilities with xulrunner-1.9.2

This patch adjusts source code and the build system to overcome API changes in introduced in xulrunner-1.9.2

Tested against xulrunner-1.9.2-r1
Comment 10 Ian Stakenvicius (RETIRED) gentoo-dev 2010-02-05 14:56:34 UTC
Created attachment 218537 [details]
fixed ebuild for xuleunner-1.9.2

This ebuild applies the patch in attachment #218535 [details] and also copies the system's expat header files to a temporary area to get around the gcc-only-looks-at-standard-include-dirs-last issue.  The patch and fixes are only applied for xulrunner-1.9.2 and above, no changes are made for any other case.
Comment 11 Ian Stakenvicius (RETIRED) gentoo-dev 2010-02-05 15:02:58 UTC
The patch and ebuild changes also work for freewrl-1.22.5, looks like.

Comment 12 Patrick Lauer gentoo-dev 2010-02-08 23:51:10 UTC
+*freewrl-1.22.6-r1 (08 Feb 2010)
+
+  08 Feb 2010; Patrick Lauer <patrick@gentoo.org> +freewrl-1.22.6-r1.ebuild,
+  +files/freewrl-1.22.6-xulrunner192-fixes.patch:
+  Fix for xulrunner-1.9.2 by Ian Stakenvicius, fixes #303183