Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#15640 closed defect (invalid)

apr-util 1.3.0 build failure on Leopard

Reported by: spambox@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: apr-util subversion failure Cc:
Port:

Description

This package refuses to build on my MacBook with a relatively fresh install of Leopard (< 1 month old). I have run 'port selfupdate', cleaned and retried but it fails reliably. This, along with the sqlite3 problems in #13305 are serious problems as they prevent or cause problems for the build of subversion.

$ sudo port install subversion
--->  Building apr-util with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0" && make all " returned error 2
Command output: /bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include/private -I/opt/local/include  -I/opt/local/include/apr-1  -I/opt/local/include  -o buckets/apr_brigade.lo -c buckets/apr_brigade.c && touch buckets/apr_brigade.lo
buckets/apr_brigade.c: In function 'apr_brigade_partition':
buckets/apr_brigade.c:140: error: 'APR_SIZE_MAX' undeclared (first use in this function)
buckets/apr_brigade.c:140: error: (Each undeclared identifier is reported only once
buckets/apr_brigade.c:140: error: for each function it appears in.)
make[1]: *** [buckets/apr_brigade.lo] Error 1
make: *** [all-recursive] Error 1

Error: The following dependencies failed to build: apr-util neon
Error: Status 1 encountered during processing.
gordon-morehouses-macbook:~ neuro$ sudo port clean apr-util
--->  Cleaning apr-util
gordon-morehouses-macbook:~ neuro$ sudo port install apr-util
--->  Fetching apr-util
--->  Verifying checksum(s) for apr-util
--->  Extracting apr-util
--->  Configuring apr-util
--->  Building apr-util with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0" && make all " returned error 2
Command output: /bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include/private -I/opt/local/include  -I/opt/local/include/apr-1  -I/opt/local/include  -o buckets/apr_buckets_pipe.lo -c buckets/apr_buckets_pipe.c && touch buckets/apr_buckets_pipe.lo
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include/private -I/opt/local/include  -I/opt/local/include/apr-1  -I/opt/local/include  -o buckets/apr_buckets_flush.lo -c buckets/apr_buckets_flush.c && touch buckets/apr_buckets_flush.lo
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include/private -I/opt/local/include  -I/opt/local/include/apr-1  -I/opt/local/include  -o buckets/apr_buckets_alloc.lo -c buckets/apr_buckets_alloc.c && touch buckets/apr_buckets_alloc.lo
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include/private -I/opt/local/include  -I/opt/local/include/apr-1  -I/opt/local/include  -o buckets/apr_buckets_pool.lo -c buckets/apr_buckets_pool.c && touch buckets/apr_buckets_pool.lo
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include/private -I/opt/local/include  -I/opt/local/include/apr-1  -I/opt/local/include  -o buckets/apr_buckets_socket.lo -c buckets/apr_buckets_socket.c && touch buckets/apr_buckets_socket.lo
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include/private -I/opt/local/include  -I/opt/local/include/apr-1  -I/opt/local/include  -o buckets/apr_buckets_heap.lo -c buckets/apr_buckets_heap.c && touch buckets/apr_buckets_heap.lo
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include/private -I/opt/local/include  -I/opt/local/include/apr-1  -I/opt/local/include  -o buckets/apr_buckets_simple.lo -c buckets/apr_buckets_simple.c && touch buckets/apr_buckets_simple.lo
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include/private -I/opt/local/include  -I/opt/local/include/apr-1  -I/opt/local/include  -o buckets/apr_buckets_file.lo -c buckets/apr_buckets_file.c && touch buckets/apr_buckets_file.lo
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include/private -I/opt/local/include  -I/opt/local/include/apr-1  -I/opt/local/include  -o buckets/apr_buckets.lo -c buckets/apr_buckets.c && touch buckets/apr_buckets.lo
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include/private -I/opt/local/include  -I/opt/local/include/apr-1  -I/opt/local/include  -o buckets/apr_buckets_mmap.lo -c buckets/apr_buckets_mmap.c && touch buckets/apr_buckets_mmap.lo
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include/private -I/opt/local/include  -I/opt/local/include/apr-1  -I/opt/local/include  -o buckets/apr_buckets_eos.lo -c buckets/apr_buckets_eos.c && touch buckets/apr_buckets_eos.lo
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.0/include/private -I/opt/local/include  -I/opt/local/include/apr-1  -I/opt/local/include  -o buckets/apr_brigade.lo -c buckets/apr_brigade.c && touch buckets/apr_brigade.lo
buckets/apr_brigade.c: In function 'apr_brigade_partition':
buckets/apr_brigade.c:140: error: 'APR_SIZE_MAX' undeclared (first use in this function)
buckets/apr_brigade.c:140: error: (Each undeclared identifier is reported only once
buckets/apr_brigade.c:140: error: for each function it appears in.)
make[1]: *** [buckets/apr_brigade.lo] Error 1
make: *** [all-recursive] Error 1

Error: Status 1 encountered during processing.

I am attaching the log of 'sudo port -dt destroot apr-util' after I ran 'sudo port clean apr-util' separately.

Attachments (1)

logfile.txt (30.2 KB) - added by spambox@… 12 years ago.
port -dt destroot apr-util

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by spambox@…

Attachment: logfile.txt added

port -dt destroot apr-util

comment:1 Changed 12 years ago by danielluke (Daniel J. Luke)

Resolution: invalid
Status: newclosed

I've seen this error when building apr-util against the 1.2.x version of apr.

You need to upgrade apr to 1.3.0 before installing apr-util.

comment:2 Changed 11 years ago by paolo.risso@…

Hello, I have the same problem,

I use macports 1.6 and I suppose last version of apr-util the command port -dt destroot apr-util

gave this output:

DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/apr-util
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/apr-util
DEBUG: Requested variant darwin is not provided by port apr-util.
DEBUG: Requested variant i386 is not provided by port apr-util.
DEBUG: Requested variant macosx is not provided by port apr-util.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/apr
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/apr
DEBUG: Requested variant darwin is not provided by port apr.
DEBUG: Requested variant i386 is not provided by port apr.
DEBUG: Requested variant macosx is not provided by port apr.
DEBUG: Searching for dependency: apr
DEBUG: Found Dependency: receipt exists for apr
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: Requested variant darwin is not provided by port expat.
DEBUG: Requested variant i386 is not provided by port expat.
DEBUG: Requested variant macosx is not provided by port expat.
DEBUG: Searching for dependency: expat
DEBUG: Found Dependency: receipt exists for expat
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Requested variant darwin is not provided by port libiconv.
DEBUG: Requested variant i386 is not provided by port libiconv.
DEBUG: Requested variant macosx is not provided by port libiconv.
DEBUG: Searching for dependency: libiconv
DEBUG: Found Dependency: receipt exists for libiconv
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/db46
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/db46
DEBUG: Requested variant darwin is not provided by port db46.
DEBUG: Requested variant i386 is not provided by port db46.
DEBUG: Requested variant macosx is not provided by port db46.
DEBUG: Searching for dependency: db46
DEBUG: Found Dependency: receipt exists for db46
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/sqlite3
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/sqlite3
DEBUG: Requested variant darwin is not provided by port sqlite3.
DEBUG: Requested variant i386 is not provided by port sqlite3.
DEBUG: Requested variant macosx is not provided by port sqlite3.
DEBUG: Searching for dependency: sqlite3
DEBUG: Found Dependency: receipt exists for sqlite3
DEBUG: Skipping completed org.macports.main (apr-util)
DEBUG: Skipping completed org.macports.fetch (apr-util)
DEBUG: Skipping completed org.macports.checksum (apr-util)
DEBUG: setting option extract.cmd to /opt/local/bin/bzip2
DEBUG: Skipping completed org.macports.extract (apr-util)
DEBUG: Skipping completed org.macports.patch (apr-util)
DEBUG: Skipping completed org.macports.configure (apr-util)
--->  Building apr-util with target all
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/apr
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/db46
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/sqlite3
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/readline
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/gawk
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gmake
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: Executing org.macports.build (apr-util)
DEBUG: Environment: 
DEBUG: port allows a parallel build
DEBUG: port allows a parallel build
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.4" && make all'
/bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.4/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.4/include/private -I/opt/local/include  -I/opt/local/include/apr-1  -I/opt/local/include  -o buckets/apr_brigade.lo -c buckets/apr_brigade.c && touch buckets/apr_brigade.lo
buckets/apr_brigade.c: In function 'apr_brigade_partition':
buckets/apr_brigade.c:140: error: 'APR_SIZE_MAX' undeclared (first use in this function)
buckets/apr_brigade.c:140: error: (Each undeclared identifier is reported only once
buckets/apr_brigade.c:140: error: for each function it appears in.)
make[1]: *** [buckets/apr_brigade.lo] Error 1
make: *** [all-recursive] Error 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.4" && make all " returned error 2
Command output: /bin/sh /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.4/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.4/include/private -I/opt/local/include  -I/opt/local/include/apr-1  -I/opt/local/include  -o buckets/apr_brigade.lo -c buckets/apr_brigade.c && touch buckets/apr_brigade.lo
buckets/apr_brigade.c: In function 'apr_brigade_partition':
buckets/apr_brigade.c:140: error: 'APR_SIZE_MAX' undeclared (first use in this function)
buckets/apr_brigade.c:140: error: (Each undeclared identifier is reported only once
buckets/apr_brigade.c:140: error: for each function it appears in.)
make[1]: *** [buckets/apr_brigade.lo] Error 1
make: *** [all-recursive] Error 1

Warning: the following items did not execute (for apr-util): org.macports.destroot org.macports.build
Error: Status 1 encountered during processing.


comment:3 Changed 11 years ago by danielluke (Daniel J. Luke)

Looks to me like you need to upgrade apr (before buidling the new apr-util).

Try this:

sudo port -f uninstall apr-util sudo port clean --all apr-util sudo port -f uninstall apr sudo port clean --all apr sudo port install apr sudo port install apr-util

Note: See TracTickets for help on using tickets.