Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

Install Perl DBI-1.42 on HP-UX 11.23

Axel Fraedrich
Occasional Visitor

Install Perl DBI-1.42 on HP-UX 11.23

I have problems to compile the Perl module DBI-1.42 on HP-UX 11.23 (on rx5670 Itanium).
I use Perl 5.8.5 and gcc 3.3.3
I get follow error after starting 'make':

gcc -c -D_HPUX_SOURCE -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -O0 -DVERSION=\"1.42\" -DXS_VERSION=\"1.42\" -fPIC "-I/usr/local/lib/perl5/5.8.5/IA64.ARCHREV_0/CORE" -Wall -Wno-comment -DDBI_NO_THREADS DBI.c
In file included from /usr/local/lib/perl5/5.8.5/IA64.ARCHREV_0/CORE/perl.h:4112,
from DBIXS.h:19,
from DBI.xs:12:
/usr/include/sys/ipc.h:51: error: parse error before "cid_t"
/usr/include/sys/ipc.h:56: error: parse error before '}' token
In file included from /usr/local/lib/perl5/5.8.5/IA64.ARCHREV_0/CORE/perl.h:4113,
from DBIXS.h:19,
from DBI.xs:12:
/usr/include/sys/sem.h:91: error: field `sem_perm' has incomplete type
*** Error exit code 1

Stop.


Has anybody an idea?
4 REPLIES
Steven E. Protter
Exalted Contributor

Re: Install Perl DBI-1.42 on HP-UX 11.23

It appears to be a syntax error, perhaps in the header files. Perhaps get a different version of the software.

sr/include/sys/ipc.h:51: error: parse error before "cid_t"
/usr/include/sys/ipc.h:56: error: parse error before '}' token

There might have been and ascii versus binary error ftp'ing the files up there.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dave Whiting_1
Occasional Visitor

Re: Install Perl DBI-1.42 on HP-UX 11.23

I had the same exact problem.

Fixed it by using the ANSI C compiler:

# /opt/bin/perl_64/bin/change_config_pm cc
# perl Makefile.PL
# make
# make install
...
It worked for me. Good luck.
Axel Fraedrich
Occasional Visitor

Re: Install Perl DBI-1.42 on HP-UX 11.23

Thanks for help. Now it's done.

I use PERL Modules DBI-1.45 and DBD-Oracle-1.16
Also I have installed thp HP C/ANSI C Compiler

1. change Perl config
/opt/perl_64/bin/change_config_pm cc

2. Install DBI Module

cd DBI-1.45

/opt/perl_64/bin/perl Makefile.PL

make

## Now I get some WARNINGS
Warning 197: "DBI.xs", line 2337 # Jump past initialization of variable 'h_perl'.
goto is_DESTROY_wrong_thread;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 952: "DBI.xs", line 2956 # Conversion of 'const char *' to 'char *' loses 'const'.
char *Statement = (ima_flags & IMA_UNRELATED_TO_STMT) ? "" : Nullch;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 942: "DBI.xs", line 2956 # Types 'char *' and 'const char *' are not assignment-compatible.
char *Statement = (ima_flags & IMA_UNRELATED_TO_STMT) ? "" : Nullch;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

make test
## The test is running well

make install

3. Install DBD-Oracle

Seting Oracle Environments

cd DBD-Oracle-1.16

/opt/perl_64/bin/perl Makefile.PL

make

make test

## The test is running well

make install


## At last I started my own Perl script to query my database and it's running well
Axel Fraedrich
Occasional Visitor

Re: Install Perl DBI-1.42 on HP-UX 11.23

close thread