Hi, I am using BeeCrypt C library on Mac OS and linux, I have a problem with linking against it on Snow Leopard this is the error I get:
...
ld: warning: in /usr/local/lib/libbeecrypt.dylib, file is not of required architecture
Undefined symbols:
"_sha1Digest", referenced from:
_hx_get_id in dictenc.o
"_sha1Reset", referenced from:
_hx_get_id in dictenc.o
"_sha1Update", referenced from:
_hx_get_id in dictenc.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/GNU-Linux-x86/hexastore-tokyo] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 1s)
for beecrypt-4.2.1
and this is the gcc version used: i686-apple-darwin10-gcc-4.2.1
How can this be fixed, there were no errors on compiling beecrypt and installing it on snow leopard.
Thanks,
Cosmin
hi,
a month ago (with the cvs from this time, i was able to produce x86 && x86_64 versions of beecrypt on SnowLeopard.
grosso modo, here's what i did :
destdir=/Users/nico/code/beecrypt
make distclean
mkdir $destdir/intel;
mkdir $destdir/ppc;
export CC="gcc -arch ppc"
export CFLAGS="-mmacosx-version-min=10.5"
export CXX="g++ -arch ppc"
export CXXFLAGS="-mmacosx-version-min=10.5"
./configure --without-java --without-cplusplus --without-python -host=i386-apple-darwin --target=ppc-apple-darwin &&
make && cp .libs/libbeecrypt.7.dylib $destdir/ppc/;
make distclean
export CC="gcc -arch i386"
export CFLAGS="-mmacosx-version-min=10.5"
export CXX="g++ -arch i386"
export CXXFLAGS="-mmacosx-version-min=10.5"
./configure --without-java --without-cplusplus --without-python &&
make && cp .libs/libbeecrypt.7.dylib $destdir/intel/;
export CC="gcc -arch x86_64"
export CFLAGS="-mmacosx-version-min=10.5"
export CXX="g++ -arch x86_64"
export CXXFLAGS="-mmacosx-version-min=10.5"
./configure --without-java --without-cplusplus --without-python &&
make && cp .libs/libbeecrypt.7.dylib $destdir/x86/;
lipo -create intel/libbeecrypt.7.dylib ppc/libbeecrypt.7.dylib x86/libbeecrypt.7.dylib -output libbeecrypt.7.dylib
install_name_tool -id @executable_path/../lib/libbeecrypt.7.dylib libbeecrypt.7.dylib
hope this helps...
++
nicolas