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

Tommi Hassinen thassine@messi.uku.fi
Thu, 12 Aug 2004 09:36:52 +0300 (WET)


> On Wed, 19 May 2004, Jean Br=E9fort 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 b=
e
> > 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

=09./configure
=09make

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

=09aclocal
=09autoconf
=09automake
=09./configure
=09make

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?

=09Tommi