[Lxr-dev] [ lxr-Bugs-556309 ] Unable to create LXR::Lang::Generic Lang
Brought to you by:
ajlittoz
From: <no...@so...> - 2002-05-21 10:23:56
|
Bugs item #556309, was opened at 2002-05-15 22:04 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=390117&aid=556309&group_id=27350 Category: genxref Group: None Status: Open Resolution: None Priority: 5 Submitted By: Andy Baskett (abaskett) Assigned to: Nobody/Anonymous (nobody) Summary: Unable to create LXR::Lang::Generic Lang Initial Comment: 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. ---------------------------------------------------------------------- >Comment By: Malcolm Box (mbox) Date: 2002-05-21 19:23 Message: 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. ---------------------------------------------------------------------- Comment By: Andy Baskett (abaskett) Date: 2002-05-16 01:10 Message: 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. ---------------------------------------------------------------------- Comment By: Andy Baskett (abaskett) Date: 2002-05-16 00:05 Message: 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. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=390117&aid=556309&group_id=27350 |