Post
Topic
Board Bitcoin Technical Support
Re: Unable to compile bitcoin
by
ioctlvoid
on 21/07/2011, 22:20:50 UTC
Hang in there, you're getting it!  :p

Code:
net.cpp:22:32: error: miniupnpc/miniwget.h: No such file or directory
net.cpp:23:33: error: miniupnpc/miniupnpc.h: No such file or directory
net.cpp:24:36: error: miniupnpc/upnpcommands.h: No such file or directory
net.cpp:25:34: error: miniupnpc/upnperrors.h: No such file or directory

These errors are caused by not having a package called miniupnpc installed...  Should be easy enough to fix, eh?  It's just for UPNP support, very handy

Code:
In file included from main.h:11,
                 from headers.h:96,
                 from script.cpp:4:
db.h: In member function 'bool CDB::Exists(const K&)':
db.h:149: error: 'class Db' has no member named 'exists'

And this...  I'd guess that it's because you installed that new version of berkdb!  Hey, I found out the issue with that btw...  Berkdb does not, by default, create /usr/include/db.h and /usr/include/db_cxx.h symlinks!  No idea why.  I guess they expect the vendors to deal with that, or for people to edit their makefiles to add -I/usr/include/dbX.X to their CFLAGS (but I can't in recent memory recall ever seeing it done that way)

Either way, just do:

rm /usr/include/db.h /usr/include/db_cxx.h
ln -s /usr/include/db4.7/db.h /usr/include/db.h
ln -s /usr/include/db4.7/db_cxx.h /usr/include/db_cxx.h

Hope you get a successful compile now...  If not, I'm always willing to help more  :p

Alright, thanks. I decided to just skip using miniupnpc -- I commented it out in the Makefile. I then proceeded to perform the commands you suggested. Although db4.7 seems to install by default under /usr/localBerkeley*, so my symlinks target that directory instead.

Now I get this error:

Code:
In file included from headers.h:43,
                 from util.cpp:4:
/usr/include/db_cxx.h:59:22: error: iostream.h: No such file or directory
/usr/include/db_cxx.h:60:23: error: exception.h: No such file or directory
In file included from headers.h:43,
                 from script.cpp:4:
/usr/include/db_cxx.h:59:22: error: iostream.h: No such file or directory
/usr/include/db_cxx.h:60:23: error: exception.h: No such file or directory
In file included from headers.h:43,
                 from db.cpp:5:
/usr/include/db_cxx.h:59:22: error: iostream.h: No such file or directory
/usr/include/db_cxx.h:60:23: error: exception.h: No such file or directory
In file included from headers.h:43,
                 from net.cpp:5:
...