Operating System - HP-UX
1753394 Members
7138 Online
108792 Solutions
New Discussion юеВ

Re: lex library -ll on hpux 11.22, hpux 11.23

 
Michael Chastain
New Member

lex library -ll on hpux 11.22, hpux 11.23

I'm having problem using the lex library, -ll, on hpux 11.22 and hpux 11.23. The library has 18 unresolved data symbols.

% cc hello.c -ll -ly
ld: (Warning) Unsatisfied symbol "yyleng" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yylenguc" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyinput" in file /usr/lib/hpux32/libl.so
... and so on ...

I'm attaching a typescript file which shows the problem.

This problem does not happen with hpux 11.11.

I ran into this problem while I was building GNU binutils 2.14 on hpux 11.22 and hpux 11.23. I do have a workaround, which is:

export LEXLIB=' '

This enables binutils to build (in case anyone else has the same problem). But as you can see from the typescript, there's a problem with any program that uses lex.
2 REPLIES 2
Mike Stroyan
Honored Contributor

Re: lex library -ll on hpux 11.22, hpux 11.23

Those symbols are supposed to be defined by the lexx.yy.c source file which is generated by the lex command. Perhaps you did not use the system's lex command when building or did not recreate the C source from the lex source.
Michael Chastain
New Member

Re: lex library -ll on hpux 11.22, hpux 11.23

Right. See the typescript that I attached. My sample program is:

int main ()
{
printf ("hello world\n");
return 0;
}

It doesn't get run through lex at all. I just have a Makefile that links in several system libraries, including "-ll".

It was a surprise to me that I can't use "-ll" unless I've actually run "lex" on something first, but I can deal with that. Thanks.