[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Libtool 2.2.6 uses unknown -b option w/HP-UX cc
From: |
Daniel Richard G. |
Subject: |
Re: Libtool 2.2.6 uses unknown -b option w/HP-UX cc |
Date: |
Mon, 10 Nov 2008 15:12:22 -0500 |
On Mon, 2008 Nov 10 20:09:33 +0100, Ralf Wildenhues wrote:
>
> > cc: warning 422: Unknown option "b" ignored.
> > /usr/ccs/bin/ld: Unsatisfied symbols:
> > main (Not referenced yet! Probably due to -u option)
> > gmake[5]: *** [libfoo.la] Error 1
>
> Does it work if you replace -b with -Z in archive_cmds,
> archive_expsym_cmds inside the libtool script?
Not quite, I'm afraid:
----
libtool: link: mv -f ".libs/libfoo.expT" ".libs/libfoo.exp"
libtool: link: cc -Z -Wl,+h -Wl,libfoo.sl -Wl,+b -Wl,/tmp/project/lib -o
.libs/libfoo.sl .libs/xxjni.o .libs/mcatobj.o -L/opt/lib/pic -L/opt/lib
/opt/lib/pic/libxxlib.a -L/opt/lib /opt/lib/libxml2.a -lz /opt/lib/libiodbc.a
/opt/lib/libiodbcinst.a -lcl -lpthread /opt/lib/libpcre.a -lm -lc +DA2.0
/usr/ccs/bin/ld: Unsatisfied symbols:
main (Not referenced yet! Probably due to -u option)
*** Error exit code 1
----
(Besides, according to the cc(1) man page, all -Z does is allow the
dereferencing of null pointers...)
I remember working around this in 1.5.x by hacking the Libtool
configure-script section to choose the hpux10* commands instead of hpux11*.
(The former uses "ld -b ...", which works on this system.) This hack still
seems to do the trick, so that would seem to be the appropriate fallback.
Many thanks for your fine work,
--Daniel
--
NAME = Daniel Richard G. ## Remember, skunks _\|/_ meef?
EMAIL1 = address@hidden ## don't smell bad--- (/o|o\) /
EMAIL2 = address@hidden ## it's the people who < (^),>
WWW = http://www.******.org/ ## annoy them that do! / \
--
(****** = site not yet online)