pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/37051: ocaml doesn't build with db4

>Number:         37051
>Category:       pkg
>Synopsis:       ocaml doesn't build with db4
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 02 01:10:00 +0000 2007
>Originator:     David A. Holland <>
>Release:        NetBSD 4.99.30 (200705something) (also 2.1_STABLE)
   Harvard EECS
System: NetBSD weatherwax 4.99.30 NetBSD 4.99.30 (WEATHERWAX) #4: Tue Sep  4 
22:44:24 EDT 2007  
dholland@weatherwax:/usr/src/sys/arch/i386/compile/WEATHERWAX i386
Architecture: i386
Machine: i386

If you set 


in /etc/mk.conf, ocaml bombs out because it seems to be including
more than one different ndbm compatibility header at once.


set as above, build.


The following hack can be used as a workaround. A real fix involves
fiddling with autoconf, which at the moment I don't have the energy
for. (I also question the patch that makes both branches of that #if
use <ndbm.h>...)

--- otherlibs/dbm/cldbm.c~      2007-09-15 12:38:57.000000000 -0400
+++ otherlibs/dbm/cldbm.c       2007-09-15 12:52:48.000000000 -0400
@@ -22,9 +22,9 @@
 #include <callback.h>
 #ifdef DBM_USES_DB
-#include <ndbm.h>
+#include <db.h>
-#include <ndbm.h>
+#include <db.h>
 /* Quite close to sys_open_flags, but we need RDWR */

Home | Main Index | Thread Index | Old Index