ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:53:51 AM

Title: compilation errors
Post by: Archive on May 12, 2010, 08:53:51 AM
[Originally posted by bruclik on 2005-11-16 14:34:53-08]

I have problem with a few last releases which report compilation error after run.
Code:
bruclik@brucus:~> exiftool
Not enough arguments for Image::ExifTool::GetFileType at /usr/bin/exiftool line 131, near "()"
Execution of /usr/bin/exiftool aborted due to compilation errors.
the line 131 is this:
Code:
PrintTagList(GetFileType());

Do you know, where can be the problem?
Title: Re: compilation errors
Post by: Archive on May 12, 2010, 08:53:51 AM
[Originally posted by exiftool on 2005-11-16 16:22:32-08]

Thanks for reporting this problem.

What version of ExifTool are you using (exiftool -ver)?  And what version of Perl (perl -v)?

In the current ExifTool version (5.76), the function definition for GetFileType (in lib/Image/ExifTool.pm) is:

Code:
   sub GetFileType(;$)

Which declares one optional argument.  This shouldn't cause a problem if called with zero arguments.

I don't understand why this would produce an error, but if it needs to be fixed if it does.
Title: Re: compilation errors
Post by: Archive on May 12, 2010, 08:53:51 AM
[Originally posted by exiftool on 2005-11-16 16:34:24-08]

Ah.  I just looked back through the old versions of ExifTool.  I changed the GetFileType function definition at version 5.71 to make the argument optional.  So you could potentially see this problem if you are using a newer version of the 'exiftool' script with a pre-5.71 version of the libraries.

Could this be the case?
Title: Re: compilation errors
Post by: Archive on May 12, 2010, 08:53:51 AM
[Originally posted by bruclik on 2005-11-17 22:47:58-08]

Sorry for invalid report, you are right, it caused the old version of library.