[hypermail] Compiling on AIX 5.2

From: James Kelly <J.Kelly_at_bom.gov.au_at_hypermail-project.org>
Date: Mon, 28 Jul 2003 22:43:31 +1000
Message-ID: <3F251A73.3040701_at_bom.gov.au>


Hi,

I ran into trouble compiling Hypermail on AIX 5.2 and am passing on my workaround... there may be a better way, which I'd be interested in hearing!

I downloaded Hypermail 2.1.8 onto an AIX 5.2 machine, and attempted to compile, which produced the following error: ....
gcc -g -O2 -Ipcre -DTRIO_MINIMAL -I. -I. -o dftables dftables.o ld: 0711-317 ERROR: Undefined symbol: .__strtollmax

FYI, I then did the following to get the compilation working. First, as a sanity check, tried to compile on AIX 4.3.3. This failed using gcc, but if I set CC to be xlc, it worked beautifully (ie export CC=xlc)

Then on the AIX 5.2 machine:
1) export CC=xlc
2) configure

     (this didn't cause the compiler to be set to xlc instead of gcc as on the AIX 4.3.3 machine, so step 1 was probably a waste of time on 5.2) 3) manually edited the Makefiles:

hypermail-2.1.8/Makefile
hypermail-2.1.8/src/Makefile
hypermail-2.1.8/src/pcre/Makefile

to manually change
CC = gcc
to
CC = xlc
4) finally, commented out the following lines from trio.c /*
# define floorl(x) floor((double)(x))
# define fmodl(x,y) fmod((double)(x),(double)(y))
# define powl(x,y) pow((double)(x),(double)(y))
 */

Then the compile completed successfully, and was able to do the install.

Cheers,

James Received on Mon 28 Jul 2003 05:10:56 PM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:54 PM GMT GMT