gnump3d-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnump3d-devel] "Use of uninitialized value"


From: Zsolt Szabo
Subject: [Gnump3d-devel] "Use of uninitialized value"
Date: Wed, 25 May 2005 12:19:52 +0200
User-agent: Opera M2/8.0 (Linux, build 1095)

Hi all!

When I run gnump3d-index [or when cron runs it], it produces the following errors:

[quote from console]
anoftc:~# gnump3d-index
Use of uninitialized value in numeric eq (==) at /usr/bin/gnump3d-index line 405. Use of uninitialized value in numeric eq (==) at /usr/bin/gnump3d-index line 405. Use of uninitialized value in numeric eq (==) at /usr/bin/gnump3d-index line 405.
anoftc:~#
[quote ends]

Line 405 in /usr/bin/gnump3d-index is the following:
 if( $cache{$file}->{"MTIME"} == $fstat[9] ) {

Inserting the following line seems to solve the problem:

$cache{$file}->{"MTIME"}="0" unless defined
$cache{$file}->{"MTIME"};

So the cache-check IF would look like this:

[quote from source from line 404]
        if( exists( $cache{$file} ) ) {
$cache{$file}->{"MTIME"}="0" unless defined $cache{$file}->{"MTIME"};
          if( $cache{$file}->{"MTIME"} == $fstat[9] ) {
            $skip = 1;
          }
        } else {
          # No cache, build entry manually.
        }
[quote ends]

[quote from console]
anoftc:~# gnump3d-index
anoftc:~#
[quote ends]

I use DEBIAN SID, and the packaged [apt-get
installed] GNUMP3d:
anoftc:~# gnump3d --version
gnump3d v2.9.3 [CVS Info: gnump3d2 1.93 (2005/
04/01)] on Perl v5.008004

I hope this helps.
If not, then sorry :)

Byez
ZS




reply via email to

[Prev in Thread] Current Thread [Next in Thread]