Operating System - HP-UX
1826465 Members
2588 Online
109692 Solutions
New Discussion

cscope for HP-UX 11.23 IA machine not woking

 
amit mehta_2
Regular Advisor

cscope for HP-UX 11.23 IA machine not woking

Hi,

I've downloaded cscope and run time dependencies for HP-UX 11.23 IA machine
from:

http://hpux.cs.utah.edu/hppd/hpux/Development/Tools/cscope-15.6/

The installation goes fine but if i try to run cscope,i am getting following error message:

root@hpia33/usr/local/bin >./cscope
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yytext' in load module './cscope'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yyleng' in load module './cscope'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yynerrs' in load module './cscope'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yychar' in load module './cscope'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yylval' in load module './cscope'.
Killed

The depots are:

bison-2.3-ia64-11.23.depot
cscope-15.6-ia64-11.23.depot
flex-2.5.33-ia64-11.23.depot
gettext-0.16.1-ia64-11.23.depot
libiconv-1.11-ia64-11.23.depot
m4-1.4.10-ia64-11.23.depot
ncurses-5.6-ia64-11.23.depot
regex-0.12-ia64-11.23.depot

Machine info:

root@hpia33/usr/local/bin >uname -a
HP-UX hpia33 B.11.23 U ia64 4209852567 unlimited-user license
root@hpia33/usr/local/bin >model
ia64 hp server rx2600
root@hpia33/usr/local/bin >getconf KERNEL_BITS
64


~amit
8 REPLIES 8
Kent Ostby
Honored Contributor

Re: cscope for HP-UX 11.23 IA machine not woking

Those are yacc routines
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
amit mehta_2
Regular Advisor

Re: cscope for HP-UX 11.23 IA machine not woking

Thanks Kent,

Now how can i resolve this issue.

I don't know much about Yacc,but would definitely like to give a try.

~amit

Dennis Handly
Acclaimed Contributor

Re: cscope for HP-UX 11.23 IA machine not woking

This looks like bison lex messages, not yacc.
What does "ldd cscope" show?

This may show you are using HP's version of lex/yacc shlibs rather than your foreign devil versions?
amit mehta_2
Regular Advisor

Re: cscope for HP-UX 11.23 IA machine not woking

root@hpia33/ >which cscope
/usr/bin/cscope

root@hpiaia7/ >ldd -r /usr/bin/cscope
libncurses.so => /usr/local/lib/hpux32/libncurses.so
libfl.so => /usr/local/lib/hpux32/libfl.so
libregex.so => /usr/local/lib/hpux32/libregex.so
libc.so.1 => /usr/lib/hpux32/libc.so.1
libdl.so.1 => /usr/lib/hpux32/libdl.so.1
symbol not found: yyleng (/usr/bin/cscope)
symbol not found: yylval (/usr/bin/cscope)
symbol not found: yytext (/usr/bin/cscope)
symbol not found: yynerrs (/usr/bin/cscope)
symbol not found: yychar (/usr/bin/cscope)
amit mehta_2
Regular Advisor

Re: cscope for HP-UX 11.23 IA machine not woking

root@hpia33/ >which cscope
/usr/bin/cscope

root@hpiaia7/ >ldd -r /usr/bin/cscope
libncurses.so => /usr/local/lib/hpux32/libncurses.so
libfl.so => /usr/local/lib/hpux32/libfl.so
libregex.so => /usr/local/lib/hpux32/libregex.so
libc.so.1 => /usr/lib/hpux32/libc.so.1
libdl.so.1 => /usr/lib/hpux32/libdl.so.1
symbol not found: yyleng (/usr/bin/cscope)
symbol not found: yylval (/usr/bin/cscope)
symbol not found: yytext (/usr/bin/cscope)
symbol not found: yynerrs (/usr/bin/cscope)
symbol not found: yychar (/usr/bin/cscope)


Thanks,
~amit
Dennis Handly
Acclaimed Contributor

Re: cscope for HP-UX 11.23 IA machine not woking

Well, it appears that cscope is built incorrectly and is completely useless.
I see:
$ elfdump -t /usr/local/bin/cscope | grep -f cscope_unsats
OBJT GLOB 0 UNDEF 0 yyleng
OBJT GLOB 0 UNDEF 0 yylval
OBJT GLOB 0 0x1b 4 my_yyleng
OBJT GLOB 0 UNDEF 0 yytext
OBJT GLOB 0 UNDEF 0 yynerrs
OBJT GLOB 0 0x1b 4 my_yytext
OBJT GLOB 0 UNDEF 0 yychar

There are two symbol with my_ prefix that may be an issue? But I don't see yylval, yynerrs and yychar. It appears that flex and bison aren't working together?

You might try the "Contact Us" button on the bottom of that cscope page.
Or you could built it from the source.
amit mehta_2
Regular Advisor

Re: cscope for HP-UX 11.23 IA machine not woking

Hi Dennis,

Informed this issue to "hpux@connect.org.uk"

Thanks a lot,
~amit
Jochen Sprick
Occasional Visitor

Re: cscope for HP-UX 11.23 IA machine not woking

Hi Amit,

I just had a very similar problem with enscript that has the same dependencies. In this case the yy* symbols came from the flex package.
With some luck I found an OLDER version of flex in my repository, namely 2.5.4a, that does not show the mentioned problems and thus my enscript now works ok.

May that will help you, too.

Best Regards,
Jochen Sprick