FAQ
Unable to make DBI-1.35 on Solaris using perl-5.6.1

SunOS ux-dev1 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-Enterprise

Situation:

Grab DBI from CPAN.
gzip -dc blah | cpio -idv;
cd DBI-1.35;
perl Makefile.Pl PREFIX=~/sandbox/Basket-Case/lib;
make;

------------------------------------------------------------------------

Makemaker seems happy enough, writes the Makefile,
make starts out happy but invariably ends up wanting
me to rerun the make commnand (see below, item 1).

README, Google and the last few hundred email's I have sitting
around inbox havn't gotten me anywhere.

Any suggestions?

-< Item 1 >-------------------------------------------------------------

$ make
/usr/local/perl5.6/bin/perl -I/usr/local/perl5.6/lib/5.6.1/sun4-solaris
-I/usr/local/perl5.6/lib/5.6.1 -MExtUtils::Command -e mkpath blib/lib/DBI
rm -f blib/lib/DBI/Changes.pm
cp Changes blib/lib/DBI/Changes.pm
Makefile out-of-date with respect to
Cleaning current config before rebuilding Makefile...
make -f Makefile.old clean > /dev/null 2>&1 || /bin/sh -c true
/usr/local/perl5.6/bin/perl "-I/usr/local/perl5.6/lib/5.6.1/sun4-solaris"
"-I/usr/local/perl5.6/lib/5.6.1" Makefile.PL
"PREFIX=/home/slembark/sandbox/Basket-Case/lib/"
Creating extra DBI::PurePerl test: t/zz_01basics_pp.t
Creating extra DBI::PurePerl test: t/zz_02dbidrv_pp.t
Creating extra DBI::PurePerl test: t/zz_03hleak_pp.t
Creating extra DBI::PurePerl test: t/zz_04mods_pp.t
Creating extra DBI::PurePerl test: t/zz_05thrclone_pp.t
Creating extra DBI::PurePerl test: t/zz_06attrs_pp.t
Creating extra DBI::PurePerl test: t/zz_07kids_pp.t
Creating extra DBI::PurePerl test: t/zz_08keeperr_pp.t
Creating extra DBI::PurePerl test: t/zz_10examp_pp.t
Creating extra DBI::PurePerl test: t/zz_15array_pp.t
Creating extra DBI::PurePerl test: t/zz_20meta_pp.t
Creating extra DBI::PurePerl test: t/zz_30subclass_pp.t
Creating extra DBI::PurePerl test: t/zz_40profile_pp.t
Creating extra DBI::PurePerl test: t/zz_41prof_dump_pp.t
Creating extra DBI::PurePerl test: t/zz_42prof_data_pp.t
Creating extra DBI::PurePerl test: t/zz_60preparse_pp.t
Creating extra DBI::PurePerl test: t/zz_80proxy_pp.t
Checking if your kit is complete...
Looks good
Writing Makefile for DBI

Remember to actually *read* the README file!
Use 'make' to build the software (dmake or nmake on Windows).
Then 'make test' to execute self tests.
Then 'make install' to install the DBI and then delete this working
directory before unpacking and building any DBD::* drivers.

==> Your Makefile has been rebuilt. <==
==> Please rerun the make command. <==
false
*** Error code 255
make: Fatal error: Command failed for target `Makefile'

------------------------------------------------------------------------

$ perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=solaris, osvers=2.6, archname=sun4-solaris
uname='sunos ux-relmgt1 5.6 generic_105181-23 sun4u sparc
sunw,ultra-enterprise '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='CC', ccflags ='-I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
optimize='-O',
cppflags='-I/usr/local/include'
ccversion='Sun WorkShop 6 update 1 C 5.2 2000/09/11', gccversion='',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='CC', ldflags =' -L/usr/local/lib
-L/prod_opt/SUNWspro_6.1/SUNWspro/WS6U1/lib '
libpth=/usr/local/lib /prod_opt/SUNWspro_6.1/SUNWspro/WS6U1/lib
/usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-KPIC', lddlflags='-G -L/usr/local/lib
-L/prod_opt/SUNWspro_6.1/SUNWspro/WS6U1/lib'


Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under solaris
Compiled at May 30 2001 10:24:40
%ENV:
PERLLIB="/data/NT_common/is/RelMgmt/pvcsTools"
@INC:
/data/NT_common/is/RelMgmt/pvcsTools
/usr/local/perl5.6/lib/5.6.1/sun4-solaris
/usr/local/perl5.6/lib/5.6.1
/usr/local/perl5.6/lib/site_perl/5.6.1/sun4-solaris
/usr/local/perl5.6/lib/site_perl/5.6.1
/usr/local/perl5.6/lib/site_perl
.


--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647
+1 773 252 1080

Search Discussions

  • Tim Bunce at May 13, 2003 at 11:33 pm

    On Tue, May 13, 2003 at 04:57:33PM -0500, Steven Lembark wrote:
    Unable to make DBI-1.35 on Solaris using perl-5.6.1

    SunOS ux-dev1 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-Enterprise

    Situation:

    Grab DBI from CPAN.
    gzip -dc blah | cpio -idv;
    cpio? Odd. I'd use tar.
    cd DBI-1.35;
    perl Makefile.Pl PREFIX=~/sandbox/Basket-Case/lib;
    make;

    ------------------------------------------------------------------------

    Makemaker seems happy enough, writes the Makefile,
    make starts out happy but invariably ends up wanting
    me to rerun the make commnand (see below, item 1).

    README, Google and the last few hundred email's I have sitting
    around inbox havn't gotten me anywhere.

    Any suggestions?
    Forgot to mention, make is /usr/ccs/bin/make; likely verison-1.1. Says:
    Makefile out-of-date with respect to
    Sure seems like a make bug. Try gnu make. Else run make with debug
    type options to try to work out what has triggered the
    "Makefile out-of-date with respect to <nothing>"
    behaviour.

    Tim.
  • Tim Bunce at May 14, 2003 at 8:55 am

    On Wed, May 14, 2003 at 12:33:15AM +0100, Tim Bunce wrote:
    On Tue, May 13, 2003 at 04:57:33PM -0500, Steven Lembark wrote:

    Says:
    Makefile out-of-date with respect to
    Sure seems like a make bug. Try gnu make. Else run make with debug
    type options to try to work out what has triggered the
    "Makefile out-of-date with respect to <nothing>"
    behaviour.
    Even if gnu make works, I'd still really appreciate some debugging
    so I can fix it for others. Thanks.

    Tim.
  • Steven Lembark at May 14, 2003 at 6:25 pm

    Sure seems like a make bug. Try gnu make. Else run make with debug
    type options to try to work out what has triggered the
    "Makefile out-of-date with respect to <nothing>"
    behaviour.
    Built GNU Make 3.80. Tried it again.

    Makemaker seems happy, build blows up. May be due to using
    Sun's compiler:

    $ CC -V
    CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-11 2002/10/31

    Checkign what perl was built with:

    cc='CC', ccflags ='-I/usr/local/include -D_LARGEFILE_SOURCE
    -D_FILE_OFFSET_BITS=64',

    it looks like I'm stuck with Sun's toys.

    Anyone dealt with this particular bit of fun before?



    $ perl Makefile.PL PREFIX=blah

    Creating extra DBI::PurePerl test: t/zz_01basics_pp.t
    Creating extra DBI::PurePerl test: t/zz_02dbidrv_pp.t
    Creating extra DBI::PurePerl test: t/zz_03hleak_pp.t
    Creating extra DBI::PurePerl test: t/zz_04mods_pp.t
    Creating extra DBI::PurePerl test: t/zz_05thrclone_pp.t
    Creating extra DBI::PurePerl test: t/zz_06attrs_pp.t
    Creating extra DBI::PurePerl test: t/zz_07kids_pp.t
    Creating extra DBI::PurePerl test: t/zz_08keeperr_pp.t
    Creating extra DBI::PurePerl test: t/zz_10examp_pp.t
    Creating extra DBI::PurePerl test: t/zz_15array_pp.t
    Creating extra DBI::PurePerl test: t/zz_20meta_pp.t
    Creating extra DBI::PurePerl test: t/zz_30subclass_pp.t
    Creating extra DBI::PurePerl test: t/zz_40profile_pp.t
    Creating extra DBI::PurePerl test: t/zz_41prof_dump_pp.t
    Creating extra DBI::PurePerl test: t/zz_42prof_data_pp.t
    Creating extra DBI::PurePerl test: t/zz_60preparse_pp.t
    Creating extra DBI::PurePerl test: t/zz_80proxy_pp.t
    Writing Makefile for DBI

    Remember to actually *read* the README file!
    Use 'make' to build the software (dmake or nmake on Windows).
    Then 'make test' to execute self tests.
    Then 'make install' to install the DBI and then delete this working
    directory before unpacking and building any DBD::* drivers.


    $ make -wk;

    make: Entering directory `/home/slembark/sandbox/Basket-Case/DBI-1.35'
    /usr/local/perl5.6/bin/perl -I/usr/local/perl5.6/lib/5.6.1/sun4-solaris
    -I/usr/local/perl5.6/lib/5.6.1 -MExtUtils::
    Command -e mkpath blib/lib/DBI
    rm -f blib/lib/DBI/Changes.pm
    cp Changes blib/lib/DBI/Changes.pm
    cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h
    cp lib/DBI/ProfileDumper.pm blib/lib/DBI/ProfileDumper.pm
    cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
    cp lib/DBI/DBD/Metadata.pm blib/lib/DBI/DBD/Metadata.pm
    cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
    cp dbipport.h blib/arch/auto/DBI/dbipport.h
    cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm
    cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
    cp lib/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm
    cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm
    cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
    cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
    cp DBI.pm blib/lib/DBI.pm
    cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
    cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
    cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
    cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
    cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
    cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
    cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
    cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm
    cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
    cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
    cp lib/DBI/ProfileDumper/Apache.pm blib/lib/DBI/ProfileDumper/Apache.pm
    cp Driver.xst blib/arch/auto/DBI/Driver.xst
    cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
    cp lib/DBI/Const/GetInfo/ODBC.pm blib/lib/DBI/Const/GetInfo/ODBC.pm
    /usr/local/perl5.6/bin/perl -p -e "s/~DRIVER~/Perl/g" <
    blib/arch/auto/DBI/Driver.xst > Perl.xsi
    /usr/local/perl5.6/bin/perl -I/usr/local/perl5.6/lib/5.6.1/sun4-solaris
    -I/usr/local/perl5.6/lib/5.6.1 /usr/local/p
    erl5.6/lib/5.6.1/ExtUtils/xsubpp -typemap
    /usr/local/perl5.6/lib/5.6.1/ExtUtils/typemap Perl.xs > Perl.xsc && mv P
    erl.xsc Perl.c
    CC -c -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
    -DVERSION=\"1.35\" -DXS_VERSION=\"1.35\
    " -KPIC -I/usr/local/perl5.6/lib/5.6.1/sun4-solaris/CORE -DDBI_NO_THREADS
    Perl.c
    "Perl.xsi", line 89: Warning: String literal converted to char* in
    initialization.
    "Perl.xsi", line 90: Warning: String literal converted to char* in
    initialization.
    "Perl.xsi", line 114: Warning: String literal converted to char* in formal
    argument methname in call to dbixst_boun
    ce_method(char*, int).
    "Perl.xsi", line 123: Warning: String literal converted to char* in formal
    argument methname in call to dbixst_boun
    ce_method(char*, int).
    "Perl.xsi", line 158: Warning: String literal converted to char* in formal
    argument methname in call to dbixst_boun
    ce_method(char*, int).
    "Perl.xsi", line 252: Warning: String literal converted to char* in
    initialization.
    "Perl.xsi", line 491: Warning: String literal converted to char* in formal
    argument methname in call to dbixst_boun
    ce_method(char*, int).
    "Perl.c", line 835: Warning: String literal converted to char* in
    initialization.
    "Perl.c", line 837: Warning: String literal converted to char* in
    assignment.
    "Perl.c", line 837: Warning: String literal converted to char* in
    assignment.
    "Perl.c", line 851: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 852: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 853: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 855: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 860: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 861: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 862: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 863: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 864: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 865: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 866: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 870: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 871: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 872: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 873: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 875: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 877: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 879: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 881: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 882: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 883: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 884: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 885: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 887: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.c", line 889: Warning: String literal converted to char* in formal
    argument name in call to Perl_newXS(char*,
    void(*)(cv*), char*).
    "Perl.xsi", line 19: Warning: String literal converted to char* in formal
    argument name.
    36 Warning(s) detected.
    /usr/local/perl5.6/bin/perl -I/usr/local/perl5.6/lib/5.6.1/sun4-solaris
    -I/usr/local/perl5.6/lib/5.6.1 /usr/local/p
    erl5.6/lib/5.6.1/ExtUtils/xsubpp -typemap
    /usr/local/perl5.6/lib/5.6.1/ExtUtils/typemap DBI.xs > DBI.xsc && mv DBI
    .xsc DBI.c
    CC -c -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
    -DVERSION=\"1.35\" -DXS_VERSION=\"1.35\" -KPIC
    -I/usr/local/perl5.6/lib/5.6.1/sun4-solaris/CORE -DDBI_NO_THREADS DBI.c
    "DBI.xs", line 136: Warning: String literal converted to char* in
    initialization.
    "DBI.xs", line 196: Warning: String literal converted to char* in
    initialization.
    "DBI.xs", line 235: Warning: String literal converted to char* in formal
    argument name.
    "DBI.xs", line 272: Warning: String literal converted to char* in
    initialization.
    "DBI.xs", line 273: Warning: String literal converted to char* in
    initialization.
    "DBI.xs", line 274: Warning: String literal converted to char* in
    initialization.
    "DBI.xs", line 275: Warning: String literal converted to char* in
    initialization.
    "DBI.xs", line 276: Warning: String literal converted to char* in
    initialization.
    "DBI.xs", line 282: Error: maxlen is not defined.
    "DBI.xs", line 294: Warning: The variable sv has not yet been assigned a
    value.
    "DBI.xs", line 295: Warning: String literal converted to char* in
    initialization.
    "DBI.xs", line 318: Warning: String literal converted to char* in
    initialization.
    "DBI.xs", line 319: Warning: String literal converted to char* in formal
    argument little in call to Perl_sv_insert(sv*, unsigned, unsigned, char*,
    unsigned).
    "DBI.xs", line 327: Warning: String literal converted to char* in
    assignment.
    "DBI.xs", line 367: Warning: The variable maxlen has not yet been assigned
    a value.
    "DBI.xs", line 397: Error: Use ";" to terminate declarations.
    "DBI.xs", line 399: Error: imp_xxh is not defined.
    "DBI.xs", line 399: Error: errval is not defined.
    "DBI.xs", line 400: Error: errstr is not defined.
    "DBI.xs", line 400: Error: errstr is not defined.
    "DBI.xs", line 401: Error: errstr is not defined.
    "DBI.xs", line 401: Error: imp_xxh is not defined.
    "DBI.xs", line 401: Error: imp_xxh is not defined.
    "DBI.xs", line 401: Error: imp_xxh is not defined.
    "DBI.xs", line 401: Error: imp_xxh is not defined.
    "DBI.xs", line 402: Error: imp_xxh is not defined.
    "DBI.xs", line 402: Error: errstr is not defined.
    "DBI.xs", line 403: Error: state is not defined.
    "DBI.xs", line 403: Error: state is not defined.
    "DBI.xs", line 404: Error: state is not defined.
    "DBI.xs", line 406: Error: imp_xxh is not defined.
    "DBI.xs", line 406: Error: state is not defined.
    "DBI.xs", line 409: Error: imp_xxh is not defined.
    "DBI.xs", line 409: Error: imp_xxh is not defined.
    "DBI.xs", line 409: Error: imp_xxh is not defined.
    "DBI.xs", line 416: Error: stash is not defined.
    "DBI.xs", line 423: Error: stash is not defined.
    "DBI.xs", line 424: Warning: The variable uplevel has not yet been
    assigned a value.
    "DBI.xs", line 431: Warning: The variable item has not yet been assigned a
    value.
    "DBI.xs", line 438: Error: Use ";" to terminate declarations.
    "DBI.xs", line 439: Error: type is not defined.
    Compilation aborted, too many Error messages.
    make: *** [DBI.o] Error 1
    Running Mkbootstrap for DBI ()
    chmod 644 DBI.bs
    cp DBI.bs blib/arch/auto/DBI/DBI.bs
    chmod 644 blib/arch/auto/DBI/DBI.bs
    /usr/local/perl5.6/bin/perl -Iblib/arch -Iblib/lib
    -I/usr/local/perl5.6/lib/5.6.1/sun4-solaris -I/usr/local/perl5.6/lib/5.6.1
    dbiproxy.PL dbiproxy
    Extracted dbiproxy from dbiproxy.PL with variable substitutions.
    cp dbiproxy blib/script/dbiproxy
    /usr/local/perl5.6/bin/perl -I/usr/local/perl5.6/lib/5.6.1/sun4-solaris
    -I/usr/local/perl5.6/lib/5.6.1 -MExtUtils::MakeMaker -e "MY->fixin(shift)"
    blib/script/dbiproxy
    /usr/local/perl5.6/bin/perl -Iblib/arch -Iblib/lib
    -I/usr/local/perl5.6/lib/5.6.1/sun4-solaris -I/usr/local/perl5.6/lib/5.6.1
    dbiprof.PL dbiprof
    Extracted dbiprof from dbiprof.PL with variable substitutions.
    cp dbiprof blib/script/dbiprof
    /usr/local/perl5.6/bin/perl -I/usr/local/perl5.6/lib/5.6.1/sun4-solaris
    -I/usr/local/perl5.6/lib/5.6.1 -MExtUtils::MakeMaker -e "MY->fixin(shift)"
    blib/script/dbiprof
    make: Target `all' not remade because of errors.




    --
    Steven Lembark 2930 W. Palmer
    Workhorse Computing Chicago, IL 60647
    +1 773 252 1080
  • Tim Bunce at May 14, 2003 at 9:42 pm

    On Wed, May 14, 2003 at 01:07:39PM -0500, Steven Lembark wrote:

    $ CC -V
    CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-11 2002/10/31

    "Perl.xsi", line 89: Warning: String literal converted to char* in initialization.
    Oh joy. Is there an option to turn off that warning?
    "DBI.xs", line 282: Error: maxlen is not defined.
    "DBI.xs", line 397: Error: Use ";" to terminate declarations.
    Umm, looks like it's getting upset by the pre-ansi-c parameter declaration style.

    I guess you'll be sending me a patch to change the remaining functions
    with pre-ansi-c parameter declarations into ansi-c style...

    And it would be most gratefully received! Thanks Steven.

    Tim.
  • Steven Lembark at May 14, 2003 at 10:22 pm
    281 char *
    282 neatsvpv(sv, maxlen) /* return a tidy ascii value, for debugging only
    */
    283 SV * sv;
    284 STRLEN maxlen;
    285 {
    286 dPERINTERP;
    287 STRLEN len;
    288 SV *nsv = Nullsv;
    289 SV *infosv = Nullsv;
    290 char *v;

    luvly... Am I expected to #ifdef these for the pre-ansi-C-
    compilers or just hack them into shape for the modern world?


    --
    Steven Lembark 2930 W. Palmer
    Workhorse Computing Chicago, IL 60647
    +1 773 252 1080
  • Tim Bunce at May 15, 2003 at 2:00 pm
    You'd gone too far and started converting the XS subs.
    I've generated a patch from your version and hacked it into shape.
    Thanks.

    Tim.
    On Wed, May 14, 2003 at 07:03:35PM -0500, Steven Lembark wrote:

    Getting:
    Error: Cannot parse function definition from 'looks_like_number' in DBI.xs,
    line 3157

    What the hell *should* this look like in the source?

    void
    looks_like_number
    (
    PPCODE:
    int i;
    EXTEND(SP, items);
    for(i=0; i < items ; ++i) {
    SV *sv = ST(i);
    if (!SvOK(sv) || (SvPOK(sv) && SvCUR(sv)==0))
    PUSHs(&sv_undef);
    else if ( looks_like_number(sv) )
    PUSHs(&sv_yes);
    else
    PUSHs(&sv_no);
    }


    The rest of it's fixed (see attached).

    --
    Steven Lembark 2930 W. Palmer
    Workhorse Computing Chicago, IL 60647
    +1 773 252 1080

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdbi-users @
categoriesperl
postedMay 13, '03 at 10:15p
activeMay 15, '03 at 2:00p
posts7
users2
websitedbi.perl.org

2 users in discussion

Tim Bunce: 4 posts Steven Lembark: 3 posts

People

Translate

site design / logo © 2022 Grokbase