[botan-devel] Cannot build botan under Unix system

Erwan Treguer erwanage at gmail.com
Tue Jul 19 06:38:24 EDT 2011


Hi,

I tried to build Botan 1.8.13 under FreeBSD but when I launch the "make"
command, I get many errors:.

g++ -pthread -Ibuild/include -O2 -finline-functions -mtune=i686
-momit-leaf-frame-pointer -D_REENTRANT -Wno-long-long -fpermissive -W -Wall
-fPIC -c ./src/algo_factory/algo_factory.cpp -o build/lib/algo_factory.o
In file included from build/include/botan/curve_gfp.h:16,
                 from build/include/botan/point_gfp.h:15,
                 from build/include/botan/ec_dompar.h:12,
                 from build/include/botan/ecdsa_op.h:12,
                 from build/include/botan/engine.h:43,
                 from ./src/algo_factory/algo_factory.cpp:11:
build/include/botan/gfp_element.h:20:24: tr1/memory: No such file or
directory
In file included from build/include/botan/curve_gfp.h:16,
                 from build/include/botan/point_gfp.h:15,
                 from build/include/botan/ec_dompar.h:12,
                 from build/include/botan/ecdsa_op.h:12,
                 from build/include/botan/engine.h:43,
                 from ./src/algo_factory/algo_factory.cpp:11:
build/include/botan/gfp_element.h:43: error: `std::tr1' has not been
declared
build/include/botan/gfp_element.h:43: warning: ISO C++ forbids declaration
of `shared_ptr' with no type
build/include/botan/gfp_element.h:43: error: expected `;' before '<' token
build/include/botan/gfp_element.h:82: error: `std::tr1' has not been
declared
build/include/botan/gfp_element.h:82: error: expected `)' before '<' token
build/include/botan/gfp_element.h:193: error: `std::tr1' has not been
declared
build/include/botan/gfp_element.h:193: warning: ISO C++ forbids declaration
of `shared_ptr' with no type
build/include/botan/gfp_element.h:193: error: `shared_ptr' declared as an
`inline' field
build/include/botan/gfp_element.h:193: error: expected `;' before '<' token
build/include/botan/gfp_element.h:206: error: expected `;' before "void"
build/include/botan/gfp_element.h:206: error: `std::tr1' has not been
declared
build/include/botan/gfp_element.h:206: error: variable or field
`set_shrd_mod' declared void
build/include/botan/gfp_element.h:206: error: expected `;' before '(' token
In file included from build/include/botan/point_gfp.h:15,
                 from build/include/botan/ec_dompar.h:12,
                 from build/include/botan/ecdsa_op.h:12,
                 from build/include/botan/engine.h:43,
                 from ./src/algo_factory/algo_factory.cpp:11:
build/include/botan/curve_gfp.h:60: error: `std::tr1' has not been declared
build/include/botan/curve_gfp.h:60: error: expected `,' or `...' before '<'
token
build/include/botan/curve_gfp.h:60: warning: ISO C++ forbids declaration of
`shared_ptr' with no type
build/include/botan/curve_gfp.h:102: error: `std::tr1' has not been declared
build/include/botan/curve_gfp.h:102: warning: ISO C++ forbids declaration of
`shared_ptr' with no type
build/include/botan/curve_gfp.h:102: error: expected `;' before '<' token
build/include/botan/curve_gfp.h:122: error: `std::tr1' has not been declared
build/include/botan/curve_gfp.h:122: warning: ISO C++ forbids declaration of
`shared_ptr' with no type
build/include/botan/curve_gfp.h:122: error: `shared_ptr' declared as an
`inline' field
build/include/botan/curve_gfp.h:122: error: expected `;' before '<' token
build/include/botan/curve_gfp.h:131: error: expected `;' before "void"
build/include/botan/curve_gfp.h:134: error: `std::tr1' has not been declared
build/include/botan/curve_gfp.h:134: warning: ISO C++ forbids declaration of
`shared_ptr' with no type
build/include/botan/curve_gfp.h:134: error: expected `;' before '<' token
build/include/botan/curve_gfp.h:137: error: `std::tr1' has not been declared
build/include/botan/curve_gfp.h:137: warning: ISO C++ forbids declaration of
`shared_ptr' with no type
build/include/botan/curve_gfp.h:137: error: expected `;' before '<' token
build/include/botan/curve_gfp.h:138: error: `std::tr1' has not been declared
build/include/botan/curve_gfp.h:138: warning: ISO C++ forbids declaration of
`shared_ptr' with no type
build/include/botan/curve_gfp.h:138: error: expected `;' before '<' token
build/include/botan/curve_gfp.h:139: error: `std::tr1' has not been declared
build/include/botan/curve_gfp.h:139: warning: ISO C++ forbids declaration of
`shared_ptr' with no type
build/include/botan/curve_gfp.h:139: error: expected `;' before '<' token
In file included from build/include/botan/ec_dompar.h:12,
                 from build/include/botan/ecdsa_op.h:12,
                 from build/include/botan/engine.h:43,
                 from ./src/algo_factory/algo_factory.cpp:11:
build/include/botan/point_gfp.h:237: error: `std::tr1' has not been declared
build/include/botan/point_gfp.h:237: error: variable or field `set_shrd_mod'
declared void
build/include/botan/point_gfp.h:237: error: expected `;' before '(' token
build/include/botan/point_gfp.h:245: error: `std::tr1' has not been declared
build/include/botan/point_gfp.h:245: warning: ISO C++ forbids declaration of
`shared_ptr' with no type
build/include/botan/point_gfp.h:245: error: `shared_ptr' declared as an
`inline' field
build/include/botan/point_gfp.h:245: error: expected `;' before '<' token
build/include/botan/point_gfp.h:260: error: `std::tr1' has not been declared
build/include/botan/point_gfp.h:260: warning: ISO C++ forbids declaration of
`shared_ptr' with no type
build/include/botan/point_gfp.h:260: error: expected `;' before '<' token
*** Error code 1

Here's what I did:

$> ./configure.py --enable-debug --prefix=~/botan
$> make

then I get the previous errors.
How can I make it work under Unix?


-- 
Erwan Treguer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20110719/9a341fbc/attachment.html>


More information about the botan-devel mailing list