Ticket #2942 (new defect)

Opened 15 months ago

Last modified 7 months ago

minor perl warnings, O_CREAT, O_EXCL, O_RDWR redefined

Reported by: anonymous Owned by: decoder
Priority: trivial Milestone: Development Release Version 3.5
Component: Logging Version: 3.5.1
Keywords: Cc: vklimovs@…

Description

When SA is run in debug mode, following warnings are seen in the output:

Subroutine FuzzyOcr::O_CREAT redefined at /usr/lib64/perl5/5.8.8/Exporter.pm line 65.

at /usr/lib64/perl5/5.8.8/x86_64-linux/POSIX.pm line 19

Subroutine FuzzyOcr::O_EXCL redefined at /usr/lib64/perl5/5.8.8/Exporter.pm line 65.

at /usr/lib64/perl5/5.8.8/x86_64-linux/POSIX.pm line 19

Subroutine FuzzyOcr::O_RDWR redefined at /usr/lib64/perl5/5.8.8/Exporter.pm line 65.

at /usr/lib64/perl5/5.8.8/x86_64-linux/POSIX.pm line 19

This is trivially fixed by changing use POSIX; to use POSIX qw(SIGTERM); in FuzzyOcr?.pm

Note: See TracTickets for help on using tickets.