W3C home > Mailing lists > Public > www-amaya-dev@w3.org > October 2003

Re: AIX 4.2 fails to build

From: Irene Vatton <irene.vatton@inrialpes.fr>
Date: Thu, 16 Oct 2003 09:44:03 +0200
To: Riccardo Mottola <zuse@libero.it>
Cc: www-amaya-dev@w3.org
Message-Id: <20031016094403.60dce75c.irene.vatton@inrialpes.fr>

On Mon, 13 Oct 2003 21:04:08 +0200
Riccardo Mottola <zuse@libero.it> wrote:

> 
> on 10/13/03 4:06 PM, Irene Vatton at irene.vatton@inrialpes.fr wrote:
> 
> > 
> > I suggest that change in the file Amaya/thotlib/base/fileaccess.c:
> > #if     __BYTE_ORDER == __BIG_ENDIAN
> <snip>
> 
> Ok, that made good progress, thanks. Now the build stops further on.
> 
> (There are many, many redefinitions)
> 
> <snip>
> gmake[1]: Entering directory `/usr/local/build/Amaya/r6k/thotlib'
> gcc -O2 -W  -D_I18N_  -DHAVE_CONFIG_H -I.. -I../../amaya/xpm
> -I../../tablelib/f -I../../thotlib/include -I../../thotlib/internals/var
> -I../../thotlib/internals/h -I../../thotlib/internals/f -I../../libjpeg
> -I/usr/include/Motif1.2    -c ../../thotlib/unicode/ustring.c -o
> unicode/ustring.o In file included from ../../thotlib/unicode/ustring.c:15:
> .../../thotlib/include/thot_sys.h:33: warning: `M_PI' redefined
> /usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.3/include/math.h:234:
> warning:
>  this is the location of the previous definition
> .../../thotlib/include/thot_sys.h:34: warning: `M_PI_2' redefined
> /usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.3/include/math.h:235:
> warning: this is the location of the previous definition
> .../../thotlib/unicode/ustring.c:114: conflicting types for `wcstok'
> /usr/include/wchar.h:155: previous declaration of `wcstok'
> gmake[1]: *** [unicode/ustring.o] Error 1
> 
> Greetings,
> Riccardo

Could you test that change in Amaya/thotlib/include/thot_sys.h
+ #ifndef M_PI
  #define M_PI            3.14159265358979323846  /* pi */
  #define M_PI_2          1.57079632679489661923  /* pi/2 */
+ #endif

     Irene.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: Irene.Vatton@inria.fr       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France
Received on Thursday, 16 October 2003 03:44:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:25:49 UTC