How to get Perl version for AIX using gcc compiler to avoidproblems installing DBD::mysql without cc

How to get Perl version for AIX using gcc compiler to avoidproblems installing DBD::mysql without cc

am 06.03.2007 13:18:15 von Melerek

I work on AIX 5.3 without cc_r (my company unfortunately didn't buy it:()
compiler. I tried to install Bugzilla but it needs DBD::mysql perl module. I
have ennormous problems installing it because perl's Makefile uses cc_r
compiler. When i changed compiler to gcc it gives an error:

bash-3.00# make
gcc -c -I/opt/ActivePerl-5.8/lib/auto/DBI
-I/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.2/inc lude/
-I/opt/freeware/lib/ -I/opt/freeware/libexec/ -I/opt/freeware/bin/
-I/usr/include/ -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_ALL_SOURCE
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias
-DUSE_NATIVE_DLOPEN -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -DNEED_PTHREAD_INIT
-q32 -D_LARGE_FILES -qlonglong -O -DVERSION=\"4.001\"
-DXS_VERSION=\"4.001\" "-I/opt/ActivePerl-5.8/lib/CORE" dbdimp.c
gcc: unrecognized option `-qmaxmem=-1'
gcc: unrecognized option `-qnoansialias'
gcc: unrecognized option `-q32'
gcc: unrecognized option `-qlonglong'
In file included from /opt/ActivePerl-5.8/lib/CORE/op.h:497,
from /opt/ActivePerl-5.8/lib/CORE/perl.h:2754,
from /opt/ActivePerl-5.8/lib/auto/DBI/DBIXS.h:19,
from dbdimp.h:21,
from dbdimp.c:20:
/opt/ActivePerl-5.8/lib/CORE/reentr.h:776: error: field `_srandom_struct'
has incomplete type
/opt/ActivePerl-5.8/lib/CORE/reentr.h:780: confused by earlier errors,
bailing out
make: 1254-004 The error code from the last command is 1.


Stop.

I tried almost everything to obey this (even ExtUtils::FakeConfig) but it
didn't help. Is there any other way to solve this problem? If not... maybe
it would be easier to find a version od Perl for AIX whitch' Makefile uses
gcc in modules' instalation... Please help

Melerek
--
View this message in context: http://www.nabble.com/How-to-get-Perl-version-for-AIX-using- gcc-compiler-to-avoid-problems-installing-DBD%3A%3Amysql-wit hout-cc_r-compiler--tf3355062.html#a9330771
Sent from the MySQL - Perl mailing list archive at Nabble.com.


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: OT: How to get Perl version for AIX using gcc compiler to avoidproblems installing DBD::mysql wi

am 06.03.2007 14:42:34 von Stephen Adkins

Hi,

There is no reason I can think of that you would be using the ActivePerl
distribution of
Perl or DBI. Try getting the distributions that are built first for *nix.
They should compile with gcc with no problem.

Stephen

Melerek wrote:

>I work on AIX 5.3 without cc_r (my company unfortunately didn't buy it:()
>compiler. I tried to install Bugzilla but it needs DBD::mysql perl module. I
>have ennormous problems installing it because perl's Makefile uses cc_r
>compiler. When i changed compiler to gcc it gives an error:
>
>bash-3.00# make
> gcc -c -I/opt/ActivePerl-5.8/lib/auto/DBI
>-I/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.2/in clude/
>-I/opt/freeware/lib/ -I/opt/freeware/libexec/ -I/opt/freeware/bin/
>-I/usr/include/ -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_ALL_SOURCE
>-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias
>-DUSE_NATIVE_DLOPEN -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -DNEED_PTHREAD_INIT
>-q32 -D_LARGE_FILES -qlonglong -O -DVERSION=\"4.001\"
>-DXS_VERSION=\"4.001\" "-I/opt/ActivePerl-5.8/lib/CORE" dbdimp.c
>gcc: unrecognized option `-qmaxmem=-1'
>gcc: unrecognized option `-qnoansialias'
>gcc: unrecognized option `-q32'
>gcc: unrecognized option `-qlonglong'
>In file included from /opt/ActivePerl-5.8/lib/CORE/op.h:497,
> from /opt/ActivePerl-5.8/lib/CORE/perl.h:2754,
> from /opt/ActivePerl-5.8/lib/auto/DBI/DBIXS.h:19,
> from dbdimp.h:21,
> from dbdimp.c:20:
>/opt/ActivePerl-5.8/lib/CORE/reentr.h:776: error: field `_srandom_struct'
>has incomplete type
>/opt/ActivePerl-5.8/lib/CORE/reentr.h:780: confused by earlier errors,
>bailing out
>make: 1254-004 The error code from the last command is 1.
>
>
>Stop.
>
>I tried almost everything to obey this (even ExtUtils::FakeConfig) but it
>didn't help. Is there any other way to solve this problem? If not... maybe
>it would be easier to find a version od Perl for AIX whitch' Makefile uses
>gcc in modules' instalation... Please help
>
>Melerek
>
>



--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: OT: How to get Perl version for AIX using gcc compiler to avoidproblems installing DBD::mysql wi

am 06.03.2007 14:57:58 von Patrick Galbraith

Hi,

I second Stephen's recommendation,

regards,

Patrick

Stephen Adkins wrote:

> Hi,
>
> There is no reason I can think of that you would be using the
> ActivePerl distribution of
> Perl or DBI. Try getting the distributions that are built first for
> *nix.
> They should compile with gcc with no problem.
>
> Stephen
>
> Melerek wrote:
>
>> I work on AIX 5.3 without cc_r (my company unfortunately didn't buy
>> it:()
>> compiler. I tried to install Bugzilla but it needs DBD::mysql perl
>> module. I
>> have ennormous problems installing it because perl's Makefile uses cc_r
>> compiler. When i changed compiler to gcc it gives an error:
>>
>> bash-3.00# make
>> gcc -c -I/opt/ActivePerl-5.8/lib/auto/DBI
>> -I/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.2/inc lude/
>> -I/opt/freeware/lib/ -I/opt/freeware/libexec/ -I/opt/freeware/bin/
>> -I/usr/include/ -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_ALL_SOURCE
>> -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias
>> -DUSE_NATIVE_DLOPEN -DUSE_SITECUSTOMIZE -DNO_HASH_SEED
>> -DNEED_PTHREAD_INIT
>> -q32 -D_LARGE_FILES -qlonglong -O -DVERSION=\"4.001\"
>> -DXS_VERSION=\"4.001\" "-I/opt/ActivePerl-5.8/lib/CORE" dbdimp.c
>> gcc: unrecognized option `-qmaxmem=-1'
>> gcc: unrecognized option `-qnoansialias'
>> gcc: unrecognized option `-q32'
>> gcc: unrecognized option `-qlonglong'
>> In file included from /opt/ActivePerl-5.8/lib/CORE/op.h:497,
>> from /opt/ActivePerl-5.8/lib/CORE/perl.h:2754,
>> from /opt/ActivePerl-5.8/lib/auto/DBI/DBIXS.h:19,
>> from dbdimp.h:21,
>> from dbdimp.c:20:
>> /opt/ActivePerl-5.8/lib/CORE/reentr.h:776: error: field
>> `_srandom_struct'
>> has incomplete type
>> /opt/ActivePerl-5.8/lib/CORE/reentr.h:780: confused by earlier errors,
>> bailing out
>> make: 1254-004 The error code from the last command is 1.
>>
>>
>> Stop.
>>
>> I tried almost everything to obey this (even ExtUtils::FakeConfig)
>> but it
>> didn't help. Is there any other way to solve this problem? If not...
>> maybe
>> it would be easier to find a version od Perl for AIX whitch' Makefile
>> uses
>> gcc in modules' instalation... Please help
>>
>> Melerek
>>
>>
>
>
>


--
Patrick Galbraith, Senior Programmer
Grazr - Easy feed grazing and sharing
http://www.grazr.com

Satyam Eva Jayate - Truth Alone Triumphs
Mundaka Upanishad




--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: How to get Perl version for AIX using gcc compiler to avoidproblems installing DBD::mysql withou

am 06.03.2007 16:01:20 von shortt

I have experienced this same problem. Your choices are to buy a copy of XL C, use the XL C demo, or replace perl with a gcc compiled version.

We too have no other need to purchase XL C. We have installed a demo and then uninstalled it after our software installations are complete.

Here are my notes to assist. I have sanitzed our company specific pieces. I have not documented the removal of the XL C Compiler. So I have not provided it here. In addition, I did not download it, (some one else did). I could not be specific where to get the demo other than IBM's website.

I hope this helps...and good luck.

-k


# NOTE: Any perl modules that require a C compiler to installed, requires that the same C compiler
# be used that to compile the perl binary on that system.
#
# This URL sums it up as well:
# http://beta.nntp.perl.org/group/perl.dbi.users/2006/07/msg29 738.html
#
# The "IBM XL C Compiler" is required. What we have done is installed it for demo or evaluation.
# Then removing it after we have gotten what we needed compiled.
#
# Here are the steps for the IBM XL C Compiler installation.

# The compressed tar file resides on our either of our nim servers at the following location:
# /xlcpp.8.0.0.aix.eval.tar.Z
# Place it locally in /usr/local/tgz.
# Login as root to and copy it over.
# You will need the root password handy for the destination server.
- scp /xlcpp.8.0.0.aix.eval.tar.Z root@:/usr/local/tgz/
# Done with .

# Login to your server as root
- mkdir /usr/local/src/xlcpp
- cd /usr/local/src/xlcpp
- uncompress -c /usr/local/tgz/xlcpp.8.0.0.aix.eval.tar.Z |tar -xvf -
- chown -R root:system .
- cd usr/sys/inst.images/
- smit install
- Install and Update Software
- Install Software
- "." for the INPUT Device.
* INPUT device / directory for software .
* SOFTWARE to install [_all_latest] +
PREVIEW only? (install operation will NOT occur) no +
COMMIT software updates? yes +
SAVE replaced files? no +
AUTOMATICALLY install requisite software? yes +
EXTEND file systems if space needed? yes +
OVERWRITE same or newer versions? no +
VERIFY install and check file sizes? no +
Include corresponding LANGUAGE filesets? yes +
DETAILED output? no +
Process multiple volumes? yes +
ACCEPT new license agreements? yes +
Preview new LICENSE agreements? no +

- press enter

# If not successful, then troubleshoot.
# If successful, then you are done with IBM XL C Compiler installation.







On Tue, 6 Mar 2007, Melerek wrote:

>
> I work on AIX 5.3 without cc_r (my company unfortunately didn't buy it:()
> compiler. I tried to install Bugzilla but it needs DBD::mysql perl module. I
> have ennormous problems installing it because perl's Makefile uses cc_r
> compiler. When i changed compiler to gcc it gives an error:
>
> bash-3.00# make
> gcc -c -I/opt/ActivePerl-5.8/lib/auto/DBI
> -I/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.2/inc lude/
> -I/opt/freeware/lib/ -I/opt/freeware/libexec/ -I/opt/freeware/bin/
> -I/usr/include/ -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_ALL_SOURCE
> -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias
> -DUSE_NATIVE_DLOPEN -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -DNEED_PTHREAD_INIT
> -q32 -D_LARGE_FILES -qlonglong -O -DVERSION=\"4.001\"
> -DXS_VERSION=\"4.001\" "-I/opt/ActivePerl-5.8/lib/CORE" dbdimp.c
> gcc: unrecognized option `-qmaxmem=-1'
> gcc: unrecognized option `-qnoansialias'
> gcc: unrecognized option `-q32'
> gcc: unrecognized option `-qlonglong'
> In file included from /opt/ActivePerl-5.8/lib/CORE/op.h:497,
> from /opt/ActivePerl-5.8/lib/CORE/perl.h:2754,
> from /opt/ActivePerl-5.8/lib/auto/DBI/DBIXS.h:19,
> from dbdimp.h:21,
> from dbdimp.c:20:
> /opt/ActivePerl-5.8/lib/CORE/reentr.h:776: error: field `_srandom_struct'
> has incomplete type
> /opt/ActivePerl-5.8/lib/CORE/reentr.h:780: confused by earlier errors,
> bailing out
> make: 1254-004 The error code from the last command is 1.
>
>
> Stop.
>
> I tried almost everything to obey this (even ExtUtils::FakeConfig) but it
> didn't help. Is there any other way to solve this problem? If not... maybe
> it would be easier to find a version od Perl for AIX whitch' Makefile uses
> gcc in modules' instalation... Please help
>
> Melerek
> --
> View this message in context: http://www.nabble.com/How-to-get-Perl-version-for-AIX-using- gcc-compiler-to-avoid-problems-installing-DBD%3A%3Amysql-wit hout-cc_r-compiler--tf3355062.html#a9330771
> Sent from the MySQL - Perl mailing list archive at Nabble.com.
>
>
> --
> MySQL Perl Mailing List
> For list archives: http://lists.mysql.com/perl
> To unsubscribe: http://lists.mysql.com/perl?unsub=shortt@cgicafe.com
>

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org