libtool issue? creating package for classpath-0.18/0.19

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

libtool issue? creating package for classpath-0.18/0.19

Frederick C. Druseikis-2
Greetings,

In the snippet below (edited to reduce line length), classpath-0.18 has
compiled successfully; the OpenBSD ports system is trying to construct
the package (make fake).  The relevant unedited output is attached.

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.  At least 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'

[SNIP - first invocation of classpath's libtool]

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

[SNIP - second invocation of classpath's libtool]

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

[SNIP - invocation of cc]

cc -shared  -fPIC -DPIC
-o .libs/libjawtgnu.so.0.0  .libs/jawt.o  ... /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'

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


libtool-issue.txt (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: libtool issue? creating package for classpath-0.18/0.19

Jacob Meuser
On Wed, Nov 09, 2005 at 06:35:32AM -0500, Frederick C Druseikis wrote:

> A casual diff of the ltmain.sh in OpenBSD's libtool and classpath's
> reveals numerous differences

one of them designed to avoid exactly the problem you are seeing.

I bet your problem will disappear if you add

USE_LIBTOOL=Yes

to your port's Makefile.

--
<[hidden email]>

Reply | Threaded
Open this post in threaded view
|

Re: libtool issue? creating package for classpath-0.18/0.19

Aleksander Piotrowski
Jacob Meuser <[hidden email]> wrote:

> On Wed, Nov 09, 2005 at 06:35:32AM -0500, Frederick C Druseikis wrote:
>
> > A casual diff of the ltmain.sh in OpenBSD's libtool and classpath's
> > reveals numerous differences
>
> one of them designed to avoid exactly the problem you are seeing.
>
> I bet your problem will disappear if you add
>
> USE_LIBTOOL=Yes
>
> to your port's Makefile.

And don't forget to check if that port honours LIBTOOL variable as
there are ports that simply use hardcoded value like ../libtool.

Alek
--
Słowa Hawkmoona dodały im otuchy, natomiast królowa Frawbra przekonała ich
logicznymi argumentami. Zaczęli znów sięgać po broń, poprawiać zbroję,
rozglądać się za swymi końmi.
 -- Michael Moorcock, Klejnot w czaszce

Reply | Threaded
Open this post in threaded view
|

Re: libtool issue? creating package for classpath-0.18/0.19

Frederick C. Druseikis-2

Thank you both; this has solved the problem.

Fred