473,748 Members | 2,426 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 "+DAportabl e".

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_INSE RT_ID_IS_GOOD -g -mpa-risc-2-0
-D_HPUX_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/pro/l
ocal/include -D_LARGEFILE_SOU RCE -D_FILE_OFFSET_B ITS=64 -g -O
-DVERSION=\"2.90 08\" -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_INSE RT_ID_IS_GOOD -g -mpa-risc-2-0 -D_HPUX_SOURCE
-DDEBUGGING -fno-strict-aliasing -pipe -I/pro/local/include

-D_LARGEFILE_SOU RCE -D_FILE_OFFSET_B ITS=64 -g -O
-DVERSION=\"2.90 08\" -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.
#

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

Jul 23 '05 #1
1 3641
sm********@yaho o.com 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 "+DAportabl e".
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.
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
10281
by: francescomoi | last post by:
Hi. I'm trying to build 'MySQL-python-1.2.0' on my Linux FC2: ---------------------------------- # export PATH=$PATH:/usr/local/mysql/bin/ # export mysqlclient=mysqlclient_r # python setup.py clean # python setup.py build running build running build_py
0
2643
by: Girish Agarwal | last post by:
--0-474210375-1058976151=:31789 Content-Type: text/plain; charset=us-ascii Content-Id: Content-Disposition: inline Note: forwarded message attached. __________________________________
0
6686
by: Donald Tyler | last post by:
Then the only way you can do it that I can think of is to write a PHP script to do basically what PHPMyAdmin is trying to do but without the LOCAL in there. However to do that you would need to be able to place the PHP file on the server, and I guess you probably can't do that either. Talk about catch 22... The only other way I can think of is to install MySQL on a machine you control, then import the data there using the method I...
4
1305
by: mikey | last post by:
Hi all, I'm having great problems trying to install the latest MySQl RPM package onto my Red Hat Linux OS. There is already MySQL v 3.0 pre-installed with the RH Linux distribution disk but I can not seem to get any of the functions working on it. So I have now dopwnloaded the latest version hoping that this will fix the error. I have managed to install the MySQL-shared-compat-4.0.1-0.i386.rpm but
0
2330
by: Mark Adams | last post by:
I really need some help with this. MySQL will not start on boot despite everything I've done to make sure that it is set to do so. When I start it as root from a terminal with "/usr/bin/mysqld_safe --skip-grant-tables &" I show several mysqld procs. and one mysqld_safe, but I can't connect: # ps -aux| grep mysql Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html root 3650 0.0 0.1 2276 664 ? S ...
2
2364
by: Saqib Ali | last post by:
I installed mySQL and have it running.... but I think I made a mistake somewhere along the line...... I believe I did follow the instructions that were provided with the distribution at: http://dev.mysql.com/downloads/ The database is up. It seems that a test database instance has been created (named "test"). I can see it. However, the other database instance that should have been created, named "mysql" doesn't show up when I do "show...
0
1884
by: ./Rob & | last post by:
Hi gang: I'm experiencing a problem with MySQL -- I updated MySQL from version 4.1.0 to 4.1.10 and now when I login as root it doesn't show all the databases I should have access to, nor it doesn't recognize me being logged in as root (via CURRENT_USER().) Here it is, line-by-line. Inline comments are denoted by '//'
2
2905
by: trihanhcie | last post by:
I m currently working on a Unix server with a fedora 3 as an os My current version of mysql is 3.23.58. I'd like to upgrade the version to 5.0.18. After downloading from MYSQL.COM the package on the site, I made : rpm -i MySQL-server-5.0.18-0.i386.rpm then i have errors that relate to many conflicts. I cannot figure out why -and- cannot upgrade. Please Help !
1
3227
by: manish deshpande | last post by:
Hi, When i'm installing MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm by the following command: rpm -i MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm the following error is being shown: warning: MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5 file /etc/my.cnf from install of MySQL-server-standard-5.0.24a-0.rhel3 conflicts with file from package mysql-3.23.58-1 file...
0
8984
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9312
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9238
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8237
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.