[GRASS-user] Compiling GRASS 6.4.0RC5 on AIX 5.3

Glynn Clements glynn at gclements.plus.com
Fri Dec 11 19:19:37 EST 2009


Mike Waldron wrote:

> I have gotten the configure to run successfully. Here is a portion of 
> the make that has a failure. It is in a library so this obviously has a 
> cascading effect of causing many other modules to fail to compile.

> /afs/isis.unc.edu/pkg/grass-6.4.0/.build/rs_aix53/grass-6.4.0RC5/ldAix

ISTR that the autoconf code for shared libraries was taken from
Tcl/Tk. However, we don't appear to include the ldAix script.
Presumably you added that manually?

> ld: 0706-006 Cannot find or open library file: -l grass_datetime
>         ld:open(): A file or directory in the path name does not exist.
> make[3]: *** 
> [/afs/isis.unc.edu/pkg/grass-6.4.0/.build/rs_aix53/grass-6.4.0RC5/dist.powerpc-ibm-aix5.3.0.0/lib/libgrass_gis.6.4.0RC5.so] 
> Error 255
> make[3]: Leaving directory 
> `/afs/isis.unc.edu/pkg/grass-6.4.0/.build/rs_aix53/grass-6.4.0RC5/lib/gis'
> 
> 
> What's odd here is that it did build the grass_datetime library earlier, 
> so I'm not sure why it can't find it.

Oh well. I'm not familiar with AIX linking, so I can't really offer
much advice. You might try bypassing the ldAix script with e.g.:

make SHLIB_LD='/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry -b64'

Or find a project which successfully builds shared libraries, and copy
the linking flags from that.

Or even seeing if there are some debug flags you can add in case they
provide any clues.

Failing that, the last resort would be to use --disable-shared to use
static libraries instead.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list