Subject: | Compilation error on FreeBSD 10 |
While trying to build the module on a FreeBSD 10.3 system:
...
g++ -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"0.05\" -DXS_VERSION=\"0.05\" -DPIC -fPIC "-I/usr/perl5.22.2p/lib/5.22.2/amd64-freebsd/CORE" Audiere_perl.c
In file included from Audiere_perl.xs:3:0:
/usr/local/include/audiere.h: In function 'void audiere::SplitString(std::vector<std::basic_string<char> >&, const char*, char)':
/usr/local/include/audiere.h:1148:42: error: 'strchr' was not declared in this scope
const char* next = strchr(in, delim);
^
/usr/local/include/audiere.h: In function 'void audiere::GetSupportedFileFormats(std::vector<audiere::FileFormatDesc>&)':
/usr/local/include/audiere.h:1177:40: error: 'strchr' was not declared in this scope
const char* colon = strchr(d, ':');
^
/usr/local/include/audiere.h: In function 'void audiere::EnumerateCDDevices(std::vector<std::basic_string<char> >&)':
/usr/local/include/audiere.h:1535:20: error: 'strlen' was not declared in this scope
d += strlen(d) + 1;
^
*** Error code 1
...