Hello
I have the following server details;
hp-ux 11.11, model K460
getconf KERNEL_BITS = 64
perl 5.6.1
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=hpux, osvers=11.11, archname=PA-RISC2.0
uname='hp-ux bianca b.11.11 u 9000800 1493622342 unlimited-user license
'
config_args='-Dprefix=/opt/perl5 -d'
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 =' -D_HPUX_SOURCE -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -Ae',
optimize='-O',
cppflags='-D_HPUX_SOURCE -Aa'
ccversion='B.11.11.04', 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='ld', ldflags =' -Wl,+vnocompatwarnings -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lnsl -lnm -lndbm -ldld -lm -lc -lndir -lcrypt -lsec
perllibs=-lnsl -lnm -ldld -lm -lc -lndir -lcrypt -lsec
libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-B,deferred '
cccdlflags='+z', lddlflags='-b +vnocompatwarnings -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under hpux
Compiled at Jun 27 2002 13:09:09
@INC:
/opt/perl5/lib/5.6.1/PA-RISC2.0
/opt/perl5/lib/5.6.1
/opt/perl5/lib/site_perl/5.6.1/PA-RISC2.0
/opt/perl5/lib/site_perl/5.6.1
/opt/perl5/lib/site_perl
.
Script started on Thu Jun 27 15:35:55 2002
# pwd
/.cpan/build/DBI-1.28
# ls
Changes DBIXS.h Perl.c blib dbish
DBI.bs Driver.xst Perl.o dbd_xsh.h dbish.PL
DBI.c Driver_xst.h Perl.xs dbi_sql.h lib
DBI.o MANIFEST Perl.xsi dbipport.h pm_to_blib
DBI.pm Makefile README dbiproxy t
DBI.xs Makefile.PL ToDo dbiproxy.PL test.pl
# cat REA# cat RE# cat README
DBI - The Perl Database Interface by Tim Bunce.
Copyright (c) 1994-2002 Tim Bunce Ireland.
See COPYRIGHT section in DBI.pm for usage and distribution rights.
RECENT NEWS:
The DBI comes bundled with DBI::Shell, DBD::Proxy and
DBI::ProxyServer modules. Those are still alpha releases.
Note that recent additions to the DBI spec (marked *NEW*) may
take a little while to be fully supported by individual drivers.
QUICK START GUIDE:
The DBI requires one or more 'driver' modules to talk to databases.
Check that a DBD::* module exists for the database you wish to use.
Read the DBI README then Build/test/install the DBI by doing
perl Makefile.PL
make
make test
make install
Then delete the source directory tree since it's no longer needed.
Use the 'perldoc DBI' command to read the DBI documentation.
Fetch the DBD::* driver module you wish to use and unpack it.
It is often important to read the driver README file carefully.
Generally the build/test/install/delete sequence is the same
as for the DBI module.
The DBI.pm file contains the DBI specification and other documentation.
PLEASE READ IT. It'll save you asking questions on the mailing list
which you will be told are already answered in the documentation.
For more information and to keep informed about progress you can join
the a mailing list via mailto:[EMAIL PROTECTED]
Much useful information and online archives of the mailing lists can be
found at http://dbi.perl.org/
See also http://www.perl.com/CPAN/
BEFORE BUILDING, TESTING AND INSTALLING this you will need to:
Build, test and install Perl 5 (5.005_03 or later).
It is very important to test it and actually install it!
(You can use "Configure -Dprefix=..." to build a private copy.)
BUILDING
perl Makefile.PL
make
make test
make test TEST_VERBOSE=1 (if any of the t/* tests fail)
make install (if the tests look okay)
IF YOU HAVE PROBLEMS:
First, carefully read the notes at the bottom of this file.
If you can't fix it your self please post details to [EMAIL PROTECTED]
You can CC them to me at [EMAIL PROTECTED] BUT please DON'T send them
just to me (I'm likely to ignore it). Please include:
1. A complete log of a complete build, e.g.:
perl Makefile.PL (do a make realclean first)
make
make test
make test TEST_VERBOSE=1 (if any of the t/* tests fail)
2. The output of perl -V
3. If you get a core dump, try to include a stack trace from it.
(Try installing the Devel::CoreStack module to get a stack trace.)
If the stack trace mentions XS_DynaLoader_dl_load_file then rerun
make test after setting the environment variable PERL_DL_DEBUG to 2.
4. If your installation succeeds, but your script does not behave
as you expect, the problem is possibly in your script. Before
sending to dbi-users, try writing a small, easy to use test case
to reproduce your problem. Also, use the DBI->trace method to
trace your database calls.
Please don't post problems to comp.lang.perl.* or perl5-porters.
This software is supported via the dbi-users mailing list. For more
information and to keep informed about progress you can join the
mailing list via mailto:[EMAIL PROTECTED]
(please note that I do not run or manage the mailing list).
It is important to check that you are using the latest version before
posting. If you're not then I'm *very* likely to simply say "upgrade to
the latest". You would do yourself a favour by upgrading beforehand.
Please remember that I'm _very_ busy. Try to help yourself first,
then try to help me help you by following these guidelines carefully.
(Note specifically that I'm unlikely to answer a question that's
answered clearly in the on-line documentation.)
Regards,
Tim Bunce.
=======================================================================
---
If you get an error like "fatal: relocation error: symbol not found: ..."
using gcc <3.x then try not using GNU as or GNU ld on Solaris.
---
If you get compiler warnings like "value computed is not used" and
"unused variable" you can ignore them.
---
If you get compiler errors refering to Perl's own header files
(.../CORE/*.h) or the compiler complains about bad options etc then
there is something wrong with your installation. It is best to use a
Perl that was built on the system you are trying to use and it's also
important to use the same compiler that was used to build the Perl you
are using.
End.
# ls
Changes DBIXS.h Perl.c blib dbish
DBI.bs Driver.xst Perl.o dbd_xsh.h dbish.PL
DBI.c Driver_xst.h Perl.xs dbi_sql.h lib
DBI.o MANIFEST Perl.xsi dbipport.h pm_to_blib
DBI.pm Makefile README dbiproxy t
DBI.xs Makefile.PL ToDo dbiproxy.PL test.pl
# 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
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_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_60preparse_pp.t
Creating extra DBI::PurePerl test: t/zz_70shell_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
cc -c -D_HPUX_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ae
-O -DVERSION=\"1.28\" -DXS_VERSION=\"1.28\" +z
-I/opt/perl5/lib/5.6.1/PA-RISC2.0/CORE -DDBI_NO_THREADS DBI.c
cc: "/usr/include/sys/socket.h", line 504: warning 562: Redeclaration of
"sendfile" with a different storage class specifier: "sendfile" will have
internal linkage.
cc: "/usr/include/sys/socket.h", line 505: warning 562: Redeclaration of
"sendpath" with a different storage class specifier: "sendpath" will have
internal linkage.
Running Mkbootstrap for DBI ()
chmod 644 DBI.bs
rm -f blib/arch/auto/DBI/DBI.sl
LD_RUN_PATH="" ld -b +vnocompatwarnings -L/usr/local/lib DBI.o -o
blib/arch/auto/DBI/DBI.sl
chmod 755 blib/arch/auto/DBI/DBI.sl
cp DBI.bs blib/arch/auto/DBI/DBI.bs
chmod 644 blib/arch/auto/DBI/DBI.bs
cp dbiproxy blib/script/dbiproxy
/usr/bin/perl -I/opt/perl5/lib/5.6.1/PA-RISC2.0
-I/opt/perl5/lib/5.6.1 -MExtUtils::MakeMaker -e "MY->fixin(shift)"
blib/script/dbiproxy
cp dbish blib/script/dbish
/usr/bin/perl -I/opt/perl5/lib/5.6.1/PA-RISC2.0
-I/opt/perl5/lib/5.6.1 -MExtUtils::MakeMaker -e "MY->fixin(shift)"
blib/script/dbish
Manifying blib/man3/DBD::Proxy.3
Manifying blib/man3/DBI::ProxyServer.3
Manifying blib/man3/DBI::Const::GetInfoType.3
Manifying blib/man3/DBI::Format.3
Manifying blib/man3/DBI::Const::GetInfoReturn.3
Manifying blib/man1/dbish.1
Manifying blib/man3/DBI::Const::GetInfo::ANSI.3
Manifying blib/man3/DBI::PurePerl.3
Manifying blib/man3/DBI::Profile.3
Manifying blib/man3/DBI::Shell.3
Manifying blib/man3/DBI::FAQ.3
Manifying blib/man3/DBI.3
Manifying blib/man3/Bundle::DBI.3
Manifying blib/man3/Win32::DBIODBC.3
Manifying blib/man1/dbiproxy.1
Manifying blib/man3/DBI::Const::GetInfo::ODBC.3
Manifying blib/man3/DBI::W32ODBC.3
Manifying blib/man3/DBI::DBD.3
# make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/opt/perl5/lib/5.6.1/PA-RISC2.0 -I/opt/perl5/lib/5.6.1 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
/usr/lib/dld.sl: Unresolved symbol: perl_get_sv (code) from
/opt/perl5/lib/5.6.1/PA-RISC2.0/auto/IO/IO.sl
Can't load '/opt/perl5/lib/5.6.1/PA-RISC2.0/auto/IO/IO.sl' for module IO:
Unresolved external at /opt/perl5/lib/5.6.1/PA-RISC2.0/XSLoader.pm line 75.
at /opt/perl5/lib/5.6.1/PA-RISC2.0/IO.pm line 9
Compilation failed in require at
/opt/perl5/lib/5.6.1/PA-RISC2.0/IO/Handle.pm line 256.
BEGIN failed--compilation aborted at
/opt/perl5/lib/5.6.1/PA-RISC2.0/IO/Handle.pm line 256.
Compilation failed in require at
/opt/perl5/lib/5.6.1/PA-RISC2.0/IO/Seekable.pm line 101.
BEGIN failed--compilation aborted at
/opt/perl5/lib/5.6.1/PA-RISC2.0/IO/Seekable.pm line 101.
Compilation failed in require at /opt/perl5/lib/5.6.1/PA-RISC2.0/IO/File.pm
line 112.
BEGIN failed--compilation aborted at
/opt/perl5/lib/5.6.1/PA-RISC2.0/IO/File.pm line 112.
Compilation failed in require at /opt/perl5/lib/5.6.1/FileHandle.pm line 9.
Compilation failed in require at /opt/perl5/lib/5.6.1/Test/Harness.pm line
7.
BEGIN failed--compilation aborted at /opt/perl5/lib/5.6.1/Test/Harness.pm
line 7.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
*** Error exit code 255
Stop.
# exit
script done on Thu Jun 27 15:39:09 2002
Any ideas welcome
Thanks
Richard