Opened 20 years ago

Closed 20 years ago

Last modified 8 years ago

#2041 closed defect (fixed)

apr-util depends upon expat

Reported by: brian.bechtel@… Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port: apr-util

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Open Darwin 7.2.1 RC4 x86

port install apr-util +puredarwin
--->  Configuring apr-util
Error: Target com.apple.configure returned: configure failure: shell command "cd "/Volumes/Other/
darwinports/dports/devel/apr-util/work/httpd-2.0.49/srclib/apr-util" && CPPFLAGS=-I/opt/local/
include LDFLAGS=-L/opt/local/lib ./configure --prefix=/opt/local --with-apr=/opt/local --with-
expat=/opt/local --with-iconv=/opt/local --with-berkeley-db=/opt/local" returned error 1
Command output: checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for ldap support...
checking gdbm.h usability... no
checking gdbm.h presence... no
checking for gdbm.h... no
checking for Berkeley DB 4.2 in /opt/local... 
checking db42/db.h usability... no
checking db42/db.h presence... no
checking for db42/db.h... no
checking db4/db.h usability... yes
checking db4/db.h presence... yes
checking for db4/db.h... yes
checking for -ldb-4.2... yes
  setting APRUTIL_INCLUDES to "-I/opt/local/include"
  setting APRUTIL_LDFLAGS to "-L/opt/local/lib"
checking for Berkeley DB... found db4
checking for default DBM... sdbm (default)
  setting APRUTIL_EXPORT_LIBS to "-ldb-4.2"
  setting APRUTIL_LIBS to "-ldb-4.2"
checking for Expat in /opt/local... no
configure: error: Expat was not found (or recognized) in "/opt/local"
port install expat +puredarwin
port install apr-util +puredarwin

works correctly.

Change History (6)

comment:1 Changed 20 years ago by brian.bechtel@…

op_sys: otherDarwin
rep_platform: Otherx86

comment:2 Changed 20 years ago by danielluke (Daniel J. Luke)

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

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

Status: newassigned

Could you please send me the output of running the install command with the -d and -v options (like I asked for for bug #2021 as well)?

apr-util's portfile (like subversion's) includes a dependency on expat, so darwinports should attempt to install it if it is not available.

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

Are you still seeing this problem?

Can you send me the full output of 'port -d -v install apr-util'?

Thanks.

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

Resolution: fixed
Status: assignedclosed

Thanks to the -d -v output from Brian, it looks like darwinports is seeing an expat that is installed in / usr/X11R6/lib/, but we need to point apr-util's configure to the found expat (instead of just pointing it to ${prefix}).

Since it has been agreed to just depend on things from darwinports as much as possible, the fix is to use the 'XXX' hack to make darwinports install the expat port.

I'm going to commit this diff:

diff -u -d -r1.14 Portfile
--- Portfile    8 Jul 2004 21:14:55 -0000       1.14
+++ Portfile    20 Jul 2004 18:39:27 -0000
@@ -13,7 +13,7 @@
 
 homepage       http://apr.apache.org/
 
-depends_lib    lib:libapr-0.0:apr lib:libexpat.0:expat \
+depends_lib    lib:libapr-0.0:apr lib:XXX:expat \
                lib:libiconv.2:libiconv lib:libdb-4:db4
 
 distname       httpd-2.0.50
Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: apr-util added
Note: See TracTickets for help on using tickets.