Hello, I am using ca65html and I keep getting some error message, regardless of which file I try to handle: $ ca65html --colorize --htmldir /tmp/www/cbmrom.html/c64/ --linelabels --linenumbers -cvttabs source/c64/c64.a65 [...] Use of uninitialized value in sprintf at /usr/bin/ca65html line 579, <INPUT> line XXXX. [...] The line numbers XXXX vary, of course. I also tried with a "minimalistic" command line ("ca65html source/c64/c64.a65"), the problem remains. I don't know much about perl. Nevertheless, I tried to add the output of the different variables to find out which one is the culprit. I did the following before the offending line: $ diff -u cc65-snapshot-2.11.9.20070329/src/ca65html/ca65html /tmp/www/cbmrom/ca65html --- cc65-snapshot-2.11.9.20070329/src/ca65html/ca65html 2007-02-10 19:22:43.000000000 +0100 +++ /tmp/www/cbmrom/ca65html 2007-05-20 10:23:21.000000000 +0200 @@ -576,6 +576,11 @@ $Label = $Labels{$OutName}{$Id}; # Print the label with a tag +printf STDERR "label = %s\n", $Label; +printf STDERR "1 = %s\n", $1; +printf STDERR "2 = %s\n", $2; +printf STDERR "3 = %s\n", $3; +printf STDERR "4 = %s\n", $4; $OutLine .= sprintf ("<a name=\"%s\">%s%s</a>%s%s", $Label, $1, $2, $3, $4); } With the help of this, I found out that $4 is not defined, as the error message from above duplicates in the line where $4 is output. I don't know how to debug this further, as I do not know enough about perl. BTW: I am almost sure it worked before, this is what baffles me. I call ca65html from an automated script whenever the sources change. Unfortunately, they did not change for quite some time, so, I cannot tell for sure when it broke. Regards, Spiro. -- Spiro R. Trikaliotis http://opencbm.sf.net/ http://www.trikaliotis.net/ http://www.viceteam.org/ ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sun May 20 10:36:43 2007
This archive was generated by hypermail 2.1.8 : 2007-05-20 10:36:46 CEST