IcedTea7 HEAD build error on RHEL 5 x86_64
Dr Andrew John Hughes
ahughes at redhat.com
Thu Sep 22 19:07:24 PDT 2011
On 16:21 Thu 22 Sep , Pavel Tisnovsky wrote:
> Deepak Bhole wrote:
> > * Pavel Tisnovsky <ptisnovs at redhat.com> [2011-09-22 08:37]:
> >> Greetings,
> >>
> >> there's a new IcedTea7 build error thrown when IcedTea7 HEAD is build on RHEL 5 x86_64.
> >>
> >> Config log & shell script used to build IcedTea7 is stored in an attachment.
> >>
> >
> > Is libattr-devel installed on the system?
> >
> > Cheers,
> > Deepak
>
> Hi Deepak,
>
> I'm an one step closer to a successful build :-) but I think I know what's the cause of following error:
>
> gcc -O2 -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -pipe -fno-omit-frame-pointer
> -D_LITTLE_ENDIAN -g -DNDEBUG -DARCH='"amd64"' -Damd64 -DLINUX -DRELEASE='"1.7.0_147-icedtea"' -D_LARGEFILE64_SOURCE
> -D_GNU_SOURCE -D_REENTRANT -D_LP64=1 -I. -I/jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/CClassHeaders
> -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -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/jck/icedtea7/openjdk.build/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/include/gtk-2.0
> -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12
> -DUSE_SYSTEM_GTK -DUSE_SYSTEM_CUPS -DUSE_SYSTEM_FONTCONFIG -I../../../src/solaris/native/common/deps/glib2
> -I/usr/X11R6/include/X11/extensions -I/usr/include/X11/extensions -I/usr/X11R6//include -Xlinker -O1 -Xlinker
> -version-script=mapfile-vers -Wl,--hash-style=both -Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$ORIGIN
> -Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$ORIGIN/.. -Xlinker -z -Xlinker defs
> -L/jck/icedtea7/openjdk.build/lib/amd64 -Wl,-soname=libmawt.so -L/usr/X11R6//lib64 -lpthread -shared -mimpure-text -o
> /jck/icedtea7/openjdk.build/lib/amd64/xawt/libmawt.so
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/XlibWrapper.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/XWindow.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/XToolkit.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/X11Color.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/X11SurfaceData.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/awt_GraphicsEnv.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/awt_InputMethod.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/robot_common.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/awt_Robot.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/list.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/multiVis.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/initIDs.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/awt_util.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/awt_Desktop.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/X11FontScaler_md.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/X11TextRenderer_md.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/fontpath.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/awt_Insets.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/awt_Event.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/X11Renderer.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/X11PMBlitLoops.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/OGLBlitLoops.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/OGLBufImgOps.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/OGLContext.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/OGLFuncs.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/OGLMaskBlit.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/OGLMaskFill.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/OGLPaints.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/OGLRenderQueue.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/OGLRenderer.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/OGLSurfaceData.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/OGLTextRenderer.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/OGLVertexCache.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/GLXGraphicsConfig.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/GLXSurfaceData.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/AccelGlyphCache.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/awt_Font.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/multi_font.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/awt_AWTEvent.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/awt_DrawingSurface.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/jawt.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/CUPSfuncs.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/debug_assert.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/debug_mem.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/debug_trace.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/debug_util.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/awt_Plugin.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/swing_GTKEngine.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/swing_GTKStyle.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/rect.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/sun_awt_X11_GtkFileDialogPeer.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/XRSurfaceData.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/XRBackendNative.o
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/gio_fp.o -lm -lawt -lXext -lX11 -lXrender -ldl
> -Wl,--hash-style=both -Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$ORIGIN -Xlinker -z -Xlinker origin
> -Xlinker -rpath -Xlinker \$ORIGIN/.. -Xlinker -z -Xlinker defs -L/jck/icedtea7/openjdk.build/lib/amd64
> -Wl,-soname=libmawt.so -lXtst -lXi -L/lib64 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
> -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lcups -lfontconfig -ljava
> -L/jck/icedtea7/openjdk.build/lib/amd64/server -ljvm -lc
> /jck/icedtea7/openjdk.build/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o: In function `gtk2_load':
> /jck/icedtea7/openjdk/jdk/make/sun/xawt/../../../src/solaris/native/sun/awt/gtk2_interface.c:218: undefined reference to
> `g_thread_init'
> collect2: ld returned 1 exit status
Such reports would be a lot more useful if you included config.log so we had some idea how you
were building.
pkg-config should return -lgthread-2.0 in the libs for Gtk+:
$ pkg-config --libs gtk+-2.0
-pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
I'm not convinced 7 will work on something as old as RHEL5 and I'm not sure why you are trying.
--
Andrew :)
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
Support Free Java!
Contribute to GNU Classpath and IcedTea
http://www.gnu.org/software/classpath
http://icedtea.classpath.org
PGP Key: F5862A37 (https://keys.indymedia.org/)
Fingerprint = EA30 D855 D50F 90CD F54D 0698 0713 C3ED F586 2A37
More information about the distro-pkg-dev
mailing list