GNOME Bugzilla – Bug 653004
can't be build on rhel-6 with autotool
Last modified: 2012-08-18 17:25:12 UTC
if i try to rebuild pango 1.28.4 on rhel-6.x with autotool ie: aclocal autoreconf libtoolize than it will fail since pango need newer autotools ie currently on rhel-6: libtool-2.2.6-15.5 autoconf-2.63-5.1 automake-1.11.1-1.2 -------------------------------- + aclocal acinclude.m4:68: the serial number must appear before any macro definition configure.in:138: warning: macro `AM_DISABLE_STATIC' not found in library configure.in:151: warning: macro `AM_PROG_LIBTOOL' not found in library + autoreconf acinclude.m4:68: the serial number must appear before any macro definition configure.in:138: warning: macro `AM_DISABLE_STATIC' not found in library configure.in:151: warning: macro `AM_PROG_LIBTOOL' not found in library configure.in:137: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:138: error: possibly undefined macro: AM_DISABLE_STATIC configure.in:151: error: possibly undefined macro: AM_PROG_LIBTOOL autoreconf: /usr/bin/autoconf failed with exit status: 1 -------------------------------- the real problem if i try to cross compile pango with mingw-64 on rhel-6 without this above step ie. rerun the autotools needed otherwise i''ve got this error at the make stage: -------------------------------- + make -C build_win32 make: Entering directory `/builddir/build/BUILD/pango-1.28.4/build_win32' CDPATH="${ZSH_VERSION+.}:" && cd .. && /bin/sh /builddir/build/BUILD/pango-1.28.4/missing --run aclocal-1.11 acinclude.m4:68: the serial number must appear before any macro definition cd .. && /bin/sh /builddir/build/BUILD/pango-1.28.4/missing --run automake-1.11 --gnits gtk-doc.make:53: GTK_DOC_BUILD_HTML does not appear in AM_CONDITIONAL docs/Makefile.am:101: `gtk-doc.make' included from here gtk-doc.make:58: GTK_DOC_BUILD_PDF does not appear in AM_CONDITIONAL docs/Makefile.am:101: `gtk-doc.make' included from here make: *** [../Makefile.in] Error 1 make: Leaving directory `/builddir/build/BUILD/pango-1.28.4/build_win32' -------------------------------- and if i try to run with the above autotool rerun i've got this error: -------------------------------- + aclocal acinclude.m4:68: the serial number must appear before any macro definition + autoreconf acinclude.m4:68: the serial number must appear before any macro definition gtk-doc.make:53: GTK_DOC_BUILD_HTML does not appear in AM_CONDITIONAL docs/Makefile.am:101: `gtk-doc.make' included from here gtk-doc.make:58: GTK_DOC_BUILD_PDF does not appear in AM_CONDITIONAL docs/Makefile.am:101: `gtk-doc.make' included from here autoreconf: automake failed with exit status: 1 -------------------------------- so is there any way to be able to cross compile pango on rhel-6? (all other gtk related package can be rebuild except pango:-( thanks in advance.
You're not supposed to run those commands. You should run configure.
if i do NOT run those command then the build failed. as you can see in the above second case when only run make after configure than make has problems with gtk-doc.make. see also: http://bugs.gentoo.org/318475 http://forums.gentoo.org/viewtopic-t-831336.html?sid=f12b3c4aa48a87b47f46c3118d62687e
actually the real problem why pango try to configure gtk-doc when configure called with --disable-gtk-doc-html --disable-gtk-doc-pdf --disable-gtk-doc