Full db44 error

markd at macports.org markd at macports.org
Mon Jul 30 09:54:03 PDT 2007


miles3 <miles-nabble at vividcolor.org> writes:
>I have been having a very frustrating time trying to install Apache2
>+openldap. which you probably know by now is dependent on db4 and db44.
>Turns out there is a misconfiguration of db packages in the MacPorts
>repository...full details can be found here:
>http://concise-software.blogspot.com/2007/07/howto-sudo-port-install-db4.html
>
>What this link tells you is to edit as Admin:
>/opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/db4/Portfile
>
>Change the line:
>  configure.args --enable-compat185 --enable-dump185 --enable-cxx \
>TO
>  configure.args --enable-cxx \
>
>Unfortunately that does not work for me, since there is nothing in
>.....release/ports/
>The solution is to run the command:
>  sudo port edit db4
>and then remove the offending command
>
>Do the same for db44 and any other db{x} you need to make.
>
>Who do I talk to about fixing the repository? Why is it almost two weeks
>without the system being fixed?

The concise-software blog author chose not to have his discussion on a
MacPorts list where it might be useful so we didn't benefit.  He chose to
document a supposed bug rather than contribute to fixing it.  But there
isn't much we can do about lone rangers.

But otherwise, I suspect that openldap should use db44 (a newer version)
rather than db4.  So please try this:

uninstall db4
install db44

Change the openldap Portfile like this:

--- Portfile.org        2007-07-30 09:30:48.000000000 -0700
+++ Portfile    2007-07-30 09:36:58.000000000 -0700
@@ -20,12 +20,13 @@
 depends_lib    port:perl5.8 \
                port:cyrus-sasl2 \
                port:openssl \
-               port:db4
+               port:db44
 
 patchfiles     patch-ltmain
 
 configure.env-append           LANG=C
-configure.cppflags-append      "-I${prefix}/include/db4
-I${prefix}/include/openssl -DBIND_8_COMPAT"
+configure.cppflags-append      "-I${prefix}/include/db44
-I${prefix}/include/openssl -DBIND_8_COMPAT"
+configure.cflags-append                -L${prefix}/lib/db44
 
 configure.args --mandir=${prefix}/share/man \
                --localstatedir=${prefix}/var \


The db44 port still has the arguments "--enable-compat185
--enable-dump185", but I see the FreeBSD port uses those too and I wonder
if mr blogger is correct about removing those.  I just installed openldap
using db44; please report if you have success with this method so we can
tell the openldap port maintainer so he can fix it.

Mark




More information about the macports-users mailing list