Opened 19 years ago

Closed 19 years ago

#3592 closed defect (fixed)

apr-util build failure on 10.4 (unable to find BerkeleyDB)

Reported by: frank@… Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

During an install of subversion on a Mac OS X 10.4.1 machine with XCode 2.1 installed, apr-util fails to install after complaining about being unable to find Berkeley DB.

Steps: 1) Download DarwinPorts-1.0.dmg. 2) Install 3) Add /opt/local/bin to PATH 4) sudo port -d selfupdate 5) sudo port install subversion

Expected results: Subversion installs

Actual results: Install fails during dependencies because apr-util can't find Berkeley DB, even though the db4 installed without errors.

Change History (11)

comment:1 Changed 19 years ago by frank@…

Installing db3 seems to satisfy apr-util enough to build. Perhaps db3 needs to be in the dependency list instead of db4, or perhaps the db4 install is not quite right?

comment:2 Changed 19 years ago by frank@…

Oops, subversion still didn't build with db3 installed. apr-util did build with db3, but subversion still fails with: $ sudo port install subversion ---> Configuring apr-util ---> Building apr-util with target all ---> Staging apr-util into destroot ---> Packaging tgz archive for apr-util 0.9.6_0 ---> Installing apr-util 0.9.6_0 ---> Activating apr-util 0.9.6_0 ---> Cleaning apr-util ---> Fetching neon ---> Attempting to fetch neon-0.24.7.tar.gz from http://www.webdav.org/neon/ ---> Attempting to fetch neon-0.24.7.tar.gz from http://distfiles-od.opendarwin.org/ ---> Verifying checksum(s) for neon ---> Extracting neon ---> Applying patches to neon ---> Configuring neon ---> Building neon with target all ---> Staging neon into destroot ---> Packaging tgz archive for neon 0.24.7_0 ---> Installing neon 0.24.7_0 ---> Activating neon 0.24.7_0 ---> Cleaning neon ---> Fetching subversion ---> Attempting to fetch subversion-1.2.0.tar.bz2 from http://subversion.tigris.org/tarballs/ ---> Verifying checksum(s) for subversion ---> Extracting subversion ---> Applying patches to subversion ---> Configuring subversion Error: Target com.apple.configure returned: configure failure: shell command "cd "/opt/local/var/db/ dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_devel_subversion/ work/subversion-1.2.0" && ./configure --prefix=/opt/local --with-berkeley-db=/opt/local/include/ db4:/opt/local/lib --with-neon=/opt/local --with-apr=/opt/local --with-apr-util=/opt/local -- without-apxs --mandir=\${prefix}/share/man" returned error 1 Command output: checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common checking if g++ PIC flag -fno-common works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin8.1.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool checking whether libtool accepts --tag=XXX... yes checking whether libtool needs -no-undefined... no configure: checking neon library checking neon library version... 0.24.7 checking for static Apache module support... no checking for Apache module support via DSO through APXS... no =============================================================== === WARNING: skipping the build of mod_dav_svn

--with-apxs or --with-apache must be used

=============================================================== === checking for socket in -lsocket... no configure: error: APR-UTIL was installed independently, it won't be

possible to use the specified Berkeley DB: /opt/local/include/db4:/opt/local/lib

$

comment:3 Changed 19 years ago by jmpp@…

Owner: changed from darwinports-bugs@… to dluke@…

comment:4 Changed 19 years ago by danielluke (Daniel J. Luke)

Status: newassigned

subversion (and thus apr-util) definitely needs db4 (and not db3).

Can you do a 'port clean --all apr-util' and then attach or send me (or post somewhere) the full output of 'port -d -v install apr-util' ?

Thanks.

comment:5 Changed 19 years ago by danielluke (Daniel J. Luke)

Summary: During install of subversion, apr-tools build failsapr-util build failure on 10.4 (unable to find BerkeleyDB)

comment:6 Changed 19 years ago by danielluke (Daniel J. Luke)

Resolution: invalid
Status: assignedclosed

comment:7 Changed 19 years ago by frank@…

Resolution: invalid
Status: closedreopened

I also uninstalled both db3 and db4 before creating this attachment, and did the port clean as requested.

comment:8 Changed 19 years ago by danielluke (Daniel J. Luke)

Status: reopenedassigned

comment:9 Changed 19 years ago by danielluke (Daniel J. Luke)

There is something odd about your setup. apr-util's configure script is seeing the db4 headers, but not the db4 libraries.

Please try:

sudo port selfupdate port clean --all db4 port clean --all apr-util

and then try again (and attach full -d -v log of failure if it still doesn't work).

attaching the failed config.log for apr-util might help too.

comment:10 Changed 19 years ago by frank@…

(In reply to comment #6)

There is something odd about your setup. apr-util's configure script is seeing the db4 headers, but

not

the db4 libraries.

Please try:

sudo port selfupdate port clean --all db4 port clean --all apr-util

and then try again (and attach full -d -v log of failure if it still doesn't work).

attaching the failed config.log for apr-util might help too.

Thanks, these suggestions cleared the problem up. apr-util will now build and install, and I can build other things that depend on it, like Svn.

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

Resolution: fixed
Status: assignedclosed

Cool, I'm glad it's working for you now.

Note: See TracTickets for help on using tickets.