Subject: | compile AIX 5.3 using cc_r error |
I have a compile error on AIX 5.3, using mysql 5.0.24.
Error (See below for more details....)
=====
cc_r -c
-I/usr/local/lib/perl5/site_perl/5.8.8/aix-thread-multi/auto/DBI
-I/usr/local/mysql/include -ma -qstrict -qoptimize=2 -qmaxmem=8192
-DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_ALL_SOURCE -D_ANSI_C_SOURCE
-D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong
-O -DVERSION=\"4.005\" -DXS_VERSION=\"4.005\"
"-I/usr/local/lib/perl5/5.8.8/aix-thread-multi/CORE" dbdimp.c
"dbdimp.c", line 2591.9: 1506-046 (S) Syntax error.
make: 1254-004 The error code from the last command is 1.
Where can i get an older version of DBD-mysql to see if it will compile?
DBD-mysql-4.005
===============
OS
==
astracha@pvgfidst $ uname -a
AIX pvgfidst 3 5 00015A8ED700
MYSQL
=====
astracha@pvgfidst $ /usr/local/mysql/bin/mysql_config -v
Usage: /usr/local/mysql/bin/mysql_config [OPTIONS]
Options:
--cflags [-I/usr/local/mysql/include -ma -qstrict
-qoptimize=2 -qmaxmem=8192]
--include [-I/usr/local/mysql/include]
--libs [-L/usr/local/mysql/lib -lmysqlclient -lz
-lnsl_r -lm]
--libs_r [-L/usr/local/mysql/lib -lmysqlclient_r -lz
-lnsl_r -lm]
--socket [/tmp/mysql.sock]
--port [3306]
--version [5.0.24a]
--libmysqld-libs [-L/usr/local/mysql/lib -lmysqld -lz -lnsl_r
-lm -lrt]
root@pvgfidst # ps -ef | grep mysql
mysql 516218 893082 0 10:01:54 pts/2 0:00
/usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql
--datadir=/usr/local/mysql/data --user=mysql
--pid-file=/usr/local/mysql/data/pvgfidst.pid
root 893082 1 0 10:01:54 pts/2 0:00 /bin/sh
./bin/mysqld_safe --datadir=/usr/local/mysql/data
--pid-file=/usr/local/mysql/data/pvgfidst.pid
PERL
====
astracha@pvgfidst $ perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=aix, osvers=5.3.0.0, archname=aix-thread-multi
uname='aix pvgfidst 3 5 00015a8ed700 '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT
-I/usr/local/include -q32 -D_LARGE_FILES -qlonglong',
optimize='-O',
cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -I/usr/local/include'
ccversion='6.0.0.15', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='ld', ldflags =' -brtl -bdynamic -bmaxdata:0x80000000
-L/usr/local/lib -b32'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lpthreads -lc -lbsd
perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc -lbsd
libc=/lib/libc.a, so=a, useshrplib=true, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='
-bE:/usr/local/lib/perl5/5.8.8/aix-thread-multi/CORE/perl.exp'
cccdlflags=' ', lddlflags='-bhalt:4 -bexpall -G -bnoentry -lpthreads
-lc -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API
Built under aix
Compiled at Sep 27 2007 14:29:05
@INC:
/usr/local/lib/perl5/5.8.8/aix-thread-multi
/usr/local/lib/perl5/5.8.8
/usr/local/lib/perl5/site_perl/5.8.8/aix-thread-multi
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl
ERROR
=====
root@pvgfidst # export PATH=$PATH:/usr/local/mysql/bin
root@pvgfidst # which mysql_config
/usr/local/mysql/bin/mysql_config
root@pvgfidst # perl Makefile.PL
I will use the following settings for compiling and testing:
cflags (mysql_config) = -I/usr/local/mysql/include -ma
-qstrict -qoptimize=2 -qmaxmem=8192
embedded (mysql_config) =
libs (mysql_config) = -L/usr/local/mysql/lib -lmysqlclient
-lz -lnsl_r -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
Using DBI 1.601 (for perl 5.008008 on aix-thread-multi) installed in
/usr/local/lib/perl5/site_perl/5.8.8/aix-thread-multi/auto/DBI/
Writing Makefile for DBD::mysql
root@pvgfidst # 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/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
/usr/local/bin/perl -e 'use ExtUtils::Mksymlists;
Mksymlists("NAME" => "DBD::mysql", "DL_FUNCS" => { }, "FUNCLIST" => [],
"DL_VARS" => []);'
cc_r -c
-I/usr/local/lib/perl5/site_perl/5.8.8/aix-thread-multi/auto/DBI
-I/usr/local/mysql/include -ma -qstrict -qoptimize=2 -qmaxmem=8192
-DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_ALL_SOURCE -D_ANSI_C_SOURCE
-D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong
-O -DVERSION=\"4.005\" -DXS_VERSION=\"4.005\"
"-I/usr/local/lib/perl5/5.8.8/aix-thread-multi/CORE" dbdimp.c
"dbdimp.c", line 2591.9: 1506-046 (S) Syntax error.
make: 1254-004 The error code from the last command is 1.
MAKEFILE
========
Please see attached.
Subject: | Makefile |
Message body not shown because it is not plain text.