Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84342 - libgnome-java-2.8.2-r1 fails to compile
Summary: libgnome-java-2.8.2-r1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-06 14:23 UTC by Mystilleef
Modified: 2005-03-12 13:15 UTC (History)
1 user (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 Mystilleef 2005-03-06 14:23:32 UTC
When I try to emerge libgnome-java I get errors about unfound symbols and incompatible types.

Reproducible: Always
Steps to Reproduce:
1. emerge libgnome-java

Actual Results:  
/usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
/usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of
AM_PATH_AUDIOFILE
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for pkg-config... /usr/bin/pkg-config
checking for gtk2-java >= 2.4... yes
checking GTKJAVA_CFLAGS... -I/usr/include/libgtk-java
checking GTKJAVA_LIBS... -lgtkjava
checking for gtk-java api version... 2.4
checking for gtk-java jar file... /usr/share/libgtk-java-2.4/lib/gtk2.4-2.4.8.1.jar
checking for gtk-java library... -lgtkjava
checking for gtk-java cflags... -I/usr/include/libgtk-java
checking for gtk-java jni library... -L/usr/lib -lgtkjni
checking how to run the C preprocessor... /lib/cpp
checking for egrep... grep -E
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /bin/install -c
checking for db2html... nocommand
checking for docbook2html... /usr/bin/docbook2html
checking if /opt/sun-jdk-1.5.0.01/bin/javac works... yes
checking for javadoc... javadoc
checking for jar... jar
checking for gcj... /usr/bin/gcj
checking for GCJ - version >= 3.0.0... yes
checking for gcj... (cached) /usr/bin/gcj
checking for jar... /opt/sun-jdk-1.5.0.01/bin/jar
checking for main in -libs... no
checking for gtk+-2.0 >= 2.4.0... yes
checking GTK_CFLAGS... -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking GTK_LIBS... -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0
checking for an ANSI C-conforming const... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for libgnomeui-2.0 >= 2.6.0 libgnomecanvas-2.0 >= 2.6.0... yes
checking GNOME_CFLAGS... -DORBIT2=1 -pthread -DXTHREADS -D_REENTRANT
-DXUSE_MTSAFE_API -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
-I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0
-I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/freetype2/config -I/usr/include/libxml2
checking GNOME_LIBS... -Wl,--export-dynamic -pthread -lgnomeui-2 -lSM -lICE
-lbonoboui-2 -lxml2 -lpthread -lz -lgnome-2 -lpopt -lgnomevfs-2 -lbonobo-2
-lgconf-2 -lbonobo-activation -lORBit-2 -lgthread-2.0 -lgnomecanvas-2
-lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gnome2-java.pc
config.status: creating gnome2-java.pc.buildplace
config.status: creating doc/Makefile
config.status: creating doc/examples/runExample.sh
config.status: creating src/Makefile
config.status: creating src/java/org/gnu/gnome/Gnome.java
config.status: creating src/java/org/gnu/gnome/Program.java
make -C src all
make[1]: Entering directory
`/tmp/portage/libgnome-java-2.8.2-r1/work/libgnome-java-2.8.2/src'
/bin/install -c -d ../lib
/bin/install -c -d build-java
CLASSPATH=java:/usr/share/libgtk-java-2.4/lib/gtk2.4-2.4.8.1.jar:java
/opt/sun-jdk-1.5.0.01/bin/javac -d build-java   \
        java/org/gnu/gnome/About.java
java/org/gnu/gnome/About.java:32: cannot find symbol
symbol  : constructor Dialog(int)
location: class org.gnu.gtk.Dialog
                super(init(title, version, license, comments, authors,
documenters, translator, pixbuf));
                ^
java/org/gnu/gnome/About.java:40: incompatible types
found   : org.gnu.glib.Handle
required: int
                        pixbufHandle = pixbuf.getHandle();
                                                       ^
java/org/gnu/gnome/About.java:50: cannot find symbol
symbol  : constructor Dialog(int)
location: class org.gnu.gtk.Dialog
            super(handle);
            ^
3 errors
make[1]: *** [build-java/org/gnu/gnome/About.class] Error 1
make[1]: Leaving directory
`/tmp/portage/libgnome-java-2.8.2-r1/work/libgnome-java-2.8.2/src'
make: *** [distro] Error 2

!!! ERROR: dev-java/libgnome-java-2.8.2-r1 failed.
!!! Function src_compile, Line 68, Exitcode 2
!!! compile failed
!!! If you need support, post the topmost build error, NOT this status message.



[05:20 PM root(~)]# emerge info
Portage 2.0.51.18 (default-linux/x86/2004.3, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r0, 2.6.11-nitro0 i686)
=================================================================
System uname: 2.6.11-nitro0 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 23 2005, 10:04:19)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.6.3, 1.9.4, 1.5
sys-devel/binutils:  2.15.92.0.2-r4
sys-devel/libtool:   1.5.10-r5
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-w -pipe -fomit-frame-pointer -frename-registers        -march=athlon
-fforce-mem -Os -s -fpic -fPIC"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-w -pipe -fomit-frame-pointer -frename-registers      -march=athlon
-fforce-mem -Os -s -fpic -fPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache digest distlocks fixpackages sandbox sfperms"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo
http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo/
http://mirror.datapipe.net/gentoo http://mirror.usu.edu/mirrors/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,-z,now -Wl,-s -s"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/bmg-main /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X alsa avi bindist bonobo boundschecking cairo cdparanoia cdr
crypt curl dbus dlloader dvd emboss esd f77 faad fam flac gcj gif glitz gnome
gnutls gstreamer gtk2 hal howl icu imagemagick imlib ithreads jikes jpeg junit
libg++ libwww live mad mikmod mmx mmx2 mng mono mozilla mpeg ncurses network
noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch
nojython nolog4j nooro noregexp norhino noxalan noxerces nptl nptlonly oggvorbis
opengl oss pam pdflib pic png quicktime readline real rtc sdl speex spell ssl
svg svga tcpd theora threads tiff truetype truetype-fonts unicode usb
userlocales x86 xine xml2 xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL
Comment 1 Greg Symons 2005-03-11 06:22:46 UTC
I'm getting the same problem here. After looking at it more closely, it appears that the Dialog constructor in libgtk-java-2.4.8.1 takes a Handle, rather than an int. Of course, what's wierd is that according to the api docs at http://java-gnome.sourceforge.net/docs/javadoc-2.8.2/index.html the Dialog constructor _does_ take an int. I'm not sure which should be correct yet, but I think it may be the int (since handles are ints anyway). I'm going to take a closer look at what's going on.
Comment 2 Greg Symons 2005-03-11 07:23:17 UTC
Upgrading to Andrew Cowie's 2.8.3 ebuilds solves the problem for me. It looks like
there were some inconsistencies between the new 64bit code and the old
non-64bit code (hence the change from a bare int for handles to a Handle
object).

Andrew's ebuilds are at http://operationaldynamics.com/reference/software/gentoo.
Comment 3 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-12 13:15:09 UTC
fixes in cvs, thanks