Full db44 error

miles3 miles-nabble at vividcolor.org
Mon Jul 30 14:46:34 PDT 2007



markd-2 wrote:
> 
> 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
>>...
> 
> 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
> 
Mark,

Obviously someone that doesn't bother posting to the list and doesn't inform
the maintainers is not going to get this fixed. Sorry for expressing my
frustration. Open Source can be great but it takes weeks to perform installs
of packages, with lots of hand holding from wonderful people like you. So
thank you for your help.

Back to your response. The current configuration requires both db4 and
'libiconv' requires db44. So are you suggesting...
    I edit openldap ( sudo port edit openldap )
        remove the lines preceded with minuses (-) 
        add the lines preceeded with pluses (+)
    Do not change the arguments in db44 "--enable-compat185
--enable-dump185"
?
If so, I have successfully installed apache2 +openldap with db4, should I
redo it with db44? I don't need backward compatibility, but I also don't
know if there is a good reason to use the newer version.

If I do need to redo this, should I...
    sudo port uninstall db4
    edit openldap as described above
    sudo port -v update apache2
        or: sudo port -v update openldap
            sudo port -v update apache2
        or another way...
?

Thanks for your help,

- Miles

Thanks,
-- 
View this message in context: http://www.nabble.com/Full-db44-error-tf4021954.html#a11884765
Sent from the MacPorts - Users mailing list archive at Nabble.com.




More information about the macports-users mailing list