#55 Unable to create LXR::Lang::Generic Lang

closed-works-for-me
nobody
genxref (49)
5
2002-07-29
2002-05-15
Andy Baskett
No

I am running:
LXR 0.9.1
mysql 3.22.30
ectags 5.0.1
HP-UX 10.20

When running genxref --url=http://server/lxr --
version=head
with the config set to run against both a directory or
CVS repository I get the following error:
Unable to create LXR::Lang::Generic Lang object, Died
at lib/LXR/Lang/Generic.pm line 263

I have successfully been running lxr.0.3 and have
transposed (what I hope are) the necessary values of
the lxr.conf file into the new format.

I've tried this same with lxr.0.8
and get the following error (which I think is probably
caused by the same thing looking at the code):
Can't use an undefined value as a HASH reference at
lib/LXR/Lang/Generic.pm line 62.

lxr.0.3 runs fine and I'm content running that for
now, but would like to try 0.9.1 on HP-UX 10.20 (which
I guess may be the problem as I've not found any other
similar reports on Linux).
Thanks in advance for any solutions.

Discussion

  • Andy Baskett
    Andy Baskett
    2002-05-15

    Logged In: YES
    user_id=36654

    Eventually tracked it down to the following line in
    lib/LXR/Lang/Generic.pm:
    $generic_config = eval ("\n#line 1
    \"generic.conf\"\n".<CONF>);
    (Forgive me for not providing a line number but I expect
    mine no longer match).
    Importing the entire generic.conf file and creating the
    $generic_config hash manually fixes my problem - my Perl
    version is:
    This is perl, version 5.005_02 built for PA-RISC1.1
    Thanks.

     
  • Andy Baskett
    Andy Baskett
    2002-05-15

    Logged In: YES
    user_id=36654

    In the end changing it to:
    my $tmpstr = '$generic_config = '.<CONF>.";";
    eval ($tmpstr);
    #$generic_config = eval ("\n#line 1
    \"generic.conf\"\n".<CONF>);
    I expect my perl is dubious though.

     
  • Malcolm Box
    Malcolm Box
    2002-05-21

    Logged In: YES
    user_id=215386

    I'm using perl 5.6.1, so your (very) old version of perl may
    be to blame.

    If you can, try upgrading to a more recent version of perl.
    If that cures the problem, I can add a perl version check
    to the code to catch this sort of problem in the future.

     
  • Malcolm Box
    Malcolm Box
    2002-07-29

    • status: open --> closed-works-for-me