Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Dec 2000 23:49:10 +0100
From:      Kurt@pinboard.com
To:        freebsd-security@FreeBSD.org
Subject:   mcrypt
Message-ID:  <20001216234910.A14562@pinboard.com>

next in thread | raw e-mail | index | archive | help
This is probably more a C question than security, but the people here
are most likely to having experience using and compiling this tool, so...

I'm administering some FreeBSD machines around the world. They do not all
have the same release. The need arised to being able to move and store
files between the machines in a safe manner: encrypted. bdes is not
available on all machines and crypt is supposedly weak and also
sometimes linked against MD5 and sometimes against DES. So in order
to get one tool I can use across all machines, I was looking at
mcrypt (http://mcrypt.hellug.gr/).

While compilation and installation of libmcrypt-2.4.7 and mhash-0.8.3
went without a problem, configure of mcrypt-2.5.5 is always complaining
about not finding mhash. On solaris it was enough to set the environment
variable LD_LIBRARY_PAHT to /usr/local/lib:/usr/local/lib/libmcrypt, on
FreeBSD, this does not do the trick. About libtool in the mhash* and
libmcrypt* directories I can't find out how to use it.
I'd be grateful for hints on what I'm doing wrong.

Kurt

------- some addnl info -------
# ldconfig -r | grep mhash
        97:-lmhash.2 => /usr/local/lib/libmhash.so.2
#  
# tail -13 config.log
configure:3471: gcc -o conftest -g -O2   conftest.c -lmhash   1>&5
/usr/libexec/elf/ld: cannot open -lmhash: No such file or directory
configure: failed program was:
#line 3460 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mhash_keygen();

int main() {
mhash_keygen()
; return 0; }
#
# ls -l /usr/local/lib/*mha*
-rw-r--r--  1 root  wheel  261142 Dec 16 21:28 /usr/local/lib/libmhash.a
-rwxr-xr-x  1 root  wheel     642 Dec 16 21:28 /usr/local/lib/libmhash.la
lrwxr-xr-x  1 root  wheel      13 Dec 16 21:28 /usr/local/lib/libmhash.so -> libmhash.so.2
-rwxr-xr-x  1 root  wheel  183296 Dec 16 21:28 /usr/local/lib/libmhash.so.2
------- end addnl info -------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001216234910.A14562>