BerkeleyDBXML 0.3 → 0.4
raw patch · 4 files changed
+13/−5 lines, 4 files
Files
- BerkeleyDBXML.cabal +1/−1
- Database/Berkeley/db_helper.cpp +3/−0
- README +8/−3
- examples/adventure/Adventure.hs +1/−1
BerkeleyDBXML.cabal view
@@ -1,5 +1,5 @@ name: BerkeleyDBXML-version: 0.3+version: 0.4 license: BSD3 license-file: LICENSE cabal-version: >= 1.4
Database/Berkeley/db_helper.cpp view
@@ -1,5 +1,8 @@ #include "db_helper.h" +#include <string.h>+#include <stdlib.h>+ int _dbenv_create__(DbEnv** dbenv, u_int32_t flags) { *dbenv = new DbEnv(flags); return 0;
README view
@@ -28,6 +28,10 @@ To install, use the standard Cabal install procedure: +sudo cabal install++or+ runhaskell Setup.hs configure runhaskell Setup.hs build runhaskell Setup.hs haddock (optional documentation in dist/doc)@@ -36,9 +40,10 @@ If Berkeley DB or DB XML is not installed in the default location of /usr or /usr/local, you will need to specify the paths in this way: -runhaskell Setup.hs configure \- --extra-include-dirs=/usr/local/dbxml-2.4.13/include/dbxml/ \- --extra-lib-dirs=/usr/local/dbxml-2.4.13/lib/+sudo cabal install \+ --extra-include-dirs=/usr/local/dbxml-2.4.16/include/ \+ --extra-include-dirs=/usr/local/dbxml-2.4.16/include/dbxml/ \+ --extra-lib-dirs=/usr/local/dbxml-2.4.16/lib/ Cabal does not seem to check these very well. If you get the lib directory wrong, you won't find out until you try to build the examples.
examples/adventure/Adventure.hs view
@@ -440,7 +440,7 @@ DB_INIT_TXN,DB_THREAD,DB_RECOVER] 0 mgr <- xmlManager_create dbenv [] cont <- xmlManager_openContainer mgr "adventure.dbxml"- [DBXML_TRANSACTIONAL,DB_FLAG DB_THREAD,DB_FLAG DB_MULTIVERSION,DB_FLAG DB_CREATE]+ [DBXML_TRANSACTIONAL,DB_FLAG DB_THREAD,DB_FLAG DB_CREATE] WholedocContainer 0 putStrLn$ "Adventure server - please telnet into port "++show portNo