This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
problem with LEXLIB on native ia64-hp-hpux11.22
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: binutils at sources dot redhat dot com
- Date: Sun, 21 Dec 2003 15:42:16 -0500 (EST)
- Subject: problem with LEXLIB on native ia64-hp-hpux11.22
[Argh, some of the IP addresses for mail.mindspring.com are in SORBS,
apologies if this is a duplicate].
I am building binutils 2.14 on native ia64-hp-hpux11.22
(available through HP's test drive program). I'm getting these
warnings when I build 'ar':
cc -Wp,-H256000 -g -o ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o
binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a
../libiberty/libiberty.a -ll ./../intl/libintl.a -lm
ld: (Warning) Unsatisfied symbol "yylenguc" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyinput" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyunput" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyolsp" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyoutput" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yytextuc" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyextra" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyfnd" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyprevious" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yylsp" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yylstate" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yytextarr" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyback" in file /usr/lib/hpux32/libl.so
13 warnings.
The resulting 'ar' does not execute.
A little investigation shows that ia64-hp-hpux11.22 and
ia64-hp-hpux11.23 have a problem:
% cc hello.c -ll
ld: (Warning) Unsatisfied symbol "yyleng" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yylenguc" in file /usr/lib/hpux32/libl.so
...
% cc +DD32 hello.c -ll
ld: (Warning) Unsatisfied symbol "yyleng" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yylenguc" in file /usr/lib/hpux32/libl.so
...
% cc +DD64 hello.c -ll
ld: (Warning) Unsatisfied symbol "yyleng" in file /usr/lib/hpux64/libl.so
ld: (Warning) Unsatisfied symbol "yylenguc" in file /usr/lib/hpux64/libl.so
This problem does not happen with hppa-hp-hpux11.11.
I worked around the problem by nulling out LEXLIB before
running configure:
export LEXLIB=" "
/.../.../configure ...
make
make install
This causes the configure script to skip the test for LEXLIB
and just use a blank value rather than the normal value of "-ll".
'ar' and the other binutils programs don't actually need "-ll",
because they carefully define their own yywrap().
I don't know what the right fix is. You might want to boot the problem
upstream to the autoconf guys. Meanwhile, I'll keep plugging ahead with
this workaround.
Michael C