Hi,<br><br> While running configure script for Cairo 1.8.6 on AIX, I got the below error.<br><br>configure:12762: checking how to run the C preprocessor<br>configure:12878: result: /usr/vac/bin/xlc_r -E<br>configure:12907: /usr/vac/bin/xlc_r -E conftest.c<br>
"conftest.c", line 19.9: 1506-213 (S) Macro name PACKAGE_VERSION cannot be redefined.<br>"conftest.c", line 19.9: 1506-358 (I) "PACKAGE_VERSION" is defined on line 4 of conftest.c.<br>"conftest.c", line 20.9: 1506-213 (S) Macro name PACKAGE_STRING cannot be redefined.<br>
"conftest.c", line 20.9: 1506-358 (I) "PACKAGE_STRING" is defined on line 5 of conftest.c.<br>"conftest.c", line 21.9: 1506-213 (S) Macro name PACKAGE_NAME cannot be redefined.<br>"conftest.c", line 21.9: 1506-358 (I) "PACKAGE_NAME" is defined on line 2 of conftest.c.<br>
"conftest.c", line 22.9: 1506-213 (S) Macro name PACKAGE_TARNAME cannot be redefined.<br>"conftest.c", line 22.9: 1506-358 (I) "PACKAGE_TARNAME" is defined on line 3 of conftest.c.<br>configure:12913: $? = 1<br>
configure: failed program was:<br>| /* confdefs.h. */<br>| #define PACKAGE_NAME "cairo"<br>| #define PACKAGE_TARNAME "cairo"<br>| #define PACKAGE_VERSION "1.8.6"<br>| #define PACKAGE_STRING "cairo 1.8.6"<br>
| #define PACKAGE_BUGREPORT "<a href="http://bugs.freedesktop.org/enter_bug.cgi?product=cairo">http://bugs.freedesktop.org/enter_bug.cgi?product=cairo</a>"<br>| #define STDC_HEADERS 1<br>| #define HAVE_SYS_TYPES_H 1<br>
| #define HAVE_SYS_STAT_H 1<br>| #define HAVE_STDLIB_H 1<br>| #define HAVE_STRING_H 1<br>| #define HAVE_MEMORY_H 1<br>| #define HAVE_STRINGS_H 1<br>| #define HAVE_INTTYPES_H 1<br>| #define HAVE_STDINT_H 1<br>| #define HAVE_UNISTD_H 1<br>
| #define HAVE_DLFCN_H 1<br>| #define LT_OBJDIR ".libs/"<br>| #define PACKAGE_VERSION USE_cairo_version_OR_cairo_version_string_INSTEAD<br>| #define PACKAGE_STRING USE_cairo_version_OR_cairo_version_string_INSTEAD<br>
| #define PACKAGE_NAME USE_cairo_INSTEAD<br>| #define PACKAGE_TARNAME USE_cairo_INSTEAD<br>| /* end confdefs.h. */<br>| #ifdef __STDC__<br>| # include <limits.h><br>| #else<br>| # include <assert.h><br>| #endif<br>
| Syntax error<br><br><br>To eliminate the above error I had made changes in the 2 files. Can someone advise if these changes are appropriate ?<br><br>1. ./configure <br><br> Removed the below lines from the configure script.<br>
<br><br>cat >>confdefs.h <<\_ACEOF<br>#define PACKAGE_VERSION USE_cairo_version_OR_cairo_version_string_INSTEAD<br>_ACEOF<br><br>cat >>confdefs.h <<\_ACEOF<br>#define PACKAGE_STRING USE_cairo_version_OR_cairo_version_string_INSTEAD<br>
_ACEOF<br><br>cat >>confdefs.h <<\_ACEOF<br>#define PACKAGE_NAME USE_cairo_INSTEAD<br>_ACEOF<br><br>cat >>confdefs.h <<\_ACEOF<br>#define PACKAGE_TARNAME USE_cairo_INSTEAD<br>_ACEOF<br><br>2. ./build/configure.ac.version<br>
<br> Removed the below lines.<br><br>dnl Disable autoconf's version macros. We try hard to not rebuild the entire<br>dnl library just because version changed. The PACKAGE_VERSION* stuff in<br>dnl config.h is negating all the effort.<br>
AC_DEFINE(PACKAGE_VERSION, [USE_cairo_version_OR_cairo_version_string_INSTEAD])<br>AC_DEFINE(PACKAGE_STRING, [USE_cairo_version_OR_cairo_version_string_INSTEAD])<br>AC_DEFINE(PACKAGE_NAME, [USE_cairo_INSTEAD])<br>
AC_DEFINE(PACKAGE_TARNAME, [USE_cairo_INSTEAD])<br><br>Regards,<br>Shailendra<br><br><br><br>