Hi,

I'm trying to build apr and apr-util on the latest mingw32 (gcc 4.4.0). Unfortunately it doesn't work for me out of the box. apr from svn looks ok but apr-util fails.

At First I tried apr 1.3.7. It built but a lot of tests didn't pass.
I then moved to the apr-1.3.x (r802927) trunk from svn, it built and all tests passed. :)

I got two warning messages running ./buildconf. I don't know if they are real problems?

>>> apr buildconf

$ ./buildconf
buildconf: checking installation...
buildconf: python version 2.5.1 (ok)
buildconf: autoconf version 2.63 (ok)
buildconf: libtool version 2.2.7a (ok)
Copying libtool helper files ...
buildconf: Using libtool.m4 at /mingw/share/aclocal/libtool.m4.
Creating include/arch/unix/apr_private.h.in ...
configure.in:190: warning: LTOBSOLETE_VERSION is m4_require'd but not m4_defun'd
build/libtool.m4:102: LT_INIT is expanded from...
build/libtool.m4:105: AC_PROG_LIBTOOL is expanded from...
configure.in:190: the top level
Creating configure ...
configure.in:190: warning: LTOBSOLETE_VERSION is m4_require'd but not m4_defun'd
build/libtool.m4:102: LT_INIT is expanded from...
build/libtool.m4:105: AC_PROG_LIBTOOL is expanded from...
configure.in:190: the top level
Generating 'make' outputs ...
passwd/apr_getpass.c
strings/apr_cpystrn.c
...


I don't have success with apr-util. apr-util 1.3.8 builds, but I can't run the tests. testall.exe fails with a "(null).dll missing" error. I guess this is a mingw/windows issue as it fails before the code enters main.

I'm now trying apr-util 1.3.x from svn (r804010). Expats buildconf reports a number of warnings and when I run configure, the configure in expat fails.

Any idea what's going wrong here?



$ ./buildconf --with-apr=../apr-1.3.x

Looking for apr source in /C/Development/svn-1.6.3-build/apr-1.3.x
Creating include/private/apu_config.h ...
Creating configure ...
Generating 'make' outputs ...
buckets/apr_brigade.c
[skipped rest of apr-util output]
...
Invoking xml/expat/buildconf.sh ...
Copying libtool helper files ...
Incorporating /mingw/share/aclocal/libtool.m4 into aclocal.m4 ...
Creating config.h.in ...
autoheader-2.63: WARNING: Using auxiliary files such as `acconfig.h', 
`config.h.bot'
autoheader-2.63: WARNING: and `config.h.top', to define templates for 
`config.h.in'
autoheader-2.63: WARNING: is deprecated and discouraged.
autoheader-2.63:
autoheader-2.63: WARNING: Using the third argument of `AC_DEFINE' and
autoheader-2.63: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader-2.63: WARNING: `acconfig.h':
autoheader-2.63:
autoheader-2.63: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader-2.63:                [Define if a function `main' is needed.])
autoheader-2.63:
autoheader-2.63: WARNING: More sophisticated templates can also be produced, 
see the
autoheader-2.63: WARNING: documentation.
configure.in:57: warning: LTOPTIONS_VERSION is m4_require'd but not m4_defun'd
aclocal.m4:104: LT_INIT is expanded from...
aclocal.m4:107: AC_PROG_LIBTOOL is expanded from...
configure.in:57: the top level
configure.in:57: warning: LTSUGAR_VERSION is m4_require'd but not m4_defun'd
configure.in:57: warning: LTVERSION_VERSION is m4_require'd but not m4_defun'd
configure.in:57: warning: LTOBSOLETE_VERSION is m4_require'd but not m4_defun'd
Creating configure ...
configure.in:57: warning: LTOPTIONS_VERSION is m4_require'd but not m4_defun'd
aclocal.m4:104: LT_INIT is expanded from...
aclocal.m4:107: AC_PROG_LIBTOOL is expanded from...
configure.in:57: the top level
configure.in:57: warning: LTSUGAR_VERSION is m4_require'd but not m4_defun'd
configure.in:57: warning: LTVERSION_VERSION is m4_require'd but not m4_defun'd
configure.in:57: warning: LTOBSOLETE_VERSION is m4_require'd but not m4_defun'd
configure.in:56: 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:2103: error: possibly undefined macro: m4_ifval
configure:6637: error: possibly undefined macro: _LT_SET_OPTIONS
configure:6637: error: possibly undefined macro: LT_INIT
rebuilding rpm spec file

$ CFLAGS=-g ./configure --prefix=/C/Development/svn-1.6.3 --with-apr=/C/Development/svn-1.6.3 --with-expat='builtin'
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking for working mkdir -p... yes
APR-util Version: 1.3.10
...
configuring package in xml/expat now
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
/C/Development/svn-1.6.3-build/apr-util-1.3.x/xml/expat/configure: line 2101: syntax error near unexpected token `lt_decl_varnames,' /C/Development/svn-1.6.3-build/apr-util-1.3.x/xml/expat/configure: line 2101: `lt_if_append_uniq(lt_decl_varnames,SHELL, , ,'
configure failed for xml/expat


The content at line 2101 looks like this:

lt_if_append_uniq(lt_decl_varnames, SHELL, , ,
    lt_dict_add_subkey([lt_decl_dict], [SHELL], [libtool_name],
        [m4_ifval([], [], [SHELL])])
    lt_dict_add_subkey([lt_decl_dict], [SHELL], [value], [1])
    m4_ifval([Shell to use when invoking shell scripts],
[lt_dict_add_subkey([lt_decl_dict], [SHELL], [description], [Shell to use when invoking shell scripts])])
    lt_dict_add_subkey([lt_decl_dict], [SHELL],
        [tagged?], [m4_ifval([], [yes], [no])]))


--
Martin

Reply via email to