Subject: | _XOPEN_SOURCE define breaks compilation on FreeBSD systems |
On FreeBSD compilation of the module is not possible. See http://www.cpantesters.org/cpan/report/52d2e0d2-b3e1-11e5-afaf-d313fdd2507e for a sample report. The problem is the same as this one: https://lists.freebsd.org/pipermail/freebsd-hackers/2009-November/030056.html
If I remove the line
$self->{CCFLAGS} .= ' -D_XOPEN_SOURCE=700';
from Makefile.PL, then compilation succeeds on a FreeBSD 10.1 system (and tests also run fine).
So probably you should exclude this line for $^O eq 'freebsd', or just include it for systems which really require it (linux? others?).
Regards,
Slaven