libtool
[Top][All Lists]
Advanced

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

Re: no .so file on HPUX platform?


From: Ralf Wildenhues
Subject: Re: no .so file on HPUX platform?
Date: Tue, 30 Jan 2007 21:45:42 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Hi Ed,

* Ed Hartnett wrote on Tue, Jan 30, 2007 at 12:11:07AM CET:
> Ralf Wildenhues <address@hidden> writes:
> > * Ed Hartnett wrote on Mon, Jan 22, 2007 at 09:31:36PM CET:
> >> 
> >> I only have this one HPUX system to test on, and it's pretty out of
> >> date, I suspect. But if I ask them to upgrade it, they'll probably
> >> just say "Nah, let's just get rid of it..."
> >
> > Do you have aCC installed there?  If yes, could you try to build netcdf
> > with it?  Over here it's chosen, rather than CC, as C++ compiler.
> 
> OK, this gave me the clue to try with with CXX=g++. This allows
> libtool to continue to build shared libraries. But there is still a
> problem, alas!

Which compiler is `cc'?  Is that the bundled one or the ANSI compliant
one?  Because on HP-UX 11.0 HPPA, the bundled one gives me:

$ /usr/ccs/bin/cc -b -o a a.o
| (Bundled) cc: warning 422: Unknown option "b" ignored.

(see also <http://docs.hp.com/en/B2355-90680/cc_bundled.1.html>)

whereas the "real" one has the following in the manpage: (don't be
fooled by the web page: "online" for HP means on the computer, not on
the interweb)

|    -b             Generate shared library as output. Compiler generates
|                   position-independent code (PIC). Is not compatible with
|                   the +ESrel, -dynamic, -noshared options.

and accepts -b.  Version tested is:
$ /opt/ansic/bin/cc -V -c a.c
| ccom: HP92453-01 B.11.X.35098-35101.GP HP C Compiler

whereas the bundled one was:
$ /usr/ccs/bin/cc -V -c a.c
| ccom: HP92453-01 A.11.00.00 HP C (Bundled) Compiler

AFAIR the bundled one is unusable.  Either use the real thing, e.g., by
adjusting PATH so it comes first, or `./configure CC=/ansic/bin/cc';
or simply use gcc.  ;-)

> libtool: link: cc -b -Wl,+h -Wl,libnetcdf.sl.4 -Wl,+b
>         -Wl,/usr/local/lib -o .libs/libnetcdf.sl.4.0  .libs/attr.o .l\
> ibs/ncx.o .libs/putget.o .libs/dim.o .libs/error.o .libs/libvers.o
>         .libs/nc.o .libs/string.o .libs/v1hpg.o .libs/va\
> r.o .libs/posixio.o   -lc
> cc: warning 422: Unknown option "b" ignored.
> /usr/ccs/bin/ld: Unsatisfied symbols:
>    main (Not referenced yet! Probably due to -u option)
> *** Error exit code 1

Cheers,
Ralf




reply via email to

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