[Botan-devel] Building for MIPS

Meenal Verma mailtomeenal at rediffmail.com
Mon Oct 22 23:05:11 EDT 2007


Hi,These are the Makefile changes that I madeCXX = /usr/local/bin/mipseb-linux-g++ -I. -I/usr/local/mipseb-linux/include/c++/3.2 -I/usr/local/mipseb-linux/include/c++/3.2/backward -I/usr/local/mipseb-linux/include/c++/3.2/mips-linux-gnu -static -Wa,-non_shared -mips2 -mno-abicalls -mabi=32 -mtune=r6000 -msplit-addresses -Wl,--script=/usr/local/mipseb-linux/lib/ldscripts/mint.x -mips2 -Wa,-non_shared#CXX           = /usr/local/bin/mipseb-linux-g++ -Wa,-non_shared -mabi=32#LIB_OPT       = -O2 -finline-functions#CHECK_OPT     = -O2#MACH_OPT      = -mips2 -mtune=r8000 -msplit-addresses#LANG_FLAGS    = -D_REENTRANT -ansi -Wno-long-long -fpermissive#WARN_FLAGS    = -W -WallSO_OBJ_FLAGS  = -fPICSO_LINK_CMD   = $(CXX) -shared -fPIC -Wl,-soname,$(SONAME)LINK_TO       = -lm -lpthread -lrtIt gives a number of assertions usr/local/lib/gcc-lib/mipseb-linux/3.2.1/../../../../mipseb-linux/bin/ld: BFD 2.13 assertion fail ../../binutils-2.13/bfd/elfxx-mips.c:2875But created libbotan-1.7.2.so  libbotan.a  libbotan.soThe test.cpp program is here http://botan.randombit.net/examples/dsa_sign.php, I just changes the includes to reflect the correct path as I had not done a make install. Is there some problem with the way the library is created?On doing a make install, it does so without any errorsOn Mon, 22 Oct 2007 23:00:52 -0400 Botan development list  wrote  On Tue, Oct 23, 2007 at 02:30:07AM -0000, Meenal Verma wrote:    > HiSorry for sending so many queries but I am totally new to this  > library and cross-compilation issues have got me really confused. I  > tried a simple program from the examples (dsa_sign)It gives the  > following error    > test.cpp: In function `int main(int, char**)\':test.cpp:43:  > `LibraryInitializer\' undeclared (first use this  > function)test.cpp:43: (Each undeclared identifier is reported only  > once for each   function it appears in.)test.cpp:43: parse  > error before `;\' tokenThe command I am using for compiling  > is    > /usr/local/bin/mipseb-linux-g++ -I. -I/usr/local/mipseb-linux/include/c++/3.2 -I/usr/local/mipseb-linux/include/c++/3.2/backward -I/usr/local/mipseb-linux/include/c++/3.2/mips-linux-gnu -static -Wa,-non_shared -mips2 -mno-abicalls -mabi=32 -mtune=r6000 -msplit-addresses -Wl,--script=/usr/local/mipseb-linux/lib/ldscripts/mint.x -mips2 -Wa,-non_shared test.cpp -L. -llibbotan -o verify    If you haven\'t installed this Botan somewhere via make install or  similiar, then when you include headers via -I you want to use  -I/build/include - this includes a directory that  contains headers to all of the botan headers that are included in that  particular configuration of the library.    Also rather than -llibbotan you probably want just -lbotan - typically  at least the toolchain adds a lib prefix by default.    Can you send a copy of test.cpp to the list?    -Jack  _______________________________________________  botan-devel mailing list  botan-devel at randombit.net  http://www.randombit.net/mailman/listinfo/botan-devel  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20071023/841d12c0/attachment.html>


More information about the botan-devel mailing list