Error is

Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications

Solaris 10

This is perl 5, version 18, subversion 2 (v5.18.2) built for sun4-sola +ris-thread-multi-64

DBD::SQLite 1.42

gcc version 4.9.0 (GCC)

cpan DBD::SQLite throws:

Running install for module 'DBD::SQLite' Checksum for /app/appname/develop/source/cpan/authors/id/I/IS/ISHIGAKI +/DBD-SQLite-1.42.tar.gz ok Configuring I/IS/ISHIGAKI/DBD-SQLite-1.42.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Using DBI 1.631 (for perl 5.018002 on sun4-solaris-thread-multi-64) in +stalled in /app/appname/perl/lib/site_perl/5.18.2/sun4-solaris-thread +-multi-64/auto/DBI/ Writing Makefile for DBD::SQLite Writing MYMETA.yml and MYMETA.json ISHIGAKI/DBD-SQLite-1.42.tar.gz /app/appname/perl/bin/perl Makefile.PL -- OK Running make for I/IS/ISHIGAKI/DBD-SQLite-1.42.tar.gz cp lib/DBD/SQLite.pm blib/lib/DBD/SQLite.pm cp lib/DBD/SQLite/Cookbook.pod blib/lib/DBD/SQLite/Cookbook.pod /app/appname/perl/bin/perl -p -e "s/~DRIVER~/SQLite/g" /app/appname/pe +rl/lib/site_perl/5.18.2/sun4-solaris-thread-multi-64/auto/DBI/Driver. +xst > SQLite.xsi /app/appname/perl/bin/perl /app/appname/perl/lib/5.18.2/ExtUtils/xsubp +p -typemap /app/appname/perl/lib/5.18.2/ExtUtils/typemap -typemap ty +pemap SQLite.xs > SQLite.xsc && mv SQLite.xsc SQLite.c /app/appname/sfw/bin/gcc -c -I. -I/app/appname/perl/lib/site_perl/5.1 +8.2/sun4-solaris-thread-multi-64/auto/DBI -D_REENTRANT -mcpu=v9 -m64 +-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE - +D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O -O2 -DVERSION=\"1.4 +2\" -DXS_VERSION=\"1.42\" -fPIC "-I/app/appname/perl/lib/5.18.2/sun4- +solaris-thread-multi-64/CORE" -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_F +TS3_PARENTHESIS -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_COLUMN_METADATA + -DSQLITE_ENABLE_STAT3 -DNDEBUG=1 -DHAVE_USLEEP=1 SQLite.c /app/appname/sfw/bin/gcc -c -I. -I/app/appname/perl/lib/site_perl/5.1 +8.2/sun4-solaris-thread-multi-64/auto/DBI -D_REENTRANT -mcpu=v9 -m64 +-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE - +D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O -O2 -DVERSION=\"1.4 +2\" -DXS_VERSION=\"1.42\" -fPIC "-I/app/appname/perl/lib/5.18.2/sun4- +solaris-thread-multi-64/CORE" -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_F +TS3_PARENTHESIS -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_COLUMN_METADATA + -DSQLITE_ENABLE_STAT3 -DNDEBUG=1 -DHAVE_USLEEP=1 dbdimp.c /app/appname/sfw/bin/gcc -c -I. -I/app/appname/perl/lib/site_perl/5.1 +8.2/sun4-solaris-thread-multi-64/auto/DBI -D_REENTRANT -mcpu=v9 -m64 +-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE - +D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O -O2 -DVERSION=\"1.4 +2\" -DXS_VERSION=\"1.42\" -fPIC "-I/app/appname/perl/lib/5.18.2/sun4- +solaris-thread-multi-64/CORE" -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_F +TS3_PARENTHESIS -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_COLUMN_METADATA + -DSQLITE_ENABLE_STAT3 -DNDEBUG=1 -DHAVE_USLEEP=1 sqlite3.c In file included from /usr/include/stdio.h:21:0, from sqlite3.c:8253: /app/appname/sfw/lib/gcc/sparc-sun-solaris2.10/4.9.0/include-fixed/sys +/feature_tests.h:350:2: error: #error "Compiler or options invalid; U +NIX 03 and POSIX.1-2001 applications require the use of c99" #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applica +tions \ ^ gmake: *** [sqlite3.o] Error 1 ISHIGAKI/DBD-SQLite-1.42.tar.gz /usr/sfw/bin/gmake -- NOT OK Failed during this command: ISHIGAKI/DBD-SQLite-1.42.tar.gz : make NO

How can I resolve this?


In reply to DBD::SQLite install fails by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.