Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50501 - media-libs/openvrml-0.14.3 compile error
Summary: media-libs/openvrml-0.14.3 compile error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-08 17:48 UTC by Aaron Peterson
Modified: 2004-11-06 07:28 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Peterson 2004-05-08 17:48:44 UTC
g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../lib/antlr -I../../../java -I../../../src/libopenvrml -DOPENVRML_LIBDIR_=\"/usr/lib\" -DOPENVRML_PKGDATADIR_=\"/usr/share/openvrml\" -I/usr/include/freetype2 -DXP_UNIX -I/usr/lib/mozilla/include/js -I/usr/lib/mozilla/include/nspr -march=athlon-xp -mmmx -m3dnow -msse -fomit-frame-pointer -O2 -pipe -MT bounding_volume.lo -MD -MP -MF .deps/bounding_volume.Tpo -c bounding_volume.cpp -o bounding_volume.o >/dev/null 2>&1
if /bin/sh ../../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../..  -I../../../lib/antlr -I../../../java -I../../../src/libopenvrml -DOPENVRML_LIBDIR_=\"/usr/lib\" -DOPENVRML_PKGDATADIR_=\"/usr/share/openvrml\"  -I/usr/include/freetype2 -DXP_UNIX -I/usr/lib/mozilla/include/js -I/usr/lib/mozilla/include/nspr   -march=athlon-xp -mmmx -m3dnow -msse -fomit-frame-pointer -O2 -pipe  -MT script.lo -MD -MP -MF ".deps/script.Tpo" \
  -c -o script.lo `test -f 'script.cpp' || echo './'`script.cpp; \
then mv -f ".deps/script.Tpo" ".deps/script.Plo"; \
else rm -f ".deps/script.Tpo"; exit 1; \
fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../lib/antlr -I../../../java -I../../../src/libopenvrml -DOPENVRML_LIBDIR_=\"/usr/lib\" -DOPENVRML_PKGDATADIR_=\"/usr/share/openvrml\" -I/usr/include/freetype2 -DXP_UNIX -I/usr/lib/mozilla/include/js -I/usr/lib/mozilla/include/nspr -march=athlon-xp -mmmx -m3dnow -msse -fomit-frame-pointer -O2 -pipe -MT script.lo -MD -MP -MF .deps/script.Tpo -c script.cpp  -fPIC -DPIC -o .libs/script.o
In file included from script.cpp:32:
ScriptJDK.h:31:17: jni.h: No such file or directory
In file included from script.cpp:32:
ScriptJDK.h:41: error: ISO C++ forbids declaration of `JavaVM' with no type
ScriptJDK.h:41: error: parse error before `*' token
ScriptJDK.h:42: error: ISO C++ forbids declaration of `JNIEnv' with no type
ScriptJDK.h:42: error: parse error before `*' token
ScriptJDK.h:44: error: 'jclass' is used as a type, but is not defined as a
   type.
ScriptJDK.h:45: error: 'jobject' is used as a type, but is not defined as a
   type.
ScriptJDK.h:46: error: parse error before `,' token
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.
!!! Function src_compile, Line 68, Exitcode 2
!!! make failed


Reproducible: Didn't try
Steps to Reproduce:
1.
2.
3.




bash-2.05b# emerge --info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0,
2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(TM) XP 1700+
Gentoo Base System version 1.4.11
distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -mmmx -m3dnow -msse -fomit-frame-pointer -O2 -pipe "
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -mmmx -m3dnow -msse -fomit-frame-pointer -O2 -pipe "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X aac aalib accessibility acl acpi acpi4linux alsa amd apache2 apm
arts artswrappersuid audiofile avi berkdb bidi bonobo canna cdr cjk cjkcrypt
crypt cscope cups dga directfb divx4linux doc dv dvb dvd encode esd evms2 faad
fam fbcon ffmpeg flac flash foomaticdb freetype freewnn fs gdbm ggi gif gnome
gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib jack java javascript
joystick jpeg kde kerberos krb4 ldap libcss libdvdread libg++ libwww mad maildir
md5sum mdb mikmod mmx motif mozilla mpeg mpeg4 mule mysql nas ncurses net nls
nptl nvidia oggvorbis opengl oss pam pdflib perl pic png postgres python qt
quicktime readline samba sasl scanner sdl slang spell sse ssl svg svga tcltk
tcpd tetex theora threads tiff transcode truetype unicode usb v4l vhosts
virus-scan x86 xine xinerama xml2 xmms xv xvid zeo zlib"
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2004-06-13 02:44:43 UTC
i have no idea, could you get it working meanwhile?
Comment 2 Chris Mathis 2004-06-16 10:08:08 UTC
openvrml-0.11.2 does not build either.
Comment 3 Chris Mathis 2004-06-16 11:42:40 UTC
it seems to be a problem with the USE flag java, it does not seem to want to compile with that flag enabled. all the other flags are fine. compiled sucessfully here.
Comment 4 Aaron Peterson 2004-08-04 13:35:45 UTC
so, we should filter out the java useflag... or ignore it...
Comment 5 cold flame 2004-11-01 17:06:58 UTC
the configure call has not been set correctly in the ebuild. there needs to be a line telling the compilation where the jdk is, as the configure script expects it to be in JDKHOME, where as gentoo puts it in JDK_HOME.

there are two ways to fix that. first, set the variable in the prompt:
bash# export JDKHOME=$JDK_HOME

alternately, you could change the call to configure in the ebuild from
        ./configure --with-x --prefix=/usr ${myconf} || die "configure failed"
        ./configure --with-x --prefix=/usr --with-jdk='insert location of your jdk here' ${myconf} || die "configure failed"

the compile fails becuase it can't find the header file jni.h. this fixes that.
however, now i get a whole lot of errors about the ScriptJDK.cpp file.

bug is now different, but definately not fixed :(. best bet is probaby to just leave out java if possible. 

have a nice day :)
Comment 6 Heinrich Wendel (RETIRED) gentoo-dev 2004-11-06 07:28:55 UTC
i fixed the classpath and it compiles fine here, maybe you have an gcc-3.4 issue or something like that. if your bug still exists please open a new one