Operating System - Linux
1826443 Members
4061 Online
109692 Solutions
New Discussion

PERL DBI and DBD revisted again ( sorry )

 
SOLVED
Go to solution
Tim Nelson
Honored Contributor

PERL DBI and DBD revisted again ( sorry )

Sorry to post a question on this again as there are lots and lots of them.

I have a specific issue that I need some help with.

Trying to install the DBI and DBD latest versions. I am using recent GCC and PERL. Just downloaded all of this today. ( I can post specific info if it is really relevant ).

It looks to me like even though I supply the gcc path to the perl Makefile.PL it still throws in a number of ANSI\C switches during the make. Below is the errors from the make. Can I get some tips to correct/remove the ANSI/C switches from the Makefile ? Is it as simple as editing the Makefile and remove any references that I can find to the below errors ?

Forgive me in advance for my stupidity as I have little experience in C.

/opt/hp-gcc64/bin/gcc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 +Z -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +O2 +Onolimit +Opromote_indirect_calls -DVERSION=\"1.59\" -DXS_VERSION=\"1.59\" +Z "-I/opt/perl_64/lib/5.8.8/PA-RISC2.0-thread-multi-LP64/CORE" Perl.c
gcc: +DD64: No such file or directory
gcc: +Z: No such file or directory
gcc: +O2: No such file or directory
gcc: +Onolimit: No such file or directory
gcc: +Opromote_indirect_calls: No such file or directory
gcc: +Z: No such file or directory
: error: missing '(' after predicate
*** Error exit code 1
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor
Solution

Re: PERL DBI and DBD revisted again ( sorry )

Hi:

It appears that your Perl was compiled with the HP-UX C compiler. To (easily) compile modules with the 'gcc' compiler you need to download a version of Perl compiled with 'gcc'. You can verify the compiler used thusly:

# perl -V:cc

(and for details):

# perl -V::ccflags

You can fetch a 'gcc' built Perl from Merijn's web site:

http://mirrors.develooper.com/hpux/downloads.html

Regards!

...JRF...
Tim Nelson
Honored Contributor

Re: PERL DBI and DBD revisted again ( sorry )

Crud....

I hate it when I miss-click or miss the simple stuff.

argggg...

Thanks !! again, and again, and again,

Tim

H.Merijn Brand (procura
Honored Contributor

Re: PERL DBI and DBD revisted again ( sorry )

As a seperate advice (this one really was a give-away :) please tell us *what* DBD, as there is no such thing as the latest DBD or the most recent.

Or can we assume it is DBD-Pg, or DBD-SQLite, or (the horror, I feel with you for having to deal with one of the worst DB's, at least when seen from a developers point of view) DBD-Oracle?

Extra info for all: GNU gcc-4.2.2 has been released this week, and I cannot get it to build on HP-UX 11.23 IPF, so at least they missed here on `improving' the product.
Stay tuned, I won't give up (yet)

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Tim Nelson
Honored Contributor

Re: PERL DBI and DBD revisted again ( sorry )

Sorry about that Merjin,

DBD::Oracle 1.19 from CPAN

I seem to have come full circle as I found one of my posts from a few years ago getting caught in the circle of perl compiled with ANSI/C or perl compiled with gcc. http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=990842
Some modules requiring ansic and others requiring gcc. Once upon a time the dspp had two versions of perl available, one built with gcc the other ansic, but no more. All precompiled HP dists are with the $$ ansic.

I am working on installing the perl distribution 5.8.8 compiled with gcc from your site and am having erros during the make.
Bad character > (octal 76), line 72Make: . Stop.
H.Merijn Brand (procura
Honored Contributor

Re: PERL DBI and DBD revisted again ( sorry )

Do yoyu use GNU make (or sometimes called gmake)? If not, please do, and make sure it is found in your $PATH before anything else.

HP has given us great utilities, but make is not one of them.

If you cannot find it, I can make the most recent versions available.
Maybe I should do so anyway.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Tim Nelson
Honored Contributor

Re: PERL DBI and DBD revisted again ( sorry )

Did not use gmake. I will try that also.

I do own a copy of ANSI\C. I am going to attempt the module build after I install this. I do not own the ANSI\C for all of my servers just 1 and hence was attempting to go down the GNU path.

I seem to remember from before that the makes for the perl modules would use the complile options that perl was installed with. Hence the new need for Perl w/ gcc vs Perl w/ Ansi\C.

Thanks again for the patient support
H.Merijn Brand (procura
Honored Contributor

Re: PERL DBI and DBD revisted again ( sorry )

Correct. The compile time options of perl are re-used for the modules. These are stored in the %Config hash. See 'use Config;' (perldoc Config).

Most (if not all) settings can be seen with the -V (capital V) command line option

> perl -V:ccflags
ccflags=' -Ae -DDEBUGGING +Z -z -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ';

The easiest way to see what C-coplier was used is also with the -V:

> perl -V:.*ccversion
ccversion='B3910B A.06.05';
gccversion='';

As a side note, pure-perl models (the ones that not use XS or a C-Compiler can safely be used/built on systems with a different compiler or no compiler at all.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Tim Nelson
Honored Contributor

Re: PERL DBI and DBD revisted again ( sorry )

Thanks again all !!

I took the easy way out and compiled with my one and only installtion of ANCI/C. Luckily the modules are currently only requested on one system. Will find another way someday if/when more are requested.

The DBI and DBD modules compiled and installed without a single error.