Greetings,

In the snippet below, classpath-0.18 has compiled successfully; the OpenBSD ports system is trying to construct the package.

The specific symptom (cc error message below) suggests that the pathing is incorrect to the fake subtree. If I bypass the ports system and build classpath directly on the platform (using classpath's stock gnu install into /usr/local) everything works (0.19 too)

OK, you say, it sounds like a bug in OpenBSD ports.  Note however the ominous warning from libtool.

Respecting the admonitions to use OpenBSD's libtool I hacked it in.  I did this by deleting classpath's ltmain.sh and softlinking the delivered libtool to /usr/local/bin/libtool.  I am running libtool-1.5.20 from ports; openbsd3.8-current GENERIC #189 (Oct 11).

The results were not good.  The bsd.ports.mk fake target fails to put *anything* in the fake subtree.  The classpath libtool puts stuff into fake and only fails at the point noted below.

So it looks like a libtool issue -- unless you think that the "not portable" warning message absolves libtool of responsibility.  The warning message is not OpenBSD specific.  I've asked the classpath-dev list about the justification for it and plans to address the root cause. 

A casual diff of the ltmain.sh in OpenBSD's libtool and classpath's reveals numerous differences in spite of having the same version number and almost identical timestamps.  I can easily provide a diff in a separate e-mail.

Any help or recommendations greatly appreciated.

Regards,
Fred


------------------
gmake[3]: Entering directory `/usr/ports/mystuff/classpath-0.18/w-classpath-0.18/classpath-0.18/native/jawt'

test -z "/usr/local/lib/classpath" || /bin/sh ../../mkinstalldirs "/usr/ports/mystuff/classpath-0.18/w-classpath-0.18/fake-i386/usr/local/lib/classpath"
 /bin/sh ../../libtool --mode=install /usr/bin/install -c -o root -g bin  'libjawtgnu.la' '/usr/ports/mystuff/classpath-0.18/w-classpath-0.18/fake-i386/usr/local/lib/classpath/libjawtgnu.la'

libtool: install: warning: relinking `libjawtgnu.la'

(cd /usr/ports/mystuff/classpath-0.18/w-classpath-0.18/classpath-0.18/native/jawt; /bin/sh ../../libtool  --tag=CC --mode=relink cc -pedantic -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -DXTHREADS -D_REENTRANT -pthread -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/pango-1.0 -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -O2 -pipe -module -version-info 0:0:0 -no-undefined -pthread -L/usr/local/lib -L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoxft-1.0 -lXft -lfreetype -lXrender -lfontconfig -lpangox-1.0 -lX11 -lpango-1.0 -lgthread-2.0 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -L/usr/X11R6/lib -lXtst -o libjawtgnu.la -rpath /usr/local/lib/classpath jawt.lo ../../native/jni/gtk-peer/libgtkpeer.la -inst-prefix-dir /usr/ports/mystuff/classpath-0.18/w-classpath-0.18/fake-i386)

*** Warning: Linking the shared library libjawtgnu.la against the loadable module
*** libgtkpeer.so.0.0 is not portable!

cc -shared  -fPIC -DPIC -o .libs/libjawtgnu.so.0.0  .libs/jawt.o  -pthread -L/usr/local/lib -L/usr/X11R6/lib /usr/local/lib/libgtk-x11-2.0.so.600.10 /usr/local/lib/libgdk-x11-2.0.so.600.10 /usr/local/lib/libatk-1.0.so.1011.3 /usr/local/lib/libpangoxft-1.0.so.800.1 -lXft /usr/local/lib/libfreetype.so.8.0 -lXrender -lfontconfig /usr/local/lib/libpangox-1.0.so.800.1 -lX11 /usr/local/lib/libpango-1.0.so.800.1 /usr/local/lib/libgthread-2.0.so.600.4 /usr/local/lib/libgdk_pixbuf-2.0.so.600.10 -lm /usr/local/lib/libgobject-2.0.so.600.4 /usr/local/lib/libgmodule-2.0.so.600.4 /usr/local/lib/libglib-2.0.so.600.4 /usr/local/lib/libintl.so.2.0 /usr/local/lib/libiconv.so.4.0 -lXtst /usr/local/lib/classpath/libgtkpeer.so.0.0

cc: /usr/local/lib/classpath/libgtkpeer.so.0.0: No such file or directory

libtool: install: error: relink `libjawtgnu.la' with the above command before installing it

gmake[3]: *** [install-pkglibLTLIBRARIES] Error 1
gmake[3]: Leaving directory `/usr/ports/mystuff/classpath-0.18/w-classpath-0.18/classpath-0.18/native/jawt'

------------------
