| > I guess it's nothing to do with PyLucene. I just tried to rebuild bsddb
| > against db-4.4.20 and I get the same error about u_int undefined in db.h.
| 
| It's probably because you're not picking up the correct db.h file.
| Does this directory contain the header files produced by configuring Berkeley 
| DB ? In other words, did you build Berkeley DB from there ?

When I try to build bsddb, I follow the instructions in the README:

    $ python setup.py --berkeley-db=/usr/local/BerkeleyDB.4.3 build

    running build
    running build_py
    running build_ext
    building 'bsddb3._pybsddb' extension
    creating build/temp.darwin-8.7.1-Power_Macintosh-2.4
    creating build/temp.darwin-8.7.1-Power_Macintosh-2.4/extsrc
    gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd 
-fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes 
-I/usr/local/BerkeleyDB.4.3/include 
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c 
extsrc/_bsddb.c -o build/temp.darwin-8.7.1-Power_Macintosh-2.4/extsrc/_bsddb.o
    In file included from 
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:55,
                     from extsrc/_bsddb.c:88:
    
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/pyport.h:396:
 warning: 'struct winsize' declared inside parameter list
    
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/pyport.h:397:
 warning: 'struct winsize' declared inside parameter list
    In file included from extsrc/_bsddb.c:89:
    /usr/local/BerkeleyDB.4.3/include/db.h:1271: error: parse error before 
'u_int'
    [many error lines omitted]


I get the same thing with db 4.4.20 and with 4.3.29.
/usr/local/BerkeleyDB.* is definitely the right place to be looking: I rm
-fr it before doing the make install when I build db, and then verify that
it has indeed created it after the build.

If it's any reassurance, I had no trouble building 4.4.20 db and then bsddb
on an OS X ppc machine.

Terry
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to