[Botan-devel] Problems building Botan-1.9.7

Bud P. Bruegger bud at ancitel.it
Wed May 26 12:24:05 EDT 2010

thanks for the quick reply.

In the meantime, I noted in the release notes of 1.9.1 to do a "make
check" and that works.  "make -f Makefile.python" also seemed to work
and so does "make -f Makefile.python install".

However, running python and importing botan fails:

Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import botan
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/botan/__init__.py", line 1, in <module>
    from _botan import *
ImportError: libbotan-1.9.7.so: cannot open shared object file: No such file or directory

I have a libbotan-1.9.7.so in /usr/local/lib/

Any idea what fails?

many thanks

On Wed, 26 May 2010 11:50:17 -0400
Jack Lloyd <lloyd at randombit.net> wrote:

> On Wed, May 26, 2010 at 05:43:55PM +0200, Bud P. Bruegger wrote:
> > Hello,
> > 
> > I just came across Botan and it's python support and am excited.  I
> > have problems building it however:
> > 
> > after a longer list of errors of the same type the make ends with:
> > 
> > src/block/des/des_tab.cpp:634: error: integer constant is too large
> > for ???long??? type 
> > 
> > src/block/des/des_tab.cpp:634: error: integer constant is too large
> > for ???long??? type make: *** 
> > 
> > [build/lib/des_tab.o] Error 1
> > bud at bud-laptop:~/dev/botan/Botan-1.9.7$ 
> > 
> > Any idea how to fix this?
> In some versions of GCC, it will produce this warning on 32-bit
> compiles (this was fixed in GCC 4.5). It's totally harmless, but a
> number of the 1.9 releases have been made with the 'maintainer flags'
> enabled, which includes -Werror, turning all warnings, including this
> one, into errors.
> Simply editing the makefile and removing -Werror should do the trick.
> It's also possible the configure script did not detect that it should
> have used -fpermissive with your compiler. (It should have printed a
> message about this when it ran). If that is the case, you can run it
> with the evocative though poorly named --dumb-gcc option.
> -Jack
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://lists.randombit.net/mailman/listinfo/botan-devel

More information about the botan-devel mailing list