[libXau] cannot compile libXau-0.1.1 on aix: wrong compiler option
'-include'
José AUGUSTE-ETIENNE
jose.auguste-etienne at cgss-guyane.fr
Thu Mar 25 05:07:27 PST 2004
Hi everybody,
When attempting to build libXau-0.1.1 on aix 4.3.1 with IBM/ANSI-C
compiler VAC 5.0.7,
I got this error
make all-am
make[1]: Entering directory `/local/temp/src/libXau-0.1.1'
source='AuDispose.c' object='AuDispose.lo' libtool=yes \
depfile='.deps/AuDispose.Plo' tmpdepfile='.deps/AuDispose.TPlo' \
depmode=aix /bin/sh ./depcomp \
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.
-I/local/include -include config.h -I/local/include -g -c -o
AuDispose.lo `test -f 'AuDispose.c' || echo './'`AuDispose.c
cc -DHAVE_CONFIG_H -I. -I. -I. -I/local/include -include config.h
-I/local/include -g -c -M AuDispose.c -DPIC
cc: 1501-218 file config.h contains an incorrect file suffix
make[1]: *** [AuDispose.lo] Error 1
make[1]: Leaving directory `/local/temp/src/libXau-0.1.1'
make: *** [all] Error 2
-I/local/include -include config.h -I/local/include -g -c -o
^^^^^^^^^^^^^^^^^^
atually '-include' is not a valid compiler option
FWIW, here's the patches I used to remove it from the Makefile
generation
Hope this helps
José
*** Makefile.in.orig Thu Mar 25 09:47:45 2004
--- Makefile.in Thu Mar 25 09:48:35 2004
***************
*** 146,152 ****
target_alias = @target_alias@
lib_LTLIBRARIES = libXau.la
! AM_CFLAGS = -include config.h $(XAU_CFLAGS)
libXau_la_LDFLAGS = -version-number 0:0:0 -no-undefined
--- 146,152 ----
target_alias = @target_alias@
lib_LTLIBRARIES = libXau.la
! AM_CFLAGS = $(XAU_CFLAGS)
libXau_la_LDFLAGS = -version-number 0:0:0 -no-undefined
*** Makefile.am.orig Thu Mar 25 09:47:38 2004
--- Makefile.am Thu Mar 25 09:48:22 2004
***************
*** 1,6 ****
lib_LTLIBRARIES = libXau.la
! AM_CFLAGS=-include config.h $(XAU_CFLAGS)
libXau_la_LDFLAGS = -version-number 0:0:0 -no-undefined
--- 1,6 ----
lib_LTLIBRARIES = libXau.la
! AM_CFLAGS= $(XAU_CFLAGS)
libXau_la_LDFLAGS = -version-number 0:0:0 -no-undefined
More information about the xlibs
mailing list