[email]smsabu2002[/email] wrote:This is a flag for the HP compiler; it is not understood by GCC.> Hi,
> I am facing the build problem while installing the DBD-MySql perl
> module (ver 2.9008) using both GCC and CC compilers in HP-UX machine.
> For the Build using GCC, the compiler error is produced due to the
> unknown GCC compiler option "+DAportable".
It's a flag to cause the compiler to produce code that works on both
PA-RISC 2.0 and PA-RISC 1.1 architectures.
I'd edit the generated Makefile to remove this flag from compile
commands. That might be enough to get gcc to work.
Perhaps it's picking up the flag from Perl's Config.pm. Try `perl -V'
(that's capital V) to get more information about Perl's configuration
for compiler options. You might have to edit your Config.pm to get rid
of this, or else you'll run into this issue each time you install a Perl
module that includes C code.
You also have several GCC-specific flags that cause HP cc to complain,> For the Build using CC, the preprocessor error is produced due to the
> recursive declration of macro "PerlIO" in perlio.h file.
like -m and -f.
It's desireable to compile the DBD-mysql extension with the same
compiler and compiler options as those which were used to build the perl
binary itself. Running `perl -V' should tell you what compiler was used
to build perl. I'm guessing it was build with gcc, for the reason of
the macro in perlio.h.
Sorry I can't offer more definitive suggestions, but I don't use HP-UX
much these days.