Hi,

I'm trying to build DBI module and get following error during make
this is kind of odd because this has been done before on our other machines
and we didn't get this problem.
I have seem people get this kind of error before but I have never found a
disent solution to it.

Thank you for your help.  If I find the cause of the problem I'll post/email
a workaround.

# perl Makefile.PL
*** Note:
    The optional PlRPC-modules (RPC::PlServer etc) are not installed.
    If you want to use the DBD::Proxy driver and DBI::ProxyServer
    modules, then you'll need to install the RPC::PlServer, RPC::PlClient,
    Storable and Net::Daemon modules. The CPAN Bundle::DBI may help you.
    You can install them any time after installing the DBI.
    You do *not* need these modules for typical DBI usage.

Optional modules are available from any CPAN mirror, in particular
    http://www.perl.com/CPAN/modules/by-module
    http://www.perl.org/CPAN/modules/by-module
    ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module

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 
make: not found
# PATH=$PATH:/usr/local/bin
# export PATH
# make
gcc -c  -I/usr/local/include -O3    -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\"
-fPIC
-I/u01/app/oracle/product/9iAS/Apache/perl/lib/5.00503/sun4-solaris/CORE
-Wall -Wno-comment -DDBI_NO_THREADS Perl.c
Perl.xsi: In function `XS_DBD__Perl__dr_discon_all_':
Perl.xsi:38: `sv_yes' undeclared (first use in this function)
Perl.xsi:38: (Each undeclared identifier is reported only once
Perl.xsi:38: for each function it appears in.)
Perl.xsi:38: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__db__login':
Perl.xsi:63: `sv_yes' undeclared (first use in this function)
Perl.xsi:63: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__db_commit':
Perl.xsi:75: `sv_yes' undeclared (first use in this function)
Perl.xsi:75: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__db_rollback':
Perl.xsi:84: `sv_yes' undeclared (first use in this function)
Perl.xsi:84: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__db_disconnect':
Perl.xsi:108: `sv_yes' undeclared (first use in this function)
Perl.xsi:108: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__db_STORE':
Perl.xsi:121: `sv_yes' undeclared (first use in this function)
Perl.xsi:124: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__db_DESTROY':
Perl.xsi:143: `sv_yes' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st__prepare':
Perl.xsi:197: `na' undeclared (first use in this function)
Perl.xsi:197: warning: left-hand operand of comma expression has no effect
Perl.xsi:197: warning: left-hand operand of comma expression has no effect
Perl.xsi:198: `sv_yes' undeclared (first use in this function)
Perl.xsi:198: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st_bind_param':
Perl.xsi:233: `na' undeclared (first use in this function)
Perl.xsi:233: warning: left-hand operand of comma expression has no effect
Perl.xsi:233: warning: left-hand operand of comma expression has no effect
Perl.xsi:239: `sv_yes' undeclared (first use in this function)
Perl.xsi:239: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st_bind_param_inout':
Perl.xsi:269: `na' undeclared (first use in this function)
Perl.xsi:269: warning: left-hand operand of comma expression has no effect
Perl.xsi:269: warning: left-hand operand of comma expression has no effect
Perl.xsi:274: `sv_yes' undeclared (first use in this function)
Perl.xsi:274: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st_fetchrow_arrayref':
Perl.xsi:328: `sv_undef' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st_finish':
Perl.xsi:369: `sv_yes' undeclared (first use in this function)
Perl.xsi:369: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st_blob_read':
Perl.xsi:388: `sv_undef' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st_STORE':
Perl.xsi:401: `sv_yes' undeclared (first use in this function)
Perl.xsi:404: `sv_no' undeclared (first use in this function)
Perl.xsi: In function `XS_DBD__Perl__st_DESTROY':
Perl.xsi:429: `sv_yes' undeclared (first use in this function)
make: *** [Perl.o] Error 1
# gcc -c  -I/usr/local/include -O3    -DVERSION=\"1.15\"
-DXS_VERSION=\"1.15\" -fPIC
-I/u01/app/oracle/product/9iAS/Apache/perl/lib/5.00503/sun4-solaris/CORE
-Wall -Wno-comment -DDBI_NO_THREADS DBI.c
gcc: DBI.c: No such file or directory
gcc: No input files


My perl is 

$ perl -V 
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=solaris, osvers=2.6, archname=sun4-solaris
    uname='sunos 5.6 generic_105181-14 sun4u sparc sunw,ultra-60 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='gcc', optimize=' -O3', gccversion=
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Built under solaris
  Compiled at Sep 20 2000 10:55:44
  %ENV:
 
PERL5LIB="/u01/app/oracle/product/9iAS/Apache/perl/lib/5.00503:/u01/app/orac
le/product/9iAS/Apache/perl/lib/site_perl/5.005"
  @INC:
    /u01/app/oracle/product/9iAS/Apache/perl/lib/5.00503/sun4-solaris
    /u01/app/oracle/product/9iAS/Apache/perl/lib/5.00503
 
/u01/app/oracle/product/9iAS/Apache/perl/lib/site_perl/5.005/sun4-solaris
    /u01/app/oracle/product/9iAS/Apache/perl/lib/site_perl/5.005
    /vobs/pdc_perl/bin/Solaris/Opt/lib/5.00503/sun4-solaris
    /vobs/pdc_perl/bin/Solaris/Opt/lib/5.00503
    /vobs/pdc_perl/bin/Solaris/Opt/lib/site_perl/5.005/sun4-solaris
    /vobs/pdc_perl/bin/Solaris/Opt/lib/site_perl/5.005
    .
$



Anton Kokarski
Web Application Developer
EPRI http://www.epri.com
work  +1 650 855 2805
cell    +1 408 431 1330
mailto:[EMAIL PROTECTED]

Reply via email to