Re: classpath build problems with libtool 2.2.4

2008-07-06 Thread Christian Thalinger
On Sun, 2008-07-06 at 17:06 +0200, Robert Schuster wrote:
> Hi,
> I am currently trying to build classpath (0.93) in an environment using
> libtool 2.2.4.
> 
> I basically disable all optional external dependencies and compile with
> jikes:
> 
>   --with-jikes=jikes \
>   --with-fastjar=fastjar \
>   --with-glibj \
>   --disable-local-sockets \
>   --disable-alsa \
>   --disable-gconf-peer \
>   --disable-gtk-peer \
>   --disable-plugin \
>   --disable-dssi \
>   --disable-examples \
>   --disable-tools \
>   --with-glibj-dir=${STAGING_DATADIR}/classpath-initial \
>   --with-native-libdir=${STAGING_LIBDIR}/classpath-initial \
>   --includedir=${STAGING_INCDIR}/classpath-initial \
> 
> This is the error I get from libtool:
> 
> i686-linux-libtool: link: unsupported hardcode properties
> i686-linux-libtool: link: See the libtool documentation for more
> information.
> i686-linux-libtool: link: Fatal configuration error.

I already noticed that back in April and wrote to the bug-libtool
list[1].  But I never got an answer to my second mail.

[1] http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00145.html

- twisti




classpath build problems with libtool 2.2.4

2008-07-06 Thread Robert Schuster
Hi,
I am currently trying to build classpath (0.93) in an environment using
libtool 2.2.4.

I basically disable all optional external dependencies and compile with
jikes:

  --with-jikes=jikes \
  --with-fastjar=fastjar \
  --with-glibj \
  --disable-local-sockets \
  --disable-alsa \
  --disable-gconf-peer \
  --disable-gtk-peer \
  --disable-plugin \
  --disable-dssi \
  --disable-examples \
  --disable-tools \
  --with-glibj-dir=${STAGING_DATADIR}/classpath-initial \
  --with-native-libdir=${STAGING_LIBDIR}/classpath-initial \
  --includedir=${STAGING_INCDIR}/classpath-initial \

This is the error I get from libtool:

i686-linux-libtool: link: unsupported hardcode properties
i686-linux-libtool: link: See the libtool documentation for more
information.
i686-linux-libtool: link: Fatal configuration error.

Which is caused by the following command:

make[3]: Entering directory
`/home/rob/oe/beagle/tmp/work/i686-linux/classpath-initial-0.93-r1/classpath-0.93/native/jni/java-net'
/bin/sh ../../../i686-linux-libtool --tag=CC   --mode=link ccache gcc -W
-Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes
-Wno-long-long -Wstrict-prototypes -pedantic -Werror
-isystem/home/rob/oe/beagle/tmp/staging/i686-linux/usr/include -Os
-module -version-info 0:0:0 -no-undefined
-L/home/rob/oe/beagle/tmp/staging/i686-linux/usr/lib
-Wl,-rpath-link,/home/rob/oe/beagle/tmp/staging/i686-linux/usr/lib
-Wl,-rpath,/home/rob/oe/beagle/tmp/staging/i686-linux/usr/lib -Wl,-O1 -o
libjavanet.la -rpath
/home/rob/oe/beagle/tmp/staging/i686-linux/usr/lib/classpath-initial
javanet.lo java_net_VMInetAddress.lo java_net_VMNetworkInterface.lo
java_net_VMURLConnection.lo gnu_java_net_VMPlainSocketImpl.lo
gnu_java_net_local_LocalSocketImpl.lo
../../../native/jni/classpath/jcl.lo
../../../native/jni/native-lib/libclasspathnative.la -lmagic

I debugged this problem to the point where I found out that libtool does
not like the '-lmagic' argument. If I remove that from the makefile the
build continues. However this cannot be the real fix.

What is wrong here and how should I fix it?

Regards
Robert



signature.asc
Description: OpenPGP digital signature