libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

no .so file on HPUX platform?


From: Ed Hartnett
Subject: no .so file on HPUX platform?
Date: Wed, 03 Jan 2007 09:50:38 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Howdy all!

I am using libtool to produce a shared library, libnetcdf. On every
platform I try, I get a libnetcdf.so and libnetcdf.a.

On our HPUX platform however, no libnetcdf.so file results. Yet the
build seems to work OK. 

When I run configure it says that it can do shared libraries:

checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... hpux11.00 dld.sl
checking how to hardcode library paths into programs... relink
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes

Then the build seems to build shared libraries in the usual way (but
without a libnetcdf.so output):

/bin/sh ../libtool --tag=CC   --mode=link cc  -g  -version-info 4:0:0
-no-undefined   -o libnetcdf.la -rpath /tmp\
_mnt/home/ed/n3_test/tmp/n3_tweety/netcdf-3.6.2-beta5/install/lib
attr.lo ncx.lo putget.lo dim.lo error.lo libver\
s.lo nc.lo string.lo v1hpg.lo var.lo  posixio.lo
libtool: link: ar cru .libs/libnetcdf.a  attr.o ncx.o putget.o dim.o
error.o libvers.o nc.o string.o v1hpg.o var.\
o posixio.o
libtool: link: ranlib .libs/libnetcdf.a
libtool: link: creating libnetcdf.la
libtool: link: ( cd ".libs" && rm -f "libnetcdf.la" && ln -s
"../libnetcdf.la" "libnetcdf.la" )

Here's the message I get at install:

make[2]: Entering directory
`/tmp_mnt/home/ed/n3_test/tmp/n3_tweety/netcdf-3.6.2-beta5/libsrc'
test -z
"/tmp_mnt/home/ed/n3_test/tmp/n3_tweety/netcdf-3.6.2-beta5/install/lib"
|| .././install-sh -c -d "/tmp_mn\
t/home/ed/n3_test/tmp/n3_tweety/netcdf-3.6.2-beta5/install/lib"
 /bin/sh ../libtool --mode=install .././install-sh -c  'libnetcdf.la'
 '/tmp_mnt/home/ed/n3_test/tmp/n3_tweety/net\
cdf-3.6.2-beta5/install/lib/libnetcdf.la'
libtool: install: .././install-sh -c .libs/libnetcdf.lai
/tmp_mnt/home/ed/n3_test/tmp/n3_tweety/netcdf-3.6.2-beta\
5/install/lib/libnetcdf.la
libtool: install: .././install-sh -c .libs/libnetcdf.a
/tmp_mnt/home/ed/n3_test/tmp/n3_tweety/netcdf-3.6.2-beta5/\
install/lib/libnetcdf.a
libtool: install: chmod 644
/tmp_mnt/home/ed/n3_test/tmp/n3_tweety/netcdf-3.6.2-beta5/install/lib/libnetcdf.a
libtool: install: ranlib
/tmp_mnt/home/ed/n3_test/tmp/n3_tweety/netcdf-3.6.2-beta5/install/lib/libnetcdf.a
----------------------------------------------------------------------
Libraries have been installed in:
   /tmp_mnt/home/ed/n3_test/tmp/n3_tweety/netcdf-3.6.2-beta5/install/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `SHLIB_PATH' environment variable
     during execution
   - use the `-Wl,+b -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

But there does not end up being a libnetcdf.so file. Only a
libnetcdf.a file.

What's the deal? Do I have a shared library on HPUX?

Thanks for any answers!

Ed
-- 
Ed Hartnett  -- address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]