Skip Menu |

This queue is for tickets about the HTTP-XSCookies CPAN distribution.

Report information
The Basics
Id: 122538
Status: open
Priority: 0/
Queue: HTTP-XSCookies

People
Owner: Nobody in particular
Requestors: bdha [...] joyent.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.
Subject: Re: [rt.cpan.org #122538] HTTP::XSCookies 0.000010 does not build on Solaris/illumos
Date: Wed, 19 Jul 2017 11:27:58 +0200
To: bug-HTTP-XSCookies [...] rt.cpan.org
From: Gonzalo Diethelm <gonzalo.diethelm [...] gmail.com>
Hey, thanks for that report. I am not sure how to solve this, other than turning C99 on for Solaris only, which is what this patch attempts to do (assuming the Perl platform name is "solaris"). Can you test it and let me know? Cheers, Gonzo On Wed, Jul 19, 2017 at 10:13 AM, bdha@joyent.com via RT < bug-HTTP-XSCookies@rt.cpan.org> wrote: Show quoted text
> Wed Jul 19 04:13:40 2017: Request 122538 was acted upon. > Transaction: Ticket created by bdha@joyent.com > Queue: HTTP-XSCookies > Subject: HTTP::XSCookies 0.000010 does not build on Solaris/illumos > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: bdha@joyent.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=122538 > > > > 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. >
-- Gonzalo Diethelm gonzalo.diethelm@gmail.com

Message body is not shown because sender requested not to inline it.

I can confirm that the patch resolves the C99 warning. The off64_t errors remain but I'm not entirely sure that's an xscookies problem. I'm looking into it and will report back. -- sungo Build Ops Joyent, Inc. sungo@joyent.com
RT-Send-CC: gonzalo.diethelm [...] gmail.com
The off64_t errors are not caused by a problem in this module. They're being caused by an issue in our build environment that is affecting other XS modules as well. When I fix the local issue, XSCookies builds successfully and passes tests. I think it's safe to close out this issue.