[GRASS-dev] compilation of grass on AIX 7.1

Markus Metz markus.metz.giswork at gmail.com
Fri Mar 22 01:30:52 PDT 2013


On Fri, Mar 22, 2013 at 5:28 AM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> Markus Neteler wrote:
>>
>> grass-7.0.svn/lib/datetime> make
>> o /afs/cluster/myuser/private/software/grass-7.0.svn/dist.powerpc-ibm-aix5.3.0.0/lib/libgrass_datetime.7.0.svn.so
>
>> make: o: Command not found
>
> This suggests that SHLIB_LD is empty, so the command:
>
>         $(SHLIB_LD) -o $@ $(LDFLAGS) $^ $(LIBES) $(EXTRA_LIBS) $(MATHLIB)
>
> reduces to:
>
>         -o $@ $(LDFLAGS) $^ $(LIBES) $(EXTRA_LIBS) $(MATHLIB)
>
> A leading dash is interpreted by make as a flag which causes errors to
> be ignored. So it interprets the "o" as the name of the program.
>
> And indeed, the *aix* section in SC_CONFIG_CFLAGS doesn't define
> SHLIB_LD, so you'll need to use --disable-shared.

You could also try to set

SHLIB_LD="${CC} -shared"

in aclocal.m4 or patch it into configure in the aix section.

Markus M


More information about the grass-dev mailing list