Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED - java-overlay] icedtea6-1.5.2 fail to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
rem5
n00b
n00b


Joined: 12 Oct 2005
Posts: 73
Location: Lille - France

PostPosted: Tue Sep 08, 2009 10:36 am    Post subject: [SOLVED - java-overlay] icedtea6-1.5.2 fail to compile Reply with quote

Hello,

All is said in title.. 1.5.1 failed too, 1.5 is installed and now I can't emerge it too with the same error

Du to the error : Env.c:961: error: 'X_ShmAttach' undeclared (first use in this function)
can it be related to the xorg stack ??

For xorg stack I use :

vanilla-source-2.6.31_rc9 (with drm inside, KMS/DRI2 used)
xorg-server-1.6.99.900
libdrm-9999
mesa-9999
xf86-video-ati-9999
xf86-input-evdev-9999
xf86-input-synaptics-9999

and related proto/libs ..





Code:
[ebuild     U ] dev-java/icedtea6-1.5.2 [1.5] USE="nsplugin -cacao -debug -doc -examples -javascript -nio2 -pulseaudio -systemtap -xrender -zero" 0 kB [1]

/awt/medialib -I../../../src/solaris/native/sun/awt/medialib -I../../../src/solaris/native/sun/font -I../../../src/share/native/sun/awt -I../../../src/solaris/native/sun/awt  -I/usr/X11R6/include/X11/extensions -I/usr/include/X11/extensions -I/usr/include -I/usr/X11R6/include   -c -o /var/tmp/portage/dev-java/icedtea6-1.5.2/work/icedtea6-1.5.2/openjdk/build/linux-amd64/tmp/sun/sun.awt.X11/xawt/obj64/robot_common.o  ../../../src/solaris/native/sun/awt/robot_common.c                         
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c: In function 'makeDefaultConfig':           
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:288: warning: format '%x' expects type 'unsigned int *', but argument 3 has type 'VisualID *'                                                   
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c: In function 'J2DXErrHandler':               
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:961: error: 'X_ShmAttach' undeclared (first use in this function)                                                                               
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:961: error: (Each undeclared identifier is reported only once                                                                                   
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:961: error: for each function it appears in.)
/usr/bin/gcc  -O2    -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused -Wno-parentheses -pipe -fno-omit-frame-pointer -D_LITTLE_ENDIAN -g   -D_amd64_ -Damd64 -DARCH='"amd64"' -DLINUX -DRELEASE='"1.6.0_0"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -D_LP64=1 -I. -I/var/tmp/portage/dev-java/icedtea6-1.5.2/work/icedtea6-1.5.2/openjdk/build/linux-amd64/tmp/sun/sun.awt.X11/xawt/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/share/javavm/include -I../../../src/solaris/javavm/include -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/sun/awt/X11 -I../../../src/solaris/native/sun/awt/X11   -I/usr/include -DXAWT -DXAWT_HACK -I/var/tmp/portage/dev-java/icedtea6-1.5.2/work/icedtea6-1.5.2/openjdk/build/linux-amd64/tmp/sun/sun.awt.X11/xawt/../../sun.awt/awt/CClassHeaders -I../../../src/solaris/native/sun/awt -I../../../src/solaris/native/sun/xawt -I../../../src/solaris/native/sun/jdga -I../../../src/share/native/sun/awt/debug -I../../../src/share/native/sun/awt/image/cvutils -I../../../src/share/native/sun/java2d -I../../../src/share/native/sun/java2d/loops -I../../../src/share/native/sun/awt/image/cvutils -I../../../src/share/native/sun/awt/image -I../../../src/share/native/sun/font -I../../../src/solaris/native/sun/java2d -I../../../src/share/native/sun/java2d/pipe -I../../../src/share/native/sun/java2d/opengl -I../../../src/solaris/native/sun/java2d/opengl -I../../../src/solaris/native/sun/java2d/x11 -I../../../src/share/native/sun/dc/path -I../../../src/share/native/sun/dc/doe -I../../../src/share/native/sun/awt/alphacomposite -I../../../src/share/native/sun/awt/medialib -I../../../src/solaris/native/sun/awt/medialib -I../../../src/solaris/native/sun/font -I../../../src/share/native/sun/awt -I../../../src/solaris/native/sun/awt  -I/usr/X11R6/include/X11/extensions -I/usr/include/X11/extensions -I/usr/include -I/usr/X11R6/include   -c -o /var/tmp/portage/dev-java/icedtea6-1.5.2/work/icedtea6-1.5.2/openjdk/build/linux-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_Robot.o  ../../../src/solaris/native/sun/awt/awt_Robot.c                               
make[5]: *** [/var/tmp/portage/dev-java/icedtea6-1.5.2/work/icedtea6-1.5.2/openjdk/build/linux-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_GraphicsEnv.o] Error 1                                       
make[5]: *** Waiting for unfinished jobs....                                                       
../../../src/solaris/native/sun/awt/awt_InputMethod.c:50:1: warning: "XtWindow" redefined         
In file included from ../../../src/solaris/native/sun/awt/awt_p.h:45,                             
                 from ../../../src/solaris/native/sun/awt/awt_InputMethod.c:43:                   
/usr/include/X11/IntrinsicP.h:207:1: warning: this is the location of the previous definition     
../../../src/solaris/native/sun/awt/awt_InputMethod.c: In function 'createStatusWindow':           
../../../src/solaris/native/sun/awt/awt_InputMethod.c:687: warning: pointer targets in passing argument 6 of 'XGetGeometry' differ in signedness                                                     
../../../src/solaris/native/sun/awt/awt_InputMethod.c:687: warning: pointer targets in passing argument 7 of 'XGetGeometry' differ in signedness                                                     
../../../src/solaris/native/sun/awt/awt_InputMethod.c:687: warning: pointer targets in passing argument 8 of 'XGetGeometry' differ in signedness                                                     
../../../src/solaris/native/sun/awt/awt_InputMethod.c:687: warning: pointer targets in passing argument 9 of 'XGetGeometry' differ in signedness                                                     
../../../src/solaris/native/sun/awt/awt_InputMethod.c: In function 'createXIC':                   
../../../src/solaris/native/sun/awt/awt_InputMethod.c:1036: warning: comparison between pointer and integer                                                                                           
../../../src/solaris/native/sun/awt/awt_InputMethod.c:1216: warning: assignment from incompatible pointer type                                                                                       
../../../src/solaris/native/sun/awt/awt_InputMethod.c: In function 'Java_sun_awt_X11_XInputMethod_openXIMNative':                                                                                     
../../../src/solaris/native/sun/awt/awt_InputMethod.c:1527: warning: passing argument 5 of 'XRegisterIMInstantiateCallback' from incompatible pointer type                                           
../../../src/solaris/native/sun/awt/awt_InputMethod.c: In function 'Java_sun_awt_X11_XInputMethod_createXICNative':                                                                                   
../../../src/solaris/native/sun/awt/awt_InputMethod.c:1562: warning: comparison between pointer and integer                                                                                           
../../../src/solaris/native/sun/awt/awt_InputMethod.c: In function 'Java_sun_awt_X11_XInputMethod_setXICFocusNative':                                                                                 
../../../src/solaris/native/sun/awt/awt_InputMethod.c:1712: warning: comparison between pointer and integer                                                                                           
make[5]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.5.2/work/icedtea6-1.5.2/openjdk/jdk/make/sun/xawt'                                                                                   
make[4]: *** [library_parallel_compile] Error 2                                                   
make[4]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.5.2/work/icedtea6-1.5.2/openjdk/jdk/make/sun/xawt'                                                                                   
make[3]: *** [all] Error 1                                                                         
make[3]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.5.2/work/icedtea6-1.5.2/openjdk/jdk/make/sun'                                                                                       
make[2]: *** [all] Error 1                                                                         
make[2]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.5.2/work/icedtea6-1.5.2/openjdk/jdk/make'                                                                                           
make[1]: *** [jdk-build] Error 2                                                                   
make[1]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.5.2/work/icedtea6-1.5.2/openjdk' 
make: *** [stamps/icedtea.stamp] Error 2



and some information

Code:
emerge --info                                                                   
WARNING: One or more repositories have missing repo_name entries:                                 

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.                 
Portage 2.2_rc40 (default/linux/amd64/2008.0/no-multilib, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.31-rc9 x86_64)                                                                                       
=================================================================                                 
System uname: Linux-2.6.31-rc9-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.0.1     
Timestamp of tree: Tue, 08 Sep 2009 09:15:01 +0000                                                 
ccache version 2.4 [enabled]                                                                       
app-shells/bash:     3.2_p39                                                                       
dev-java/java-config: 1.3.7-r1, 2.1.8-r1                                                           
dev-lang/python:     2.6.2-r1                                                                     
dev-util/ccache:     2.4-r7                                                                       
dev-util/cmake:      2.6.4                                                                         
sys-apps/baselayout: 2.0.1                                                                         
sys-apps/openrc:     0.4.3-r3                                                                     
sys-apps/sandbox:    1.6-r2                                                                       
sys-devel/autoconf:  2.13, 2.63-r1                                                                 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                         
sys-devel/binutils:  2.18-r3                                                                       
sys-devel/gcc-config: 1.4.1                                                                       
sys-devel/libtool:   1.5.26                                                                       
virtual/os-headers:  2.6.27-r2                                                                     
ACCEPT_KEYWORDS="amd64"                                                                           
CBUILD="x86_64-pc-linux-gnu"                                                                       
CFLAGS="-march=core2 -O3 -pipe -fomit-frame-pointer"                                               
CHOST="x86_64-pc-linux-gnu"                                                                       
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"                                           
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"   
CXXFLAGS="-march=core2 -O3 -pipe -fomit-frame-pointer"                                             
DISTDIR="/usr/portage/distfiles"                                                                   
FEATURES="assume-digests ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                       
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                                                                 
LANG="en_US.utf8"                                                                                 
LC_ALL="en_US.utf8"                                                                               
LDFLAGS="-Wl,-O1"                                                                                 
LINGUAS="en"                                                                                       
MAKEOPTS="-j3"                                                                                     
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="/usr/local/portage/layman/Spring /usr/local/portage/layman/java-overlay /usr/local/portage/layman/gnash-cvs /usr/local/portage/layman/kde-testing /usr/local/portage/layman/x11 /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo caps cli cracklib crypt cups dbus dri dv dvd dvdr dvdread encode fam ffmpeg gdbm gif gpm gtk hal iconv iee1394 ipv6 isdnlog java java6 jpeg kde kde4 kdeenablefinal kvm logrotate mad matroska mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp pam pcre pdf perl png ppds pppd python qt4 quicktime readline reflection sdl session smp spell spl sse sse2 sse3 ssl svg sysfs tcpd tiff truetype unicode usb v4l v4l2 vorbis wifi xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" 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 authn_alias authn_anon 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 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" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS




Have you some idea of what went wrong ??


Last edited by rem5 on Sat Sep 12, 2009 9:34 am; edited 1 time in total
Back to top
View user's profile Send private message
judepereira
Apprentice
Apprentice


Joined: 19 Jan 2008
Posts: 179
Location: Portage, yes, somewhere out there

PostPosted: Thu Sep 10, 2009 2:32 am    Post subject: Reply with quote

Why not flow with sun-jdk? You'll have problem using java for browsers as I have faced the same problem too! I spent days trying to get icedtea to work with firefox, later someone told me to use the standard sun-jdk and all worked well.
_________________
Jude Pereira
(http://judepereira.com)
Back to top
View user's profile Send private message
rem5
n00b
n00b


Joined: 12 Oct 2005
Posts: 73
Location: Lille - France

PostPosted: Thu Sep 10, 2009 9:56 am    Post subject: Reply with quote

on my others PC icedtea worked OK for what I want, and for your question I want to avoid as much as possible binary blob
Back to top
View user's profile Send private message
FireBurn
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 167
Location: Edinburgh, UK

PostPosted: Fri Sep 11, 2009 2:35 am    Post subject: Reply with quote

You need to apply this patch manually after openjdk has been extracted by the build process

Code:

--- old/jdk/src/solaris/native/sun/awt/awt_GraphicsEnv.h        2009-07-17 10:36:09.000000000 -0400
+++ openjdk/jdk/src/solaris/native/sun/awt/awt_GraphicsEnv.h    2009-07-30 13:25:52.000000000 -0400
@@ -41,7 +41,10 @@

 #include <sys/ipc.h>
 #include <sys/shm.h>
-#include <X11/extensions/XShm.h>
+#include <X11/Xmd.h>
+#include <X11/extensions/shmproto.h>
+
+#define ShmSeg CARD32

 extern int XShmQueryExtension();

@@ -49,6 +52,14 @@
 void resetXShmAttachFailed();
 jboolean isXShmAttachFailed();

+typedef struct {
+    ShmSeg shmseg;     /* resource id */
+    int shmid;         /* kernel id */
+    char *shmaddr;     /* address in client */
+    Bool readOnly;     /* how the server should attach it */
+} XShmSegmentInfo;
+
+#undef ShmSeg
 #endif /* MITSHM */

 /* fieldIDs for X11GraphicsConfig fields that may be accessed from C */


If you goto /var/tmp/portage/dev-java/icedtea6/work/openjdk or something along those lines then:

patch -p1 < path/to/above/patch

Should do the trick
Back to top
View user's profile Send private message
rem5
n00b
n00b


Joined: 12 Oct 2005
Posts: 73
Location: Lille - France

PostPosted: Sat Sep 12, 2009 9:33 am    Post subject: Reply with quote

Yes that do the trick ! thanks 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum