Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132982 - openvrml-0.14.3 does not compile (with gcc >=3.4?)
Summary: openvrml-0.14.3 does not compile (with gcc >=3.4?)
Status: RESOLVED DUPLICATE of bug 88970
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-11 00:45 UTC by Honza Macháček
Modified: 2006-05-12 04:23 UTC (History)
0 users

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


Attachments
Patch to compile openvrml-0.14.3 with gcc-3.4.6 (openvrml-0.14.3-name.patch,87.38 KB, patch)
2006-05-11 00:54 UTC, Honza Macháček
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Honza Macháček 2006-05-11 00:45:01 UTC
Compilation of media-libs/openvrml-0.14.3 fails. I think the problem is one missing semicolon, and several references out of their namespaces used without their full qualifiers. If I manage to use Bugzilla the right way, I'll attach my quick simple patch, which seems to resolve the problem.

The symptoms:

script.cpp: In member function `jsval openvrml::<unnamed>::js_::script::vrmlFieldToJSVal(const openvrml::field_value&)':
script.cpp:1860: error: expected `;' before "const"
script.cpp: In static member function `static JSBool openvrml::<unnamed>::js_::SFColor::initObject(JSContext*, JSObject*, uintN, jsval*)':
script.cpp:3059: error: `sfdata' is not a type
script.cpp: In static member function `static JSBool openvrml::<unnamed>::js_::SFImage::toJsval(const openvrml::sfimage&, JSContext*, JSObject*, jsval*)':
script.cpp:3239: error: `sfdata' is not a type
script.cpp: In static member function `static JSBool openvrml::<unnamed>::js_::SFImage::initObject(JSContext*, JSObject*, uintN, jsval*)':
script.cpp:3358: error: `sfdata' is not a type
script.cpp: In static member function `static JSBool openvrml::<unnamed>::js_::SFNode::toJsval(const openvrml::node_ptr&, JSContext*, JSObject*, jsval*)':
script.cpp:3486: error: `sfdata' is not a type
script.cpp: In static member function `static JSBool openvrml::<unnamed>::js_::SFNode::initObject(JSContext*, JSObject*, uintN, jsval*)':
script.cpp:3576: error: `sfdata' is not a type
script.cpp: In static member function `static JSBool openvrml::<unnamed>::js_::SFRotation::initObject(JSContext*, JSObject*, uintN, jsval*)':
script.cpp:3866: error: `sfdata' is not a type
script.cpp: In static member function `static JSBool openvrml::<unnamed>::js_::SFVec2f::initObject(JSContext*, JSObject*, uintN, jsval*)':
script.cpp:4328: error: `sfdata' is not a type
script.cpp: In static member function `static JSBool openvrml::<unnamed>::js_::SFVec3f::initObject(JSContext*, JSObject*, uintN, jsval*)':
script.cpp:4819: error: `sfdata' is not a type
make[4]: *** [script.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/openvrml-0.14.3/work/openvrml-0.14.3/src/libopenvrml/openvrml'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/openvrml-0.14.3/work/openvrml-0.14.3/src/libopenvrml'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/openvrml-0.14.3/work/openvrml-0.14.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/openvrml-0.14.3/work/openvrml-0.14.3'
make: *** [all] Error 2

!!! ERROR: media-libs/openvrml-0.14.3 failed.
Call stack:
  ebuild.sh, line 1521:   Called dyn_compile
  ebuild.sh, line 924:   Called src_compile
  openvrml-0.14.3.ebuild, line 69:   Called die

The compiler:
gcc --version
gcc (GCC) 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)

The environment:
emerge --info
Portage 2.1_pre10 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo-r4 i686)
=================================================================
System uname: 2.6.16-gentoo-r4 i686 Mobile AMD Sempron(tm) Processor 2600+
Gentoo Base System version 1.12.0_pre18
dev-lang/python:     2.3.5, 2.4.3
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.15.92.0.2-r10, 2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=k8 -m32 -msse -msse2 -mfpmath=sse -mieee-fp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=i686 -mtune=k8 -m32 -msse -msse2 -mfpmath=sse -mieee-fp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.linux.cz/pub/linux/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.du.se/pub/os/gentoo http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.lug.ro/gentoo/ http://gentoo.tiscali.nl/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="cs_CZ.utf8"
LC_ALL="cs_CZ.utf8"
LINGUAS="en cz cs sk la fr ru de jp ja"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 aac aalib acpi alsa amr anthy aotuv apache2 apm arts asf avi badval bash-completion berkdb bitmap-fonts blas bonobo browserplugin bzip2 cairo canna caps cardbus cdf cdparanoia cjk cli crypt cups curl dba dga directfb doc dpms dri dts dv dvb dvd dvdr dvdread eds emacs emboss encode erandom esd exif expat f77 fbcon ffmpeg fftw firefox flac flash fltk fontconfig foomaticdb fortran fpx freewnn gcj gd gdbm ggi gif gimpprint glitz glut gmp gnome gnutls gphoto2 gpm graphviz gssapi gstreamer gtk gtk2 gtkhtml hal hdf hdf5 imagemagick imap imlib insecure-drivers ipv6 isdnlog jack java javascript jbig jikes jpeg jpeg2k junit kde kerberos krb4 ladcca ladspa lcms ldap leim lesstif libcaca libg++ libint libwww logrotate lzo mad matroska mbox mikmod mng modplug mono motif mozilla mozsvg mp3 mpeg multislot musepack mysql nas ncurses netcdf nls nntp nodrm nptl nptlonly nsplugin numeric octave ogg oggvorbis openal openexr opengl oss pam parse-clocks pcmcia pcre pdf pdflib perl php pic plotutils png ppds pppd python qt quicktime radius readline real reflection rtc ruby samba sdk sdl session skey skk slp smartcard smime sndfile speex spell spl sse sse2 ssl staticsocket subp svg svga svgz sysfs szip tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts ucs2 ucs4 udev unichrome unicode usb utf8 v4l v4l2 vcd vdr vidix vim-pager vim-with-x vorbis vorbis-psy win32codecs wmf wxwindows x264 xanim xforms xine xml xml2 xmlreader xmlwriter xmms xorg xpm xprint xscrensaver xv xvid xvmc zip zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics input_devices_wacom kernel_linux linguas_en linguas_cz linguas_cs linguas_sk linguas_la linguas_fr linguas_ru linguas_de linguas_jp linguas_ja userland_GNU video_cards_unichrome video_cards_via video_cards_fbdev video_cards_v4l video_cards_vesa video_cards_vga"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-11 00:51:32 UTC

*** This bug has been marked as a duplicate of 88970 ***
Comment 2 Honza Macháček 2006-05-11 00:54:17 UTC
Created attachment 86591 [details, diff]
Patch to compile openvrml-0.14.3 with gcc-3.4.6

May not be the best fix, but seems to work with gcc-3.4.6 as well as the 4.x series. Not tested with elder compilers.
Comment 3 Honza Macháček 2006-05-11 01:02:26 UTC
(In reply to comment #1)
> 
> *** This bug has been marked as a duplicate of 88970 ***
> 

I'm not sure about the duplicity. Of course I have checked 88970 before submitting my patch, but I did not recognize the error messages. So while my patch seems to resolve my problem, it may not help the bug 88970 -- that's why I've decided to file a new bug.

Anyway, being new to Bugzilla, I'll leave the bug status management to more experienced ones.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-05-11 01:08:15 UTC
Well, please can you attach your patch to bug 88970 so that people can try it and see whether it help them? Bug 88970 is basically a tracker for openvrml build issues, current versions in portage all fail miserably... :/ Maybe you could also try openvrml-0.15.9 (Bug 92690) and see if it helps or not?

Thanks.
Comment 5 Honza Macháček 2006-05-12 04:23:17 UTC
(In reply to comment #4)
> Maybe you could also try openvrml-0.15.9 (Bug 92690) and see if it helps or not?

Finding, that for 0.15.9 renamed ebuild of 0.14.3 should work, and that the latest version to download form sourceforge is 0.15.10 already, I tried my luck with 0.15.10. The pitfalls of 0.14.3 are resolved there. Hoping I'd succesfully addresed a few of new problems I attached my patched and modified ebuild to the bug 92690.

This time, not only the build compiles, but mozilla plugin is installed too (nevertheless I have not tested it, because I've had FreWRL already, did not want to remove it, and did not manage to deactivate it), and lookat seems to work, at least in some cases (in one it worked, in another it crashed with glibc detected double free or corruption traced through __libc_free and libstdc++.so.6 to libopenvrml-gl.so.6). For testing I downloaded earth.wrl and box.wrl (together with schbldg2.jpg) from http://yll.hkcampus.net/~yll-tcc/vrml/startup.htm -- earth worked, box crashed.