Compiling on AIX 5.2

---------

From: James Kelly (J.Kelly@bom.gov.au)
Date: Mon Jul 28 2003 - 07:43:31 CDT


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


---------

This archive was generated by hypermail 2.1.7.