lxr-general Mailing List for LXR Cross Referencer (Page 8)
Brought to you by:
ajlittoz
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
(1) |
Sep
(6) |
Oct
|
Nov
(13) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(8) |
Feb
(4) |
Mar
(6) |
Apr
(5) |
May
(5) |
Jun
(4) |
Jul
(8) |
Aug
(3) |
Sep
(6) |
Oct
(7) |
Nov
(7) |
Dec
(10) |
2003 |
Jan
(9) |
Feb
(4) |
Mar
(8) |
Apr
(12) |
May
(13) |
Jun
(9) |
Jul
(13) |
Aug
(10) |
Sep
(3) |
Oct
(3) |
Nov
(19) |
Dec
(14) |
2004 |
Jan
(11) |
Feb
(10) |
Mar
(7) |
Apr
(5) |
May
(4) |
Jun
(4) |
Jul
(2) |
Aug
|
Sep
(3) |
Oct
(2) |
Nov
(6) |
Dec
(6) |
2005 |
Jan
(11) |
Feb
(1) |
Mar
(6) |
Apr
(4) |
May
(7) |
Jun
(13) |
Jul
(9) |
Aug
(32) |
Sep
(27) |
Oct
(31) |
Nov
(17) |
Dec
(24) |
2006 |
Jan
(19) |
Feb
(25) |
Mar
(30) |
Apr
(28) |
May
(35) |
Jun
(38) |
Jul
(21) |
Aug
(31) |
Sep
(38) |
Oct
(68) |
Nov
(84) |
Dec
(83) |
2007 |
Jan
(45) |
Feb
(78) |
Mar
(72) |
Apr
(67) |
May
(51) |
Jun
(49) |
Jul
(125) |
Aug
(113) |
Sep
(74) |
Oct
(59) |
Nov
(63) |
Dec
(55) |
2008 |
Jan
(58) |
Feb
(53) |
Mar
(56) |
Apr
(224) |
May
(282) |
Jun
(269) |
Jul
(354) |
Aug
(552) |
Sep
(277) |
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
(8) |
Dec
|
2010 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
(3) |
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
(6) |
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Paolo P. <bod...@ho...> - 2005-01-11 11:40:15
|
Hello all. I recently installed LXR cross-referencing engine version 0.3, and I integrate it with Bonsai. Following the install instructions, I executed $LCRROOT/bin/genxref <mysourcedir>. It creates cross reference files/indexes but just for "c" file. I saw in sourceforge some other lang extension (such as java, shell, COBOL, shell ...) Actually I need the COBOL extension. Please anybody could tell me exactly what I should do. 1) What files I need ? 2) Where to find them ? 3) In particulary, how do I install and integrate it ? 4) There is some other nice extension for search and cross referincing for COBOL or CVS to integrate with Bonsai ? ( I already use glimpse!) Thanks in advance, paolo. |
From: Malcolm B. <ma...@br...> - 2005-01-08 17:54:42
|
Michael O'Connor wrote: > Hi, > > Apologies if this has been asked before. I'm wondering if anyone's tried using > lxr on a codebase to find unreferenced / unused functions. I tried this on a C > / C++ codebase I've been working in and found it very useful as part of a > clean-up exercise. I haven't heard of anyone doing this - sounds like a good idea, and a possibly useful extension to LXR. <snip description of method> > I guess there are better ways of achieving the same result, I'd like to hear > what people think. Might be, but I can't think of one off the top of my head. If you could send me the SQL you were using I can look to see if it can be built into LXR in some way - perhaps by adding a "find unused symbols" search, or by showing unused symbols in the ident search? Cheers, Malcolm |
From: Tom S. <to...@pl...> - 2005-01-06 17:14:08
|
On Thu, 2005-01-06 at 07:25 -0800, Michael O'Connor wrote: > Hi, > > Apologies if this has been asked before. I'm wondering if anyone's tried using > lxr on a codebase to find unreferenced / unused functions. I tried this on a C > / C++ codebase I've been working in and found it very useful as part of a > clean-up exercise. Here is what I have done. I am not sure exactly what version of LXR I am running, here is the CVS Id from the ident script: # $Id: ident,v 1.6 1998/04/30 11:58:16 argggh Exp $ Here are some bits to add to Common.pm: sub uiref { my ($desc, $pr, @args) = @_; return("<a href=\"unref". &urlargs(($pr ? "pr=$pr" : ""), @args). "\"\>$desc</a>"); } This goes at the end of titleexpand: } elsif ($who eq 'unref') { return($Conf->sourcerootname.' unreferenced identifier search'); } This goes after the 'find' part in modeexpand: if ($who eq 'unref') { push(@mlist, "<b><i>unreferenced identifier search</i></b>"); } else { push(@mlist, &uiref("unreferenced identifier search", "")); } This goes after the 'find' part in varlinks: } elsif ($who eq 'unref') { $vallink = &uiref($val, $identifier, "$var=$val"); } ======================================================================== Here is my file called "unref". It is just a modification of the ident script, and it belongs in the same directory. #!/usr/bin/perl # unref -- Find unreferenced identifiers # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ###################################################################### use lib 'lib/'; use LXR::Common; use LXR::Config; use DB_File; my $sort_by_identifier = 0; sub unref { print("<form method=get action=\"unref\">\n"); foreach ($Conf->allvariables) { if ($Conf->variable($_) ne $Conf->vardefault($_)) { print("<input type=hidden name=\"",$_, "\" ", "value=\"", $Conf->variable($_), "\">\n"); } } print( "Pathname regexp: <input type=text name=\"pr\" ", "value=\"",$pathname_regexp,"\" size=60>\n", "<input type=submit value=\"Go get it\">\n", "</form>\n" ); tie(%xref, "DB_File", $Conf->dbdir."/xref", O_RDONLY, 0644, $DB_HASH) || &fatal("Could not open \"".$Conf->dbdir."/xref\""); tie(%fileidx, "DB_File", $Conf->dbdir."/fileidx", O_RDONLY, 0644, $DB_HASH) || &fatal("Could not open \"".$Conf->dbdir."/fileidx\""); if ($pathname_regexp) { while (($identifier, $data) = each(%xref)) { # Ignore C++ destructors, because they are implicitly # referenced by delete() if ($identifier =~ /^~/) { next; } @refs = split(/\t/, $data); unless (@refs) { next; } @filtered_refs = grep(/^R/, @refs); if (int(@filtered_refs) > 2) { next; } foreach (@filtered_refs) { if (/^R(.+):([\d,]+)/) { $fnam = $fileidx{$1}; @fpos = split(/,/, $2); unless ($fnam =~ /$pathname_regexp/) { next; } # ignore definitions in .h files if ($fnam =~ /\.h$|\._h$/) { next; } if ($#fpos == 0) { if ($sort_by_identifier) { $unref_ident{$identifier} = &fileref( "$fnam, line $fpos[0]", "/$fnam", $fpos[0] ); } else { $unref_ident{ &fileref( "$fnam, line $fpos[0]", "/$fnam", $fpos[0] ) } = $identifier; } } } } } untie(%fileidx); untie(%xref); @keylist = keys(%unref_ident); print("<h1>Unreferenced identifiers (", $#keylist, ")</h1>\n"); print("<table>\n"); if ($sort_by_identifier) { print("<tr><th>Identifier</th><th>File</th></tr>\n"); foreach $identifier (sort(@keylist)) { print( "<tr><td>", &idref($identifier, $identifier), "</td><td>", $unref_ident{$identifier}, "</td></tr>\n" ); } } else { print("<tr><th>File</th><th>Identifier</th></tr>\n"); foreach $fref (sort(@keylist)) { print( "<tr><td>", $fref, "</td><td>", &idref($unref_ident{$fref}, $unref_ident{$fref}), "</td></tr>\n" ); } } print("</table>\n"); } else { print( "<p>You must specify a pathname regexp.", " Use '.' to match all files." ); } } ($Conf, $HTTP, $Path) = &init; $pathname_regexp = $HTTP->{'param'}->{'pr'}; &makeheader('unref'); &unref; &makefooter('unref'); |
From: Michael O'C. <moc...@ya...> - 2005-01-06 15:25:57
|
Hi, Apologies if this has been asked before. I'm wondering if anyone's tried using lxr on a codebase to find unreferenced / unused functions. I tried this on a C / C++ codebase I've been working in and found it very useful as part of a clean-up exercise. It depends on relational database storage of the lxr data (mysql in my case). A query counting the number of instances of each symbol in the indexes table can be compared with an equivalent query on the useages table, where the latter count is <= the former the symbol can be considered unreferenced (i.e. not used). It's not foolproof, depends on indexing of all dependent code, and won't find all instances (due to the regex nature of lxr's symbol finding / storage), nonetheless I've found it an easy an quick way of finding unused code. I guess there are better ways of achieving the same result, I'd like to hear what people think. Thanks, Michael __________________________________ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 |
From: Malcolm B. <ma...@br...> - 2005-01-05 17:04:14
|
Hi, DgS...@ao... wrote: > I wanted to view some code via LXR and give out some html links to > it, but it doesn't show up. > What do you see when you point the browser at your LXR installation? > This is strange because I can update the module via CVS, so the code > seems to be there. Have you rebuilt the LXR indexes since adding new files via CVS? > Are you just hiding some code in LXR, or did the sysinfo code move or > something? I'm not hiding anything :-) LXR can be configured to ignore certain directories - typically the CVS directories are hidden. > This is where the module is in CVS: > > clientdev/sdks/aol/sysinfo Sorry, that path doesn't mean anything to me (or I suspect anyone outside AOL). Is this an internal installation of LXR setup by someone else? If so, I suggest contacting them first, before asking the mailing list for help. Cheers, Malcolm |
From: <DgS...@ao...> - 2005-01-03 22:08:17
|
I wanted to view some code via LXR and give out some html links to it, but it doesn't show up. This is strange because I can update the module via CVS, so the code seems to be there. Are you just hiding some code in LXR, or did the sysinfo code move or something? This is where the module is in CVS: clientdev/sdks/aol/sysinfo Thanks, Doug |
From: SourceForge.net <no...@so...> - 2004-12-04 01:25:34
|
Support Requests item #1078727, was opened at 2004-12-04 01:25 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390118&aid=1078727&group_id=27350 Category: Configuration Group: None Status: Open Priority: 5 Submitted By: kitten (kitten69) Assigned to: Nobody/Anonymous (nobody) Summary: Fatal: Could not open "/usr/local/lxr/lxr/ident/xref Initial Comment: Having difficulties indexing more than one tree. Added several sourceroot declarations to lxr.conf like the example states and it doesn't seem to like the format. sourceroot: /var/tmp/lxr_build/sourcecode works just fine but when I add another and change them to the multiple format sourceroot: sourcecode /var/tmp/lxr_build/sourcecode the site tells me Fatal: Could not open "/usr/local/lxr/lxr/ident/xref What did I not configure properly? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390118&aid=1078727&group_id=27350 |
From: Kevin K. <kna...@cs...> - 2004-11-17 22:36:47
|
FYI, at https://www.cm.aol.com/repos/host/lxr/find, trying to search for a file named soaf_drain.c, I get this: Search for files by name. You can use regular expressions and ignore case. You can find a file by specifying any part of the name, including part of the directory path. Find file: Case-sensitive ** Warning: Could not open swish file list [/HEAD.index.files] |
From: Marian-Nicolae V. I. <mar...@no...> - 2004-10-27 21:09:22
|
Hello, I am trying to use LXR 0.9.3 whith swish-e and PostgreSQL - and I'm afraid that there are some errors in your files: 1) in "initdb-postgres" you are using a table called lxr_usage, hoewever in the Perl scripts (and in initdb-mysql) the table is called lxr_useage (with an extra "e") 2) when running genxref I encounter several errors: <<<<<<<<<<<<<<<< DBD::Pg::st execute failed: ERROR: current transaction is aborted, commands ignored until end of transaction block at /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/LXR/Index/Postgres.pm line 207. DBD::Pg::st fetchrow_array failed: no statement executing at /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/LXR/Index/Postgres.pm line 208. DBD::Pg::st execute failed: ERROR: current transaction is aborted, commands ignored until end of transaction block at /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/LXR/Index/Postgres.pm line 210. DBD::Pg::st fetchrow_array failed: no statement executing at /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/LXR/Index/Postgres.pm line 211. <<<<<<<<<<<<<<<< Do you have an idea of what should be done? Regards, M. Ion |
From: Mesalic, A. <ad...@mc...> - 2004-09-14 20:40:07
|
hi =20 I got LXR to create a proper directory structure but I when I click on .c or .h files I can not see the content of those files. =20 phlease help thx |
From: Niranjan K. B <nk...@Bh...> - 2004-06-11 08:54:22
|
Hi I have installed lxr on my system (Using Mozilla Brower, Apache Web Server). Everything got installed correctly. Problem is header files in the source code are getting hyperlinked. Can anyone have any solution for this problem. I edited the lxr.conf file as follows: *********** lxr.conf ****************** > # Define the base url for the LXR files. > baseurl: http://localhost/http/ > > # These are the templates for the HTML heading, directory listing and > # footer, respectively. > htmlhead: /opt/lxr/http/template-head > htmltail: /opt/lxr/http/template-tail > htmldir: /opt/lxr/http/template-dir > > # The source is here. > sourceroot: /opt/lxr/source/linux-2.4/ > srcrootname: Linux > > # "#include <foo.h>" is mapped to this directory (in the LXR source > # tree) > incprefix: /opt/lxr/source/linux-2.4/include/ > > # The database files go here. > dbdir: /opt/lxr/source/ > > # Glimpse can be found here. > glimpsebin: /local/bin/glimpse > > # The power of regexps. This is pretty Linux-specific, but quite > # useful. Tinker with it and see what it does. (How's that for > # documentation?) > map: /include/asm[^\/]*/ /include/asm-$a/ > map: /arch/[^\/]+/ /arch/$a/ > ********************************** > Thanks, Niranjan Kr B |
From: Niranjan K. B <nk...@Bh...> - 2004-06-10 13:20:22
|
Hi I have installed lxr on my system (Using Mozilla Brower, Apache Web Server). Everything got installed correctly. Problem is header files in the source code are getting hyperlinked. Can anyone have any solution for my problem. I edited the lxr.conf file as follows: *********** lxr.conf ****************** # Define the base url for the LXR files. baseurl: http://localhost/http/ # These are the templates for the HTML heading, directory listing and # footer, respectively. htmlhead: /opt/lxr/http/template-head htmltail: /opt/lxr/http/template-tail htmldir: /opt/lxr/http/template-dir # The source is here. sourceroot: /opt/lxr/source/linux-2.4/ srcrootname: Linux # "#include <foo.h>" is mapped to this directory (in the LXR source # tree) incprefix: /opt/lxr/source/linux-2.4/include/ # The database files go here. dbdir: /opt/lxr/source/ # Glimpse can be found here. glimpsebin: /local/bin/glimpse # The power of regexps. This is pretty Linux-specific, but quite # useful. Tinker with it and see what it does. (How's that for # documentation?) map: /include/asm[^\/]*/ /include/asm-$a/ map: /arch/[^\/]+/ /arch/$a/ ********************************** Thanks, Niranjan Kr B |
From: Malcolm B. <ma...@br...> - 2004-05-07 11:08:07
|
ctd...@ya... wrote: > What's the proper way to re-index a subset of files that have changed > in a tree? > > When I just re-run genxref, the updated files don't seem to get their > identitifer line numbers updated. > Unfortunately the short answer is that there's no way to do this - the whole tree has to be re-indexed. The slightly longer answer is that there were some patches/suggestions for how to make this work floating around (check out the lxr project page on SourceForge), but I don't think any of them were working. If you do just re-run genxref, the result is that both the new & old positions of the identifiers will show up in the results. What I've done previously was to let these errors accumulate during the week (when there wasn't time to fully re-index) and then do a complete clean re-index over the weekend. If anyone wants to finish off the work on making incremental indexing work then I'd be glad to merge the patches. Cheers, Malcolm |
From: <ctd...@ya...> - 2004-05-06 21:41:07
|
Hi, What's the proper way to re-index a subset of files that have changed in a tree? When I just re-run genxref, the updated files don't seem to get their identitifer line numbers updated. thx, Chris |
From: john_li <jo...@ma...> - 2004-02-17 13:36:13
|
dHdvIGlzc3VlcyBvZiBMWFJIZWxsbywNCg0KSSBhbSBhIGJlZ2lubmVyIG9mIExYUi4gSSBpbnN0 YWxsIGl0IGFuZCBpdCB3b3JrcywgYnV0IEkgaGF2ZSB0d28gcHJvYmxlbXMuDQoNCjEuIEF0IGZp cnN0LCBpdCBhbHdheXMgdGVsbCBtZSAiVGVtcGxhdGUgaHRtbC1oZWFkLmh0bWwgZG9lcyBub3Qg ZXhpc3QiLiBJIGhhdmUgdG8gZGVidWcgaXQgYW5kIG1vZGlmeSBDb21tb24ucG0sIGZ1bmN0aW9u ICJtYWtlaGVhZGVyIiBhbmQgIm1ha2Vmb290ZXIiLiBBbmQgYWxzbyBmdW5jICJwcmludGRpciIg aW4gc291cmNlLg0Kb2xkIGNvZGU6DQogICAgICAgIGlmKG9wZW4oVEVNUEwsICRjb25maWctPnZh bHVlKCR0bXBsbmFtZSkpKSAgICAgICAgICAgICANCm5ldyBjb2RlOg0KICAgICAgICBteSAkZmls ZXN0cjsNCiAgICAgICAgJGZpbGVzdHIgPSAiL3Vzci9sb2NhbC9seHIiIC4gJGNvbmZpZy0+dmFs dWUoJHRtcGxuYW1lKTsNCiAgICAgICAgaWYob3BlbihURU1QTCwgJGZpbGVzdHIpICANCg0KSXMg aXQgYSBidWcgb3IgSSBtaXNzIGFueSBpbnN0YWxsYXRpb24gc3RlcD8NCg0KMi4gV2hlcmUgaSBj YW4gZ2V0IGludGVybmFsLWdvcGhlci1tZW51LCBpbnRlcm5hbC1nb3BoZXItdGV4dCwgYW5kIGlu dGVybmFsLWdvcGhlci11bmtub3duLCB3aGljaCBhcmUgbm90IGluIExYUiBwYWNrYWdlLg0KDQpU aGFua3MsDQpKb2huDQo= |
From: Neil B. <ne...@eh...> - 2004-02-16 15:28:57
|
Hi, I've been a long time user of LXR 0.3. Recently we decided to give 0.9.x a crack since there were some nice new features we wanted to take advantage of. Our CVS repository is rather large - occupying some 40GB of space and 8 years of development work. The problem we are having is that genxref dies with an out of memory error after running for about a day. The hardware isn't too shabby; Compaq Proliant ML370 1GHz with 1GB of RAM. After these errors I upped the amount of swap from 2 to 10GB and tried again. Same result. Last time I saw the output from top the process was eating 4GB of memory. Can anyone suggest any reason why this would be taking this amount of RAM, or another way to generate the indexes so that it doesn't fall over? I thought of indexing a top level directory at a time of the repository but then it wouldn't cross reference between the directories would it? Thanks, Neil. |
From: Chugunov A. <chu...@me...> - 2004-02-11 13:55:59
|
Hi When perfoming free text search in v14.3 (Search for = 5000) I always get --- Unexpected value 2 returned by Glimpse --- Does not happen in v15 can you please help? Regards, Alexis Chugunov, phone: +7 (8312) 788865 ext. 4240# ESN 727-3265-4240# External phone: +7 517 210 4240 |
From: Jeffrey R. <je...@no...> - 2004-01-07 19:47:51
|
Hi: I did a search in app_common for identifier TC_FPGA_PORT_15_INPUT. The output included what look like system variables under "References": Declarations: /equinox_ne_sync/product/mx/sources/sync_ref_prot_hardware.c, line 152 macro (un)definition /equinox_ne_sync/product/mx/sources/sync_ref_prot_hardware.c, line 152 macro (un)definition References: $uses{ $fileref } References: /equinox_ne_sync/product/mx/sources/sync_ref_prot_hardware.c, line 152 /equinox_ne_sync/product/mx/sources/sync_ref_prot_hardware.c, line 1079 /equinox_ne_sync/product/mx/sources/sync_ref_prot_hardware.c, line 1372 /equinox_ne_sync/product/mx/sources/sync_ref_prot_hardware.c, line 152 /equinox_ne_sync/product/mx/sources/sync_ref_prot_hardware.c, line 1079 /equinox_ne_sync/product/mx/sources/sync_ref_prot_hardware.c, line 1372 What's up? ---------------------------------------------------------------------- Jeffrey Robertson :QT51 CAR ESN 39-53334 je...@no... |
From: Chang-Ki Y. <ki...@sa...> - 2003-11-24 10:12:18
|
Hello, I have got a following error when I run source in apache. Help me... [Mon Nov 24 19:05:10 2003] fatal: LXR::Config, line 82: Insecure dependency in eval while running setgid at /usr/lib/perl5/site_perl/LXR/Config.pm line 82, <CONFIG> chunk 1. [@INC lib /usr/local/apache/perl /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl /usr/local/apache/ /usr/local/apache/lib/perl $0 /usr/local/lxr/source Thanks, Chang-Ki Yoon Samsung Electronics, Co., LTD |
From: SourceForge.net <no...@so...> - 2003-10-20 02:56:07
|
Support Requests item #826572, was opened at 2003-10-20 08:46 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390118&aid=826572&group_id=27350 Category: Install Problem Group: None Status: Open Priority: 5 Submitted By: Itar Hsu (hsuitar) Assigned to: Nobody/Anonymous (nobody) Summary: Trouble of installation (path invalid) Initial Comment: Excuse me: I have some problem of my LXR (lxr-0.3.1). I followed the installation instructions from http://lxr.linux.no/New-INSTALL, install LXR at /var/www/html/lxr (/var/www/html is my Web Document root), add to httpd.conf: <Directory /var/www/html/lxr> Options All AllowOverride All </Directory> there is the content of /var/www/html/lxr: drwxr-xr-x 2 apache apache 4096 Oct 20 01:38 bin drwxr-xr-x 3 apache apache 4096 Oct 20 07:54 http drwxr-xr-x 4 apache apache 4096 Oct 20 07:26 source [lxr.conf] variable: v, Version, [/var/www/html/lxr/source/versions], [/var/www/html/lxr/source/defversion] variable: a, Architecture, (i386, alpha, m68k, mips, ppc, sparc, sparc64) baseurl: http:/hpc.ee.ntu.edu.tw/lxr/http htmlhead: /var/www/html/lxr/http/template-head htmltail: /var/www/html/lxr/http/template-tail htmldir: /var/www/html/lxr/http/template-dir sourceroot: /var/www/html/lxr/source/preempt srcrootname: test incprefix: /include dbdir: /var/www/html/lxr/source/ glimpsebin: map: /include/asm[^\/]*/ /include/asm-$a/ map: /arch/[^\/]+/ /arch/$a/ and restart httpd. at /var/www/html/lxr/source, executed: ../bin/genxref preempt I use IE to connect http://hpcee.ntu.edu.tw/lxr/http/source, but some path maybe wrong, for example, check.c links to lxr/source/check.c, but when I clicked it, there's no this file. but when I connect http://hpc.ee.ntu.edu.tw/lxr/http/source/check.c, it appeared right content. All of the links include "Cross Reference", "test" and icons is wrong, etc. and I tried to fixed lxr.conf but still wrong. Could somebody help me to solve this problem? And how to write the lxr.conf if I want use multi- sourceroot? I found a HOWTO doc at http://www.ibiblio.org/gleblanc/webtools- howto/index.html#lxr, an example like this: sourceroot: gnome /cvsroot/gnome/tree1 sourceroot: othertree /cvsroot/gnome/othertree but my web page told me that my lxr.conf format was invalid. Thanks for your help! HsuItar, Department of Electrical Engineering, National Taiwan University ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390118&aid=826572&group_id=27350 |
From: adhiraaz <adh...@in...> - 2003-09-24 14:47:27
|
Hi, While installing lxr on my machine I got following error massage after the genxref : "Can't locate DB_File.pm in @INC (@INC contains: lib/ /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/share/lxr/bin/genxref line 31. BEGIN failed--compilation aborted at /usr/share/lxr/bin/genxref line 31." There really was not any file named DB_File.pm, what do I do now? Thanks in advance, Adhiraj Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com Bid for Air Tickets on Air Sahara Flights at Prices Lower Than Before. Just log on to http://airsahara.indiatimes.com and Bid Now ! |
From: Malcolm B. <ma...@br...> - 2003-08-25 04:10:55
|
Hi Amit, Amit Gud wrote: > Hello, > > I've been trying to use lxr for a while but without success. I did > whatever I can to get the lxr's perl code show up in the Mozilla > properly. It shows the perl text source code instead of HTML. Whereas > my other perl scripts are working fine. I've made the .htaccess file > in the lxr directory. If the source code is showing up, then Apache isn't treating the file as a CGI script. You can check /var/log/apache/error_log (or wherever your apache logs live) to see if it gives you any hints as to why. My guess would be that your httpd.conf file isn't allowing the file to be executed. You need to make sure you have permission to execute scripts in that directory. Also make sure that you have given the script execute permission to the user that Apache is running as e.g. you need a permission of rwxr-xr-x (755). > When i run the source file on the prompt as 'perl source' it gives > error 'fatal: file not found sourcelxr.conf' That's not surprising, since it needs some environment variables to know where to find the conf file. But it does show that the script will execute (the error is generated by the script at runtime). > Don't know what to do. Please help. It would be helpful when asking for help to say what version of LXR & platform you're using etc. Cheers, Malcolm |
From: Curran, D. <dc...@ti...> - 2003-08-24 00:26:08
|
Hi I'm having trouble getting LXR to work. Firstly, I'm not trying it on the Linux Kernel, but on some of my own code. However, I don't think that difference is the cause of the problem. I have followed the install instructions from http://lxr.linux.no/New-INSTALL. My perl didn't have a DB_File module, but I installed it with CPAN. I run genxref like this: # cd /var/www/html/lxr/source # /var/www/html/lxr/bin/genxref v-095 The genxref seems to run till completion. It creates the files: /var/www/html/lxr/source/fileidx 12288 bytes /var/www/html/lxr/source/xref 749568 bytes - All files/dir inside /var/www/html/lxr have apache:apache permissions - I access the source as follows (it an intranet address): http://madduck.mycomp.com/http/source/ BUT I just get a standard directory listing like apache would normally handle it. - I have placed a .htaccess file inside the /www/var/html/lxr/http - I added 'Cross Reference Stuff' to the only access.conf file I could find on my system: /etc/security/access.conf - I have restarted apache. - I am using Redhat 8.0 What log files can I look at to see why its not working ? Please help, I think that LXR for the kernel is an excellent resource, which would really help me with my own code too. Thank you for your time dom This is my lxr.conf: # Configuration file. # Define typed variable "v", read valueset from file. #variable: v, Version, [/var/www/html/lxr/source/versions], [/local/lxr/source/defversion] # Define typed variable "a". First value is default. #variable: a, Architecture, (i386, alpha, m68k, mips, ppc, sparc, sparc64) # Define the base url for the LXR files. baseurl: http://madduck.mycomp.com/lxr/http/ # These are the templates for the HTML heading, directory listing and # footer, respectively. htmlhead: /var/www/html/lxr/http/template-head htmltail: /var/www/html/lxr/http/template-tail htmldir: /var/www/html/lxr/http/template-dir # The source is here. sourceroot: /var/www/html/lxr/source/ srcrootname: MyCode # "#include <foo.h>" is mapped to this directory (in the LXR source # tree) incprefix: /include # The database files go here. dbdir: /var/www/html/lxr/source/ # Glimpse can be found here. #glimpsebin: /local/bin/glimpse # The power of regexps. This is pretty Linux-specific, but quite # useful. Tinker with it and see what it does. (How's that for # documentation?) map: /include/asm[^\/]*/ /include/asm-$a/ map: /arch/[^\/]+/ /arch/$a/ |
From: SourceForge.net <no...@so...> - 2003-08-08 17:42:54
|
Support Requests item #785512, was opened at 2003-08-08 17:42 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390118&aid=785512&group_id=27350 Category: None Group: None Status: Open Priority: 5 Submitted By: Mark Birch (mbir01) Assigned to: Nobody/Anonymous (nobody) Summary: genxref fails on specific file - 'SimpleParse' error Initial Comment: When running genxref on a CVS repository I have, I get the following error: Can't call method "getline" on an undefined value at lib/LXR/SimpleParse.pm line 99. The previous line states the file it was currently referencing with a number that I have been unable to determine the significance of that value. When starting genxref again, the same file is not flagged with the error but another file is with a similar type of error. (I assume this file is skipped because its determined that the file has already been referenced.) At times, I can see the previous file before the error was the last file genxref stopped at. I have installed LXR 0.9.2 and swish-e 2.2.3 and mySQL is being used as the database. I am approaching about 10 times where the genxref has errored and the swish index files have not been created. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390118&aid=785512&group_id=27350 |
From: Rick T. <te...@fn...> - 2003-07-18 17:51:20
|
Hi I've run into a problem with the search utility for the CDF code browser. I tried a freetext search on the string "decayBMeson" and ended up with no results. However, I find in the EvtGen package (EvtGen/src/EvtGenInterface.cc, line 33) the following line of code. 031 /* Constructor */ 032 EvtGenInterface::EvtGenInterface(EvtGen *generator, bool adjustCPAsymm, 033 bool verbose, bool decayBMeson, bool decayBBaryon, bool decayPromptCharm){ 034 _generator = generator; It seems to me that the search utility is not really working. Would you please look into this problem? Rick |