[Botan-devel] Segmentation fault
dominic_l_chambers at yahoo.com
Sun Dec 12 14:56:59 EST 2004
I've downloaded Botan 1.4.4 and built and installed it
as per the instructions. The build seemed to go okay
but with quite a few warnings about long long types.
I created a simple command line app 'addler32sum'
which works the same as md5sum but using addler32, and
it seg-faulted. So instead I tried building one of the
example programs (hash.cpp), but it also seg-faults
when I run it.
I built the program using:
g++ hash.cpp -shared /usr/local/lib/libbotan.so -o
I am using 'gcc --version':
gcc (GCC) 3.4.1 (Mandrakelinux (Alpha 3.4.1-3mdk)
and my platform is Mandrake Linux 10.1 CE; 'uname
Linux 126.96.36.199-10mdk i686 Celeron (Mendocino)
The program seems to be linked okay (I had to add
'/usr/local/lib' to my lib-path); 'ldd hash' now
linux-gate.so.1 => (0xffffe000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6
libm.so.6 => /lib/tls/libm.so.6 (0x40353000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40376000)
libc.so.6 => /lib/tls/libc.so.6 (0x4037f000)
libpthread.so.0 => /lib/tls/libpthread.so.0
librt.so.1 => /lib/tls/librt.so.1 (0x404b0000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2
It's been a while since I wrote any C/C++, and this is
the first time I've tried to do it on Linux without an
IDE (I don't have an IDE available on this machine) so
I am probably making a silly n00b mistake! Hope you
can help -- I'm using md5sum at the moment and it is a
real bottleneck in my program, and complete overkill
for what I need.
Thanks in advance for any help, Dominic.
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
More information about the botan-devel