[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.
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:
PrintTagList(GetFileType());
Do you know, where can be the problem?
[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:
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.
[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?
[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.