RPi2 build fails in libcrypt.
Paul Khavkine
pkhavkine at gmail.com
Sun May 10 19:45:20 UTC 2015
Hi.
I'm trying to build an image for Pi2 and it fails in building libcrypt:
In file included from /usr/src/lib/libcrypt/crypt-md5.c:33:
/usr/src/lib/libcrypt/../libmd/md5.h:10:9: error: 'MD5Init' macro redefined
[-Werror,-Wmacro-redefined]
#define MD5Init _libmd_MD5Init
^
<command line>:7:9: note: previous definition is here
#define MD5Init __MD5Init
^
In file included from /usr/src/lib/libcrypt/crypt-md5.c:33:
/usr/src/lib/libcrypt/../libmd/md5.h:11:9: error: 'MD5Update' macro
redefined [-Werror,-Wmacro-redefined]
#define MD5Update _libmd_MD5Update
^
<command line>:9:9: note: previous definition is here
#define MD5Update __MD5Update
^
In file included from /usr/src/lib/libcrypt/crypt-md5.c:33:
/usr/src/lib/libcrypt/../libmd/md5.h:12:9: error: 'MD5Pad' macro redefined
[-Werror,-Wmacro-redefined]
#define MD5Pad _libmd_MD5Pad
^
<command line>:10:9: note: previous definition is here
#define MD5Pad __MD5Pad
^
In file included from /usr/src/lib/libcrypt/crypt-md5.c:33:
/usr/src/lib/libcrypt/../libmd/md5.h:13:9: error: 'MD5Final' macro
redefined [-Werror,-Wmacro-redefined]
#define MD5Final _libmd_MD5Final
^
<command line>:8:9: note: previous definition is here
#define MD5Final __MD5Final
^
4 errors generated.
*** Error code 1
Stop.
make[4]: stopped in /usr/src/lib/libcrypt
*** Error code 1
Stop.
make[3]: stopped in /usr/src
*** Error code 1
Stop.
make[2]: stopped in /usr/src
*** Error code 1
Stop.
make[1]: stopped in /usr/src
*** Error code 1
Stop.
make: stopped in /usr/src
Seems to be coming from here:
/* $FreeBSD: head/lib/libmd/md5.h 282726 2015-05-10 13:21:36Z thomas $ */
#ifndef _MD5_H_
#define _MD5_H_
#ifndef _KERNEL
/* Ensure libmd symbols do not clash with libcrypto */
#define MD5Init _libmd_MD5Init
#define MD5Update _libmd_MD5Update
#define MD5Pad _libmd_MD5Pad
#define MD5Final _libmd_MD5Final
#define MD5Transform _libmd_MD5Transform
#define MD5End _libmd_MD5End
#define MD5File _libmd_MD5File
#define MD5FileChunk _libmd_MD5FileChunk
#define MD5Data _libmd_MD5Data
#endif
#include <sys/md5.h>
#endif /* _MD5_H_ */
Any idea on the fix?
Thanks
Paul
More information about the freebsd-arm
mailing list