Subject: | HTTP::XSCookies 0.000010 does not build on Solaris/illumos |
Date: | Wed, 19 Jul 2017 02:13:05 -0600 |
To: | bug-HTTP-XSCookies [...] rt.cpan.org |
From: | Bryan Horstmann-Allen <bryan.horstmann-allen [...] joyent.com> |
This seems to break installing dancer2.
Happy to provide build resources if you'd like to support this platform.
Using pkgsrc 2017Q1 perl, gcc, etc.
# perl -v
This is perl 5, version 24, subversion 1 (v5.24.1) built for x86_64-solaris-thread-multi-64
# gcc -v
Using built-in specs.
COLLECT_GCC=/opt/local/gcc49/bin/gcc
COLLECT_LTO_WRAPPER=/opt/local/gcc49/libexec/gcc/x86_64-sun-solaris2.11/4.9.4/lto-wrapper
Target: x86_64-sun-solaris2.11
Configured with: ../gcc-4.9.4/configure --enable-libssp --enable-languages='c obj-c++ objc go fortran c++' --enable-shared --enable-long-long --with-local-prefix=/opt/local --enable-threads=posix --with-boot-ldflags='-static-libstdc++ -static-libgcc -Wl,-R/opt/local/lib ' --disable-nls --with-gxx-include-dir=/opt/local/gcc49/include/c++/ --without-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as --with-as=/opt/local/bin/gas --prefix=/opt/local/gcc49 --build=x86_64-sun-solaris2.11 --host=x86_64-sun-solaris2.11 --infodir=/opt/local/gcc49/info --mandir=/opt/local/gcc49/man
Thread model: posix
gcc version 4.9.4 (GCC)
# make
cp lib/HTTP/XSCookies.pm blib/lib/HTTP/XSCookies.pm
Running Mkbootstrap for HTTP::XSCookies ()
chmod 644 "XSCookies.bs"
"/opt/local/bin/perl" "/opt/local/lib/perl5/5.24.0/ExtUtils/xsubpp" -typemap "/opt/local/lib/perl5/5.24.0/ExtUtils/typemap" baker.xs > baker.xsc && mv baker.xsc baker.c
gcc -c -I. -D_REENTRANT -pipe -O2 -pipe -O2 -pthread -I/opt/local/include -I/usr/include -fwrapv -fno-strict-aliasing -fstack-protector-strong -I/usr/local/include -I/opt/local/include -m64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DPERL_USE_SAFE_PUTENV -Wall -std=c89 -D_XOPEN_SOURCE=700 -pipe -O2 -pipe -O2 -pthread -I/opt/local/include -I/usr/include -DVERSION=\"0.000010\" -DXS_VERSION=\"0.000010\" -fPIC "-I/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE" baker.c
In file included from /usr/include/sys/types.h:35:0,
from /opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/perl.h:689,
from baker.xs:3:
/usr/include/sys/feature_tests.h:400:2: error: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99"
#error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications \
^
In file included from baker.xs:3:0:
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/perl.h:2717:22: error: unknown type name 'off64_t'
# define Off_t off64_t
^
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/perlio.h:248:15: note: in expansion of macro 'Off_t'
PERL_CALLCONV Off_t PerlIO_tell(PerlIO *);
^
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/perl.h:2717:22: error: unknown type name 'off64_t'
# define Off_t off64_t
^
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/perlio.h:251:41: note: in expansion of macro 'Off_t'
PERL_CALLCONV int PerlIO_seek(PerlIO *, Off_t, int);
^
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/perl.h:2717:22: error: unknown type name 'off64_t'
# define Off_t off64_t
^
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/proto.h:741:47: note: in expansion of macro 'Off_t'
PERL_CALLCONV bool Perl_do_seek(pTHX_ GV* gv, Off_t pos, int whence);
^
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/perl.h:2717:22: error: unknown type name 'off64_t'
# define Off_t off64_t
^
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/proto.h:748:15: note: in expansion of macro 'Off_t'
PERL_CALLCONV Off_t Perl_do_sysseek(pTHX_ GV* gv, Off_t pos, int whence);
^
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/perl.h:2717:22: error: unknown type name 'off64_t'
# define Off_t off64_t
^
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/proto.h:748:51: note: in expansion of macro 'Off_t'
PERL_CALLCONV Off_t Perl_do_sysseek(pTHX_ GV* gv, Off_t pos, int whence);
^
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/perl.h:2717:22: error: unknown type name 'off64_t'
# define Off_t off64_t
^
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/proto.h:751:15: note: in expansion of macro 'Off_t'
PERL_CALLCONV Off_t Perl_do_tell(pTHX_ GV* gv)
^
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/perl.h:2717:22: error: unknown type name 'off64_t'
# define Off_t off64_t
^
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/proto.h:5673:53: note: in expansion of macro 'Off_t'
PERL_CALLCONV int Perl_PerlIO_seek(pTHX_ PerlIO *f, Off_t offset, int whence);
^
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/perl.h:2717:22: error: unknown type name 'off64_t'
# define Off_t off64_t
^
/opt/local/lib/perl5/5.24.0/x86_64-solaris-thread-multi-64/CORE/proto.h:5686:15: note: in expansion of macro 'Off_t'
PERL_CALLCONV Off_t Perl_PerlIO_tell(pTHX_ PerlIO *f);
^
Makefile:352: recipe for target 'baker.o' failed
make: *** [baker.o] Error 1:
Cheers.
--
Bryan Horstmann-Allen
Cloud Deployment Manager
bdha@joyent.com
Joyent, Inc.