Problem of installing DBI packages
Problem of installing DBI packages
am 17.02.2007 13:23:24 von Anupam
------=_NextPart_7500169173080812232492
Content-type: text/plain; charset=iso-8859-1
Hi,
my curent configuration of HP Unix system is as below:
gcc version-4.1.1
hp unix version 11
perl version 5.8.0
When i do >>perl makefile.PL, i don't get any error.
bplita3 /tmp/dowload_for_comverse/DBI-1.13 >> perl Makefile.PL
*** You are using a perl with experimental threading enabled!
*** You should be aware that using multiple threads is unstable
*** are should NOT be done in production environments.
DBI thread mutex protection is enabled
*** 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
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.
But when i do make i get the following error.
bplita3 /tmp/dowload_for_comverse/DBI-1.13 >> make
cp DBI.pm blib/lib/DBI.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
cp lib/DBD/ADO.pm blib/lib/DBD/ADO.pm
cp lib/DBI/Shell.pm blib/lib/DBI/Shell.pm
cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
cp lib/DBI/Format.pm blib/lib/DBI/Format.pm
cp Driver.xst blib/arch/auto/DBI/Driver.xst
cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
/opt/perl/bin/perl -p -e "s/~DRIVER~/Perl/g" < blib/arch/auto/DBI/Driver.xst
> Perl.xsi
/opt/perl/bin/perl /opt/perl/lib/5.8.0/ExtUtils/xsubpp -typemap
/opt/perl/lib/5.8.0/ExtUtils/typemap Perl.xs > Perl.xsc && mv Perl.xsc
Perl.c
gcc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"1.13\" -DXS_VERSION=\"1.13\" -fPIC
"-I/opt/perl/lib/5.8.0/IA64.ARCHREV_0-thread-multi/CORE" -Wall -Wno-comment
Perl.c
In file included from
/opt/perl/lib/5.8.0/IA64.ARCHREV_0-thread-multi/CORE/perl.h: 681,
from DBIXS.h:19,
from Perl.xs:1:
/usr/include/sys/socket.h:535: error: static declaration of 'sendfile'
follows non-static declaration
/usr/include/sys/socket.h:506: error: previous declaration of 'sendfile' was
here
/usr/include/sys/socket.h:536: error: static declaration of 'sendpath'
follows non-static declaration
/usr/include/sys/socket.h:508: error: previous declaration of 'sendpath' was
here
In file included from Perl.xs:1:
DBIXS.h:403:1: warning: "DBIS" redefined
DBIXS.h:13:1: warning: this is the location of the previous definition
*** Error exit code 1
Stop.
Iam unable to solve this problem.Please help regarding this!!!!
"Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human,
Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u
Going......"
Thanx & Regards
Anupam Sarkar
Software Developer
Baysquare Technologies
Plot No. 66,Street No. 13
MIDC,Andheri(East)
Mumbai 400093
India
Phone:022-28254266
Mobile:9892233493
------=_NextPart_7500169173080812232492--
Re: Problem of installing DBI packages
am 17.02.2007 23:43:49 von jonathan.leffler
------=_Part_13851_31767125.1171752229552
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On 2/17/07, anupam@baysquare.com wrote:
>
> Hi,
> my curent configuration of HP Unix system is as below:
> gcc version-4.1.1
> hp unix version 11
> perl version 5.8.0
At a rough guess, your Perl was built with an older version of GCC than
4.1.1.
You can look at the 'perl -V' output to see which version was used.
Either rebuild Perl (but upgrade to 5.8.8) with your current compiler or get
the version of the compiler used to build the Perl you have. Chances are it
was GCC 3.x that was used; the chances are moderate that a later 3.x version
of GCC will do.
When i do >>perl makefile.PL, i don't get any error.
> bplita3 /tmp/dowload_for_comverse/DBI-1.13 >> perl Makefile.PL
> *** You are using a perl with experimental threading enabled!
> *** You should be aware that using multiple threads is unstable
> *** are should NOT be done in production environments.
> DBI thread mutex protection is enabled
> *** 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
> 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.
> But when i do make i get the following error.
> bplita3 /tmp/dowload_for_comverse/DBI-1.13 >> make
> cp DBI.pm blib/lib/DBI.pm
> cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
> cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
> cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
> cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
> cp lib/DBD/ADO.pm blib/lib/DBD/ADO.pm
> cp lib/DBI/Shell.pm blib/lib/DBI/Shell.pm
> cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
> cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
> cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
> cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
> cp lib/DBI/Format.pm blib/lib/DBI/Format.pm
> cp Driver.xst blib/arch/auto/DBI/Driver.xst
> cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
> cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
> cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
> cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
> cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
> /opt/perl/bin/perl -p -e "s/~DRIVER~/Perl/g" <
> blib/arch/auto/DBI/Driver.xst
> > Perl.xsi
> /opt/perl/bin/perl /opt/perl/lib/5.8.0/ExtUtils/xsubpp -typemap
> /opt/perl/lib/5.8.0/ExtUtils/typemap Perl.xs > Perl.xsc && mv Perl.xsc
> Perl.c
> gcc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC
> -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -DVERSION=\"1.13\" -DXS_VERSION=\"1.13\" -fPIC
> "-I/opt/perl/lib/5.8.0/IA64.ARCHREV_0-thread-multi/CORE" -Wall
> -Wno-comment
> Perl.c
> In file included from
> /opt/perl/lib/5.8.0/IA64.ARCHREV_0-thread-multi/CORE/perl.h: 681,
> from DBIXS.h:19,
> from Perl.xs:1:
> /usr/include/sys/socket.h:535: error: static declaration of 'sendfile'
> follows non-static declaration
> /usr/include/sys/socket.h:506: error: previous declaration of 'sendfile'
> was
> here
> /usr/include/sys/socket.h:536: error: static declaration of 'sendpath'
> follows non-static declaration
> /usr/include/sys/socket.h:508: error: previous declaration of 'sendpath'
> was
> here
> In file included from Perl.xs:1:
> DBIXS.h:403:1: warning: "DBIS" redefined
> DBIXS.h:13:1: warning: this is the location of the previous definition
> *** Error exit code 1
> Stop.
>
> Iam unable to solve this problem.Please help regarding this!!!!
> "Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human,
> Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u
> Going......"
> Thanx & Regards
> Anupam Sarkar
> Software Developer
> Baysquare Technologies
> Plot No. 66,Street No. 13
> MIDC,Andheri(East)
> Mumbai 400093
> India
> Phone:022-28254266
> Mobile:9892233493
>
--
Jonathan Leffler #include
Guardian of DBD::Informix - v2005.02 - http://dbi.perl.org
"I don't suffer from insanity - I enjoy every minute of it."
------=_Part_13851_31767125.1171752229552--
Re: Problem of installing DBI packages
am 20.02.2007 23:31:14 von jonathan.leffler
------=_Part_48773_32515515.1172010674277
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On 2/20/07, anupam@baysquare.com wrote:
>
> Hi jonathan,
Dear Anupam,
First rule of mailing list etiquette - keep discussions on the mailing list
unless invited to take the discussion off-list. That way, you might get an
answer quicker - and you might not annoy people who have helped by forcing
them to admit they've no clue what's up now.
See also: http://www.catb.org/~esr/faqs/smart-questions.html
Thank you very much for your effort.I have successfully installed
> DBI packages. Now i am facing a very starnge problem with DBD-Oracle
> package.
>
> My perl version:5.8.0
> HP UX version 11
> gcc version 3.4.2
>
> i get the following error when i do "make"
>
> bplita3 /tmp/download_for_comverse/DBD-Oracle-1.19 >> make
> gcc -c -I/oracle/app/oracle92/product/9.2.0/rdbms/public
> -I/oracle/app/oracle92/product/9.2.0/rdbms/demo
> -I/oracle/app/oracle92/product/9.2.0/rdbms/demo
> -I/oracle/app/oracle92/product/9.2.0/rdbms/public
> -I/oracle/app/oracle92/product/9.2.0/plsql/public
> -I/oracle/app/oracle92/product/9.2.0/network/public
> -I/opt/perl/lib/site_perl/5.8.0/IA64.ARCHREV_0-thread-multi/ auto/DBI
> -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC
> -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -DVERSION=\"1.19\" -DXS_VERSION=\"1.19\" -fPIC
> "-I/opt/perl/lib/5.8.0/IA64.ARCHREV_0-thread-multi/CORE" -Wall
> -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"9.2.0.6\"
> Oracle.c
> In file included from
> /opt/perl/lib/5.8.0/IA64.ARCHREV_0-thread-multi/CORE/perl.h: 3950,
> from
>
> /opt/perl/lib/site_perl/5.8.0/IA64.ARCHREV_0-thread-multi/au to/DBI/DBIXS.h:1
> 9,
> from Oracle.h:13,
> from Oracle.xs:1:
> /usr/include/sys/ipc.h:51: error: parse error before "cid_t"
> /usr/include/sys/ipc.h:56: error: parse error before '}' token
Ouch - don't know why, but there's a problem with the way #include
was used. Maybe #include was left out?
In file included from
> /opt/perl/lib/5.8.0/IA64.ARCHREV_0-thread-multi/CORE/perl.h: 3951,
> from
>
> /opt/perl/lib/site_perl/5.8.0/IA64.ARCHREV_0-thread-multi/au to/DBI/DBIXS.h:1
> 9,
> from Oracle.h:13,
> from Oracle.xs:1:
> /usr/include/sys/sem.h:91: error: field `sem_perm' has incomplete type
> *** Error exit code 1
sem_perm is likely to be part of or related to . Fix
the first and I expect the second will go away too.
Stop.
>
>
> please help in installing this.Thanx in advance.Waiting eagarly for the
> reply
>
I'm always tempted to leave such mails unanswered for a few days... :-(
--
Jonathan Leffler #include
Guardian of DBD::Informix - v2005.02 - http://dbi.perl.org
"I don't suffer from insanity - I enjoy every minute of it."
------=_Part_48773_32515515.1172010674277--