small issue in port databases/p5-GDBM

Matthias Apitz guru at unixarea.de
Tue Jan 5 08:06:00 UTC 2016


Hello,

I need the above port to build a small Ddbm database and it seems that
there is a small issue; it can be triggered with this perl code:


#!/usr/local/bin/perl
require GDBM_File;

which gives:

$ ./test.pl 
String found where operator expected at
/usr/local/lib/perl5/site_perl/mach/5.20/GDBM_File.pm line 74, near
"XSLoader::load 'GDBM_File'"
	(Do you need to predeclare XSLoader::load?)
syntax error at /usr/local/lib/perl5/site_perl/mach/5.20/GDBM_File.pm
line 75, near "XSLoader::load 'GDBM_File'"
Compilation failed in require at ./test.pl line 3.

the mentioned line in GDBM_File.pm is:

XSLoader::load 'GDBM_File', $VERSION;

If one adds a line of

use XSLoader;
XSLoader::load 'GDBM_File', $VERSION;

it works fine.

I'm not a perl expert (and not subscribed to perl at FreeBSD.org)
and don't know if this is the right fix. Should I file a bugzilla issue?
This is with ports from head of December, 30.

	matthias

-- 
Matthias Apitz, ✉ guru at unixarea.de, 🌐 http://www.unixarea.de/  ☎ +49-176-38902045


More information about the freebsd-questions mailing list