Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: DBD::SQLite install fails

by mje (Curate)
on Jun 05, 2014 at 08:31 UTC ( #1088789=note: print w/ replies, xml ) Need Help??


in reply to Re^2: DBD::SQLite install fails
in thread DBD::SQLite install fails

Download DBD::SQLite from the CPAN. Untar it, change into the created dir, run perl Makefile.PL then edit the resulting Makefile. Look for line starting CCFLAGS= (be careful it will be in a comment at the start of the file and it is not that one). Add --std=c99 to the end of that line. Type make, make test, make install.


Comment on Re^3: DBD::SQLite install fails
Re^4: DBD::SQLite install fails
by Anonymous Monk on Jun 05, 2014 at 09:23 UTC
    I got further, but not too far:
    gmake 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 --std=c99 -D_REENTRANT -mcp +u=v9 -m64 -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFIL +E_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O -O2 -DVER +SION=\"1.42\" -DXS_VERSION=\"1.42\" -fPIC "-I/app/appname/perl/lib/5. +18.2/sun4-solaris-thread-multi-64/CORE" -DSQLITE_ENABLE_FTS4 -DSQLIT +E_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_COLUM +N_METADATA -DSQLITE_ENABLE_STAT3 -DNDEBUG=1 -DHAVE_USLEEP=1 SQLite.c In file included from SQLiteXS.h:11:0, from SQLite.xs:3: /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/perl.h: +2541:22: error: unknown type name 'off64_t' # define Off_t off64_t ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/perlio. +h:292:15: note: in expansion of macro 'Off_t' PERL_EXPORT_C Off_t PerlIO_tell(PerlIO *); ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/perl.h: +2541:22: error: unknown type name 'off64_t' # define Off_t off64_t ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/perlio. +h:295:41: note: in expansion of macro 'Off_t' PERL_EXPORT_C int PerlIO_seek(PerlIO *, Off_t, int); ^ In file included from /app/appname/perl/lib/5.18.2/sun4-solaris-thread +-multi-64/CORE/perl.h:38:0, from SQLiteXS.h:11, from SQLite.xs:3: /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/config. +h:2299:20: error: unknown type name 'sigjmp_buf' #define Sigjmp_buf sigjmp_buf ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/cop.h:3 +4:5: note: in expansion of macro 'Sigjmp_buf' Sigjmp_buf je_buf; /* only for use if !je_throw */ ^ In file included from SQLiteXS.h:11:0, from SQLite.xs:3: /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/perl.h: +2541:22: error: unknown type name 'off64_t' # define Off_t off64_t ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/proto.h +:936:47: note: in expansion of macro 'Off_t' PERL_CALLCONV bool Perl_do_seek(pTHX_ GV* gv, Off_t pos, int whence); ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/perl.h: +2541:22: error: unknown type name 'off64_t' # define Off_t off64_t ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/proto.h +:948:15: note: in expansion of macro 'Off_t' PERL_CALLCONV Off_t Perl_do_sysseek(pTHX_ GV* gv, Off_t pos, int when +ce) ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/perl.h: +2541:22: error: unknown type name 'off64_t' # define Off_t off64_t ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/proto.h +:948:51: note: in expansion of macro 'Off_t' PERL_CALLCONV Off_t Perl_do_sysseek(pTHX_ GV* gv, Off_t pos, int when +ce) ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/perl.h: +2541:22: error: unknown type name 'off64_t' # define Off_t off64_t ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/proto.h +:953:15: note: in expansion of macro 'Off_t' PERL_CALLCONV Off_t Perl_do_tell(pTHX_ GV* gv) ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/perl.h: +2541:22: error: unknown type name 'off64_t' # define Off_t off64_t ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/proto.h +:7884:53: note: in expansion of macro 'Off_t' PERL_CALLCONV int Perl_PerlIO_seek(pTHX_ PerlIO *f, Off_t offset, int + whence); ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/perl.h: +2541:22: error: unknown type name 'off64_t' # define Off_t off64_t ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/proto.h +:7897:15: note: in expansion of macro 'Off_t' PERL_CALLCONV Off_t Perl_PerlIO_tell(pTHX_ PerlIO *f); ^ gmake: *** [SQLite.o] Error 1

      Add -D_LARGEFILE64_SOURCE to CCFLAGS too.

        Now
        gmake Skip blib/lib/DBD/SQLite.pm (unchanged) Skip blib/lib/DBD/SQLite/Cookbook.pod (unchanged) /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 --std=c99 -D_REENTRANT -mcp +u=v9 -m64 -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFIL +E64_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE +_PUTENV -O -O2 -DVERSION=\"1.42\" -DXS_VERSION=\"1.42\" -fPIC "-I/a +pp/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE" -DSQLI +TE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_RTREE + -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_STAT3 -DNDEBUG=1 -DH +AVE_USLEEP=1 SQLite.c In file included from /app/appname/perl/lib/5.18.2/sun4-solaris-thread +-multi-64/CORE/perl.h:38:0, from SQLiteXS.h:11, from SQLite.xs:3: /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/config. +h:2299:20: error: unknown type name 'sigjmp_buf' #define Sigjmp_buf sigjmp_buf ^ /app/appname/perl/lib/5.18.2/sun4-solaris-thread-multi-64/CORE/cop.h:3 +4:5: note: in expansion of macro 'Sigjmp_buf' Sigjmp_buf je_buf; /* only for use if !je_throw */ ^ gmake: *** [SQLite.o] Error 1

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1088789]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-12-27 19:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls