Professional Web Applications Themes

Mysql-DBD Perl module Installation Problem in HPUX - PERL Modules

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". For the Build using CC, the preprocessor error is produced due to the recursive declration of macro "PerlIO" in perlio.h file. Please give me the solution to get rid of this problem. Thanks in advance. Regards, Arun. The following is the log for both build. ================================================== ======================================== DBD-Mysql-2.9008 Perl module Build in HP-UX 11.11 using GCC ================================================== ======================================== ...

  1. #1

    Default Mysql-DBD Perl module Installation Problem in HPUX

    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".

    For the Build using CC, the preprocessor error is produced due to the
    recursive declration of macro "PerlIO" in perlio.h file.

    Please give me the solution to get rid of this problem.

    Thanks in advance.

    Regards,
    Arun.

    The following is the log for both build.


    ================================================== ========================================
    DBD-Mysql-2.9008 Perl module Build in HP-UX 11.11 using GCC
    ================================================== ========================================

    # uname -a
    HP-UX hpccase B.11.11 U 9000/871 2015587066 unlimited-user license

    # perl -v
    This is perl, v5.8.7 built for PA-RISC2.0

    # gcc -v
    Using built-in specs.
    Target: hppa2.0w-hp-hpux11.11
    Configured with:
    /scratch/joseph/pkgbuild/3.3.1/hpux-11/gcc-4.0.0/configure
    --enable-languages=c,c++ --enable-threads=posix --disable-nls

    --disable-libmudflap --with-gnu-as --without-gnu-ld
    --with-as=/usr/local/bin/as --with-ld=/usr/ccs/bin/ld
    --prefix=/usr/local
    Thread model: posix
    gcc version 4.0.0

    # perl Makefile.PL CC=gcc
    I will use the following settings for compiling and testing:

    cflags (mysql_config) =
    -I/cmdisk1/mysql-max-4.1.12-hp-hpux11.11-hppa2.0w/include +DAportable
    libs (mysql_config) =
    -L/cmdisk1/mysql-max-4.1.12-hp-hpux11.11-hppa2.0w/lib -lmysqlclient -lz
    -lcrypt -lnsl -lm
    mysql_config (guessed ) = mysql_config
    nocatchstderr (default ) = 0
    nofoundrows (default ) = 0
    ssl (guessed ) = 0
    testdb (default ) = test
    testhost (default ) =
    testpassword (default ) =
    testsocket (default ) =
    testuser (default ) =

    To change these settings, see 'perl Makefile.PL --help' and
    'perldoc INSTALL'.

    Note (probably harmless): No library found for -lz
    Using DBI 1.48 (for perl 5.008007 on PA-RISC2.0) installed in
    /opt/perl/lib/site_perl/5.8.7/PA-RISC2.0/auto/DBI/
    Writing Makefile for DBD::mysql
    # make
    gcc -c -I/opt/perl/lib/site_perl/5.8.7/PA-RISC2.0/auto/DBI/
    -I/cmdisk1/mysql-max-4.1.12-hp-hpux11.11-hppa2.0w/includ
    e +DAportable -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -mpa-risc-2-0
    -D_HPUX_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/pro/l
    ocal/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O
    -DVERSION=\"2.9008\" -DXS_VERSION=\"2.9008\" -fPIC "-I/opt/
    perl/lib/5.8.7/PA-RISC2.0/CORE" dbdimp.c
    gcc: +DAportable: No such file or directory
    *** Error exit code 1

    Stop.

    ================================================== ========================================

    ================================================== ========================================
    DBD-Mysql-2.9008 Perl module Build in HP-UX 11.11 using HP C
    compiler (cc)
    ================================================== ========================================


    # perl Makefile.PL CC=cc
    I will use the following settings for compiling and testing:

    cflags (mysql_config) =
    -I/cmdisk1/mysql-max-4.1.12-hp-hpux11.11-hppa2.0w/include +DAportable
    libs (mysql_config) =
    -L/cmdisk1/mysql-max-4.1.12-hp-hpux11.11-hppa2.0w/lib -lmysqlclient -lz
    -lcrypt -lnsl -lm
    mysql_config (guessed ) = mysql_config
    nocatchstderr (default ) = 0
    nofoundrows (default ) = 0
    ssl (guessed ) = 0
    testdb (default ) = test
    testhost (default ) =
    testpassword (default ) =
    testsocket (default ) =
    testuser (default ) =

    To change these settings, see 'perl Makefile.PL --help' and
    'perldoc INSTALL'.

    Checking if your kit is complete...
    Looks good
    Note (probably harmless): No library found for -lz
    Using DBI 1.48 (for perl 5.008007 on PA-RISC2.0) installed in
    /opt/perl/lib/site_perl/5.8.7/PA-RISC2.0/auto/DBI/
    Writing Makefile for DBD::mysql
    # make
    cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
    cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
    cp lib/Mysql.pm blib/lib/Mysql.pm
    cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
    cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
    cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
    cc -c -I/opt/perl/lib/site_perl/5.8.7/PA-RISC2.0/auto/DBI/
    -I/cmdisk1/mysql-max-4.1.12-hp-hpux11.11-hppa2.0w/include +DAportable

    -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -mpa-risc-2-0 -D_HPUX_SOURCE
    -DDEBUGGING -fno-strict-aliasing -pipe -I/pro/local/include

    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O
    -DVERSION=\"2.9008\" -DXS_VERSION=\"2.9008\" -fPIC

    "-I/opt/perl/lib/5.8.7/PA-RISC2.0/CORE" dbdimp.c
    (Bundled) cc: warning 480: The -g option is available only with the
    C/ANSI C product; ignored.
    (Bundled) cc: warning 422: Unknown option "m" ignored.
    (Bundled) cc: warning 480: The -p option is available only with the
    C/ANSI C product; ignored.
    (Bundled) cc: warning 422: Unknown option "a" ignored.
    (Bundled) cc: warning 422: Unknown option "-" ignored.
    (Bundled) cc: warning 480: The -r option is available only with the
    C/ANSI C product; ignored.
    (Bundled) cc: warning 422: Unknown option "i" ignored.
    (Bundled) cc: warning 422: Unknown option "-" ignored.
    (Bundled) cc: warning 422: Unknown option "2" ignored.
    (Bundled) cc: warning 422: Unknown option "-" ignored.
    (Bundled) cc: warning 422: Unknown option "0" ignored.
    (Bundled) cc: warning 422: Unknown option "f" ignored.
    (Bundled) cc: warning 480: The -p option is available only with the
    C/ANSI C product; ignored.
    (Bundled) cc: warning 422: Unknown option "i" ignored.
    (Bundled) cc: warning 480: The -p option is available only with the
    C/ANSI C product; ignored.
    (Bundled) cc: warning 480: The -e option is available only with the
    C/ANSI C product; ignored.
    (Bundled) cc: warning 480: The -g option is available only with the
    C/ANSI C product; ignored.
    (Bundled) cc: warning 480: The -O option is available only with the
    C/ANSI C product; ignored.
    (Bundled) cc: warning 422: Unknown option "f" ignored.
    cpp: "/opt/perl/lib/5.8.7/PA-RISC2.0/CORE/perlio.h", line 114: error
    4065: Recursion in macro "PerlIO".
    *** Error exit code 1

    Stop.
    #

    ================================================== ========================================

    smsabu2002@yahoo.com Guest

  2. #2

    Default Re: Mysql-DBD Perl module Installation Problem in HPUX

    [email]smsabu2002[/email] wrote:
    > 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".
    This is a flag for the HP compiler; it is not understood by GCC.
    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.
    > For the Build using CC, the preprocessor error is produced due to the
    > recursive declration of macro "PerlIO" in perlio.h file.
    You also have several GCC-specific flags that cause HP cc to complain,
    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.

    Regards,
    Bill K.
    Bill Karwin Guest

Similar Threads

  1. Perl module installation
    By be_tnt in forum PERL Modules
    Replies: 7
    Last Post: September 17th, 04:42 PM
  2. perl cgi session module installation problem
    By bhuvana.aradhya@gmail.com in forum PERL Modules
    Replies: 5
    Last Post: June 6th, 12:12 PM
  3. Local installation of perl module
    By burkina in forum PERL Modules
    Replies: 1
    Last Post: September 5th, 05:24 PM
  4. Perl module installation problem
    By Perldiscuss - Perl Newsgroups And Mailing Lists in forum PERL Beginners
    Replies: 0
    Last Post: December 21st, 11:42 PM
  5. DBD::Oracle installation problem at HPUX
    By porschberg in forum PERL Modules
    Replies: 0
    Last Post: November 5th, 02:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139