List Info

Thread: cannot update jdk15 on amd64




cannot update jdk15 on amd64
user name
2007-02-26 12:45:33
Hi,

When updating jdk15 (via portmanager -u -f -l) I am getting

/usr/bin/ld: /usr/X11R6/lib/libXm.a(CascadeB.o): relocation
R_X86_64_32 can not be used when making a shared object;
recompile
with -fPIC
/usr/X11R6/lib/libXm.a: could not read symbols: Bad value
gmake[4]: ***
[/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd6
4/motif21/libmawt.so]
Error 1

This is the same error as reported in
http://lists.freebsd.org/pipermail/freebsd-
java/2005-June/003970.html
except that this is on FreeBSD 6.2-RELEASE.

I have successfully installed jdk15 with patches-3 but the
update with
patches-4 is giving the error above.

ls -FG /usr/X11R6/lib/libXm* gives

/usr/X11R6/lib/libXm.a       /usr/X11R6/lib/libXmu.a
/usr/X11R6/lib/libXmuu.so
/usr/X11R6/lib/libXm.la*     /usr/X11R6/lib/libXmu.so
/usr/X11R6/lib/libXmuu.so.1*
/usr/X11R6/lib/libXm.so     /usr/X11R6/lib/libXmu.so.6*
/usr/X11R6/lib/libXm.so.3*   /usr/X11R6/lib/libXmuu.a

The "recompile with -fPIC" message appears to be a
symptom of some
problem with my static libraries rather than really having
to do so.
Any suggestions of where to look for problems? What
additional
information would you need to diagnose the problem? If I do
need to
recompile with -fPIC, where am I supposed to put/add this
flag? Thanks
in advance,

h.
---

Rebuilding
/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64
/motif21/libmawt.so
because of
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/awt_AWTEvent.o
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/awt_Button.o
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/awt_Canvas.o
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/awt_Checkbox.o
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/awt_Component.o
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/awt_Cursor.o
...
/usr/bin/gcc  -fno-strict-aliasing -fPIC -W -Wall 
-Wno-unused
-Wno-parentheses -pipe -fno-omit-frame-pointer
-DMLIB_NO_LIBSUNMATH
-DMOTIF_VERSION=2 -DXMSTRINGDEFINES=1 -DMOTIF_VERSION=2 
-Damd64
-DARCH='"amd64"' -DRELEASE='"1.5.0-p4"'
-DFULL_VERSION='"1.5.0-p4-root_13_feb_2007_07_14"'
-D_GNU_SOURCE
-D_REENTRANT -D_THREAD_SAFE -D_ALLBSD_SOURCE  -D_LP64=1 -I.
-I/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun
/sun.awt/motif21/CC

[snipped]

d64/tmp/sun/sun.awt/motif21/obj64/OGLMaskBlit.o
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/OGLMaskFill.o
  
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/OGLRenderer.o
  
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/OGLSurfaceData.o
  
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/OGLTextRenderer_md.o
  
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/GLXContext.o
  
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/GLXGraphicsConfig.o
  
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/GLXSurfaceData.o
  
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/AccelGlyphCache.o
  
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/CUPSfuncs.o
  
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/awt_motif21.o
  
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/awt_Choice21.o
  
/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/s
un.awt/motif21/obj64/Xinerama.o
  | tsort -q` /usr/X11R6/lib/libXm.a -lXp   -lXtst -lXext
-lXt   -lX11
-lmlib_image
-L/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd
64/server
-ljvm  -lawt -lm  -ljava
-L/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd
64/server
-ljvm -pthread
/usr/bin/ld: /usr/X11R6/lib/libXm.a(CascadeB.o): relocation
R_X86_64_32 can not be used when making a shared object;
recompile
with -fPIC
/usr/X11R6/lib/libXm.a: could not read symbols: Bad value
gmake[4]: ***
[/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd6
4/motif21/libmawt.so]
Error 1
gmake[4]: Leaving directory
`/usr/ports/java/jdk15/work/j2se/make/sun/motif21'
gmake[3]: *** [optimized] Error 2
gmake[3]: Leaving directory
`/usr/ports/java/jdk15/work/j2se/make/sun/motif21'
gmake[2]: *** [all] Error 1
gmake[2]: Leaving directory
`/usr/ports/java/jdk15/work/j2se/make/sun'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory
`/usr/ports/java/jdk15/work/j2se/make'
gmake: *** [j2se-build] Error 2
*** Error code 2

-- 
----------------------------------
Hiroyuki Kawakatsu
Business School
Dublin City University
Dublin 9, Ireland
Tel +353 (0)1 700 7496
_______________________________________________
freebsd-javafreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java

To unsubscribe, send any mail to
"freebsd-java-unsubscribefreebsd.org"

Re: cannot update jdk15 on amd64
country flaguser name
Norway
2007-02-26 16:27:27
On Mon, 26 Feb 2007, Hiroyuki Kawakatsu wrote:
> When updating jdk15 (via portmanager -u -f -l) I am
getting
>
> /usr/bin/ld: /usr/X11R6/lib/libXm.a(CascadeB.o):
relocation
> R_X86_64_32 can not be used when making a shared
object; recompile
> with -fPIC
> /usr/X11R6/lib/libXm.a: could not read symbols: Bad
value
> gmake[4]: *** 
>
[/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd6
4/motif21/libmawt.so]
> Error 1
>
> This is the same error as reported in
> http://lists.freebsd.org/pipermail/freebsd-
java/2005-June/003970.html
> except that this is on FreeBSD 6.2-RELEASE.

Ok, I found it now; I was confused because I have the same
version number 
of open-motif as was reported earlier (2.2.3_2) but my
version works. 
It's all because of this change to
x11-toolkits/open-motif/Makefile:

revision 1.40
date: 2007/02/01 02:42:04;  author: kris;  state: Exp; 
lines: +1 -0
Use libtool port instead of included version to avoid
objformat a.out 
botch

note that the PORTREVISION wasn't bumped in this change (but
should have 
been).  The old version would compile all object files with
-fPIC, also 
those going into libXm.a; the new libtool change makes
libXm.a unusable 
for linking into .so files, at least on amd64 platforms.

> The "recompile with -fPIC" message appears to
be a symptom of some
> problem with my static libraries rather than really
having to do so.

It means what it says, the CascadeB.o inside
/usr/X11R6/lib/libXm.a needs 
to be compiled with -fPIC but wasn't.

It looks like it was by conscious plan that libXm.a used to
be compiled 
with -fPIC:

revision 1.33
date: 2004/12/24 06:34:45;  author: phantom;  state: Exp; 
lines: +4 -0
While building on amd64 add -fPIC to CFLAGS

so something may need to be done to restore that behaviour
with new 
libtool.  Or alternately, java must stop using the static
motif library 
and link with the shared library instead.


A quick fix for those currently stuck should be:

cd /usr/ports/x11-toolkits/open-motif
cvs update -D 2007-01-30
rm -rf work
make
make deinstall
make reinstall
cd /usr/ports/java/jdk15
make

(not tested yet, still compiling 

   -  Arne H. J.
_______________________________________________
freebsd-javafreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java

To unsubscribe, send any mail to
"freebsd-java-unsubscribefreebsd.org"

Re: cannot update jdk15 on amd64
country flaguser name
Canada
2007-02-26 17:19:45
On Mon, Feb 26, 2007 at 11:27:27PM +0100, Arne H. Juul
wrote:

> revision 1.33
> date: 2004/12/24 06:34:45;  author: phantom;  state:
Exp;  lines: +4 -0
> While building on amd64 add -fPIC to CFLAGS
> 
> so something may need to be done to restore that
behaviour with new 
> libtool.  Or alternately, java must stop using the
static motif library 
> and link with the shared library instead.

The latter (or make a libXm_pic.a); the earlier change was
bogus since
.a libraries are not supposed to be PIC.

Kris
_______________________________________________
freebsd-javafreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java

To unsubscribe, send any mail to
"freebsd-java-unsubscribefreebsd.org"

Re: cannot update jdk15 on amd64
country flaguser name
Australia
2007-02-27 22:19:27
On Mon, Feb 26, 2007 at 11:27:27PM +0100, Arne H. Juul
wrote:
> so something may need to be done to restore that
behaviour with new 
> libtool.  Or alternately, java must stop using the
static motif library 
> and link with the shared library instead.

The latter would be easy to test.  Just set STATIC_MOTIF to
false in
j2se/make/common/Defs-bsd.gmk.

-- 
Greg Lewis                          Email   : glewiseyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewisFreeBSD.org
_______________________________________________
freebsd-javafreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java

To unsubscribe, send any mail to
"freebsd-java-unsubscribefreebsd.org"

Re: cannot update jdk15 on amd64
user name
2007-02-28 04:24:22
On 2/28/07, Greg Lewis <glewiseyesbeyond.com> wrote:
> On Mon, Feb 26, 2007 at 11:27:27PM +0100, Arne H. Juul
wrote:
> > so something may need to be done to restore that
behaviour with new
> > libtool.  Or alternately, java must stop using the
static motif library
> > and link with the shared library instead.
>
> The latter would be easy to test.  Just set
STATIC_MOTIF to false in
> j2se/make/common/Defs-bsd.gmk.

that appears to work (i.e. make didn't complain). many
thanks for the tip.

h.
-- 
----------------------------------
Hiroyuki Kawakatsu
Business School
Dublin City University
Dublin 9, Ireland
Tel +353 (0)1 700 7496
_______________________________________________
freebsd-javafreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java

To unsubscribe, send any mail to
"freebsd-java-unsubscribefreebsd.org"

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )