On Mon, Jan 29, 2007 at 04:11:07PM -0700, Ed Hartnett wrote: > Ralf Wildenhues <[EMAIL PROTECTED]> 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! > > Can anyone tell me why this link is failing? > > /bin/sh ../libtool --tag=CC --mode=link cc -g > -version-info 4:0:0 -no-undefined -o libnetcdf.la -rp\ > ath /usr/local/lib attr.lo ncx.lo putget.lo dim.lo error.lo libvers.lo > nc.lo string.lo v1hpg.lo var.lo posixio.l\ > o > 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)
While you set CXX=g++, did you set CC=gcc? If not, then the default bundled compiler, cc, would be selected. And, it cannot be used to build shared libraries. So, just add CC=gcc. -- albert chin ([EMAIL PROTECTED]) _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool