Re: Problem compiling mysql 4.1.11 on AIX 5.1

2005-05-09 Thread Jon Earle

Joerg Bruehe said:
 Still, this seems to be a problem with the header files supplied / used
 by gcc. Are you sure you used the fixincludes script?

Hi Joerg,

I tried your suggestion as per:

cd /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/
mv include inc
cd install-tools
export TARGET_MACHINE=AIX
./fixinc.sh /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include

From fixinc.sh, I was getting errors saying that TARGET_MACHINE was not
defined, so I took a stab in the dark and set it to AIX (couldn't find any
docs to suggest anything else...)  It seemed to run to completion after that.

When I ran MySQL's configure, modified as per a number of posts regarding
openssl directives to be:

./configure \
--prefix=/usr2/tools/mysql \
--with-big-tables \
--with-low-memory \
--with-vio \
--with-openssl \
--with-openssl-includes=/usr2/tools/openssl/include \
--with-openssl-libs=/usr2/tools/openssl/lib \
--without-extra-tools \
--without-docs \
--without-bench \
--enable-local-infile

I then received many errors of the form:

...
checking dlfcn.h usability... no
checking dlfcn.h presence... yes
configure: WARNING: dlfcn.h: present but cannot be compiled
configure: WARNING: dlfcn.h: check for missing prerequisite headers?
configure: WARNING: dlfcn.h: see the Autoconf documentation
configure: WARNING: dlfcn.h: section Present But Cannot Be Compiled
configure: WARNING: dlfcn.h: proceeding with the preprocessor's result
configure: WARNING: dlfcn.h: in the future, the compiler will take precedence
configure: WARNING: ## -- ##
configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING: ## -- ##
checking for dlfcn.h... yes
...

The config.log showed (for the above error, similar messages were emitted for
other errors):

...
configure:5338: checking dlfcn.h usability
configure:5350: gcc -c -Wa,-many -maix64conftest.c 5
In file included from conftest.c:23:
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/stdio.h:268:
error: parse error before __gnuc_va_list
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/stdio.h:269:
error: parse error before __gnuc_va_list
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/stdio.h:270:
error: parse error before __gnuc_va_list
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/stdio.h:272:
error: parse error before __gnuc_va_list
In file included from conftest.c:23:
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/stdio.h:474:
error: parse error before __gnuc_va_list
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/stdio.h:475:
error: parse error before __gnuc_va_list
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/stdio.h:476:
error: parse error before __gnuc_va_list
...

The last configure message was:

...
checking for char... no
checking size of char... 0
configure: error: No size for char type.
A likely cause for this could be that there isn't any
static libraries installed. You can verify this by checking if you have libm.a
in /lib, /usr/lib or some other standard place.  If this is the problem,
install the static libraries and try again.  If this isn't the problem,
examine config.log for possible errors.  If you want to report this, use
'scripts/mysqlbug' and include at least the last 20 rows from config.log!

So, it appears I've made things worse.  :(

Any ideas where to go from here?

Cheers!
Jon


-- 
Jon Earle
Software Developer / Network Manager
Specialising in Open Source Software Solutions
http://kronos.honk.org/~earlej/

Rocket science is a lot more fun when you actually have rockets.  -- US
Navy Ad


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



MySQL on AIX 5.1

2005-05-09 Thread Jon Earle
Hi folks,

I need to get a version of MySQL running on AIX 5.1, but I see that the only
versions available are for v5.2 and v4.3.3.  I tried both versions (32 and
64-bit) for 5.2 on my 5.1 box, but received this error when trying to
install:

[EMAIL PROTECTED] mysql] bin/resolveip
exec(): 0509-036 Cannot load program bin/resolveip because of the following
errors:
0509-130 Symbol resolution failed for resolveip because:
0509-136   Symbol _isinf (number 44) is not exported from
   dependent module /usr/lib/libc.a(shr.o).
0509-192 Examine .loader section symbols with the
 'dump -Tv' command.

It is possible to get a current working version for 5.1?  For the life of me,
I cannot get 4.1.11 to compile under this OS using gcc and not having another
compiler at hand, I'm kinda down a dead-end road.

Note:  I just installed 4.1.10a for AIX 4.3.3 and resolveip seems to work. 
Would still like to get a current version (4.1.11 for AIX5.1), or get it to
compile.

Cheers!
Jon

-- 
Jon Earle
Software Developer / Network Manager
Specialising in Open Source Software Solutions
http://kronos.honk.org/~earlej/

Rocket science is a lot more fun when you actually have rockets.  -- US
Navy Ad


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Problem compiling mysql 4.1.11 on AIX 5.1

2005-05-06 Thread Jon Earle
[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr1/acct/jonathan/ostk/build/mysql-4.1.11'
make: *** [all] Error 2

I then did a make distclean, changed CXX from gcc to g++, reran configure and
make.  This time I got as far as the link stage, where I got a rash of
undefined OpenSSL symbols.  I only have static openssl libs, plus they're
64-bit, so I'm currently a) rebuilding openssl to include shared libs and b)
adding the right option to build mysql in 64-bit mode.  I will see if I get
further.

As of now, I believe my Qs are:

1. What is the correct usage of curses, term and termcap?  Which do I need? 
And why don't the MySQL folks run into this problem - what's their AIX 5.1
environment like that gives them a smooth compilation?

2. The docs say that using CXX=gcc (to use gcc as a c++ compiler) is
preferable.  Why does it seem to fail for me, forcing me to using the true
g++ compiler?

Many thanks!
Jon

-- 
Jon Earle
Software Developer / Network Manager
Specialising in Open Source Software Solutions
http://kronos.honk.org/~earlej/

Rocket science is a lot more fun when you actually have rockets.  -- US
Navy Ad


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]