[ghemical-devel] Re: Ghemical 1.51 and Shared Libraries?

Jean Bréfort jean.brefort@ac-dijon.fr
Fri, 13 Aug 2004 17:25:29 +0200


Le jeu 12/08/2004 à 08:36, Tommi Hassinen a écrit :
> > On Wed, 19 May 2004, Jean Bréfort wrote:
> >
> > > As a sample I made a libtoolized package for mopac7. Note that the
> > > COPYING and AUTHORS files should be updated and that some files might be
> > > missing, expecially in tests. The package is available at:
> > > http://jean.brefort.free.fr/mopac7.tgz
> > > It compiles and generate by default both a static and a shared
> > > libraries.
> 
> Hello,
> 
> I have a problem/question about shared libs. I have been experimenting
> with the package mentioned above (downloaded today). When I just do
> 
> 	./configure
> 	make
> 
> I get working results as expected in ./libs directory:
> 
>   5183410 Aug 12 08:35 .libs/libmopac7.a
>        15 Aug 12 08:35 .libs/libmopac7.la -> ../libmopac7.la
>       820 Aug 12 08:35 .libs/libmopac7.lai
>        18 Aug 12 08:35 .libs/libmopac7.so -> libmopac7.so.0.0.0
>        18 Aug 12 08:35 .libs/libmopac7.so.0 -> libmopac7.so.0.0.0
>   3971685 Aug 12 08:35 .libs/libmopac7.so.0.0.0
> 
> But when I try to re-build the scripts using autoconf/automake, I get
> strange results (I have Autoconf version 2.13 and automake (GNU automake)
> 1.4-p6 in a debian "testing" system). So I do
> 
> 	aclocal
> 	autoconf
> 	automake
> 	./configure
> 	make
> 
> after adding a missing "mkinstalldirs" script which is not related to the
> actual problem. Everything gets compiled but in .libs I then have:
> 
>        15 Aug 12 08:40 .libs/libmopac7 -> libmopac7.0.0.0
>        15 Aug 12 08:40 .libs/libmopac7.0 -> libmopac7.0.0.0
>   3977378 Aug 12 08:40 .libs/libmopac7.0.0.0
>   5187572 Aug 12 08:40 .libs/libmopac7.a
>        15 Aug 12 08:40 .libs/libmopac7.la -> ../libmopac7.la
>       808 Aug 12 08:40 .libs/libmopac7.lai
>     19624 Aug 12 08:39 .libs/linmin.o
> 
> So, there are files that seem to correspond with the shared library, but
> the filenames do not have the .so. identifier! Strange... Any ideas what's
> going on here?

I use more recent versions of autoconf/automake. Your problem probably
comes from libtool.
Try:
libtoolize --force
to update libtool files.