[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix compilation error on AIX
From: |
Bruno Haible |
Subject: |
Fix compilation error on AIX |
Date: |
Mon, 22 Feb 2021 00:31:15 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-201-generic; KDE/5.18.0; x86_64; ; ) |
On AIX 7.1 (with both gcc and xlc) I get this compilation error:
-------------------------------------------------------------------------------
gcc -maix64 -DHAVE_CONFIG_H -I. -I../../jitter -I./config-private -I./jitter
-I./gnulib-local -I../../jitter/gnulib-local
-DJITTER_FLAGDIR=/home/haible/poke-0.90/build-64-gcc/jitter/flags
-DJITTER_TEMPLATEDIR=/home/haible/poke-0.90/build-64-gcc/jitter/../../jitter/templates
-DJITTER_INTERNAL=1 -I/home/haible/prefix64/include -Wall -g -O2 -MT
jitterc/bin_jitter-jitterc-main.o -MD -MP -MF
jitterc/.deps/bin_jitter-jitterc-main.Tpo -c -o
jitterc/bin_jitter-jitterc-main.o `test -f 'jitterc/jitterc-main.c' || echo
'../../jitter/'`jitterc/jitterc-main.c
In file included from ../../jitter/jitterc/jitterc-vm.h:26,
from ../../jitter/jitterc/jitterc-main.c:39:
./config-private/config.h:280: warning: "HAVE_DECL_PROGRAM_INVOCATION_NAME"
redefined
#define HAVE_DECL_PROGRAM_INVOCATION_NAME 0
In file included from ../../jitter/jitterc/jitterc-main.c:26:
../../jitter/gnulib-local/argp.h:422: note: this is the location of the
previous definition
# define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
In file included from ../../jitter/jitterc/jitterc-vm.h:26,
from ../../jitter/jitterc/jitterc-main.c:39:
./config-private/config.h:284: warning:
"HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME" redefined
#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0
In file included from ../../jitter/jitterc/jitterc-main.c:26:
../../jitter/gnulib-local/argp.h:428: note: this is the location of the
previous definition
# define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
In file included from ./gnulib-local/sys/types.h:39,
from
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8.3.0/include-fixed/stdio.h:503,
from ./gnulib-local/stdio.h:43,
from ../../jitter/gnulib-local/argp.h:22,
from ../../jitter/jitterc/jitterc-main.c:26:
../../jitter/jitterc/jitterc-parser.h:152:5: error: expected identifier before
numeric constant
TRUE = 297, /* TRUE */
^~~~
In file included from ../../jitter/jitterc/jitterc-main.c:42:
../../jitter/jitterc/jitterc-parser.h:231: warning: "TRUE" redefined
#define TRUE 297
In file included from ./gnulib-local/sys/types.h:39,
from
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8.3.0/include-fixed/stdio.h:503,
from ./gnulib-local/stdio.h:43,
from ../../jitter/gnulib-local/argp.h:22,
from ../../jitter/jitterc/jitterc-main.c:26:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8.3.0/include-fixed/sys/types.h:533:
note: this is the location of the previous definition
#define TRUE 1
In file included from ../../jitter/jitterc/jitterc-main.c:42:
../../jitter/jitterc/jitterc-parser.h:232: warning: "FALSE" redefined
#define FALSE 298
In file included from ./gnulib-local/sys/types.h:39,
from
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8.3.0/include-fixed/stdio.h:503,
from ./gnulib-local/stdio.h:43,
from ../../jitter/gnulib-local/argp.h:22,
from ../../jitter/jitterc/jitterc-main.c:26:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8.3.0/include-fixed/sys/types.h:536:
note: this is the location of the previous definition
#define FALSE 0
make: 1254-004 The error code from the last command is 1.
-------------------------------------------------------------------------------
On this platform, <sys/types.h> defines FALSE and TRUE as macros.
I know of no better fix than to undefine them. Proposed patch (tested) attached.
0006-Fix-compilation-errors-on-AIX-7.patch
Description: Text Data
- Fix compilation error on AIX,
Bruno Haible <=
- Re: Fix compilation error on AIX, Luca Saiu, 2021/02/22
- Re: Fix compilation error on AIX, Bruno Haible, 2021/02/23
- Jitter tag v0.9.255, updated submodule in poke [Re: Fix compilation error on AIX], Luca Saiu, 2021/02/23
- Re: Jitter tag v0.9.255, updated submodule in poke, Bruno Haible, 2021/02/23
- Re: Jitter tag v0.9.255, updated submodule in poke, Luca Saiu, 2021/02/23