[kde-freebsd] textproc/raptor2-2.0.13 build fails
freebsd at nagilum.org
freebsd at nagilum.org
Tue Apr 29 10:00:13 UTC 2014
>Submitter-Id: current-users
>Originator: Nagilum
>Organization:
>Confidential: no
>Synopsis: textproc/raptor2-2.0.13 build fails
>Severity: non-critical
>Priority: low
>Category: ports
>Class: sw-bug
>Release: FreeBSD 9.2-STABLE i386
>Environment:
System: FreeBSD cakebox.tis 9.2-STABLE FreeBSD 9.2-STABLE #0 r264294M: Fri Apr 11 10:19:25 CEST 2014 root at cakebox.tis:/usr/obj/export/src/sys/net5501 i386
>Description:
The build will fail with this:
/bin/sh ../libtool --tag=CC --mode=link gcc48 -lcrypto -Os -O3 -pipe -march=native -mtune=native -fno-strict-aliasing -L/usr/local/lib -o rapper rapper.o ../src/libraptor2.la
libtool: link: gcc48 -Os -O3 -pipe -march=native -mtune=native -fno-strict-aliasing -o .libs/rapper rapper.o -lcrypto -L/usr/local/lib ../src/.libs/libraptor2.so -pthread -Wl,-rpath -Wl,/usr/local/lib
//usr/lib/libhx509.so.10: undefined reference to `MD2_Final'
//usr/lib/libhx509.so.10: undefined reference to `MD2_Update'
//usr/lib/libhx509.so.10: undefined reference to `MD2_Init'
collect2: error: ld returned 1 exit status
gmake: *** [rapper] Error 1
>How-To-Repeat:
Try building the port.
>Fix:
Apply attached patch to /usr/src/crypto/heimdal/lib/hx509/crypto.c
then cd /usr/src/kerberos5/lib/libhx509 && make install
The patch removes all stale references to md2 from libhx509.
--- crypto.c.patch begins here ---
--- crypto.c 2014-04-29 11:52:59.000000000 +0200
+++ crypto.c.bak 2014-04-29 11:48:28.000000000 +0200
@@ -841,6 +841,7 @@
return 0;
}
+#if 0
static int
md2_verify_signature(hx509_context context,
const struct signature_alg *sig_alg,
@@ -870,6 +871,7 @@
return 0;
}
+#endif
static const struct signature_alg heim_rsa_pkcs1_x509 = {
"rsa-pkcs1-x509",
@@ -926,6 +928,7 @@
rsa_create_signature
};
+#if 0
static const struct signature_alg rsa_with_md2_alg = {
"rsa-with-md2",
oid_id_pkcs1_md2WithRSAEncryption,
@@ -936,6 +939,7 @@
rsa_verify_signature,
rsa_create_signature
};
+#endif
static const struct signature_alg dsa_sha1_alg = {
"dsa-with-sha1",
@@ -980,6 +984,7 @@
md5_verify_signature
};
+#if 0
static const struct signature_alg md2_alg = {
"rsa-md2",
oid_id_rsa_digest_md2,
@@ -989,6 +994,7 @@
SIG_DIGEST,
md2_verify_signature
};
+#endif
/*
* Order matter in this structure, "best" first for each "key
@@ -1000,13 +1006,17 @@
&rsa_with_sha1_alg,
&pkcs1_rsa_sha1_alg,
&rsa_with_md5_alg,
+#if 0
&rsa_with_md2_alg,
+#endif
&heim_rsa_pkcs1_x509,
&dsa_sha1_alg,
&sha256_alg,
&sha1_alg,
&md5_alg,
+#if 0
&md2_alg,
+#endif
NULL
};
@@ -1432,10 +1442,12 @@
{ 6, rk_UNCONST(md5_oid_tree) }, rk_UNCONST(&null_entry_oid)
};
+#if 0
static const unsigned md2_oid_tree[] = { 1, 2, 840, 113549, 2, 2 };
const AlgorithmIdentifier _hx509_signature_md2_data = {
{ 6, rk_UNCONST(md2_oid_tree) }, rk_UNCONST(&null_entry_oid)
};
+#endif
static const unsigned rsa_with_sha512_oid[] ={ 1, 2, 840, 113549, 1, 1, 13 };
const AlgorithmIdentifier _hx509_signature_rsa_with_sha512_data = {
@@ -1462,10 +1474,12 @@
{ 7, rk_UNCONST(rsa_with_md5_oid) }, NULL
};
+#if 0
static const unsigned rsa_with_md2_oid[] ={ 1, 2, 840, 113549, 1, 1, 2 };
const AlgorithmIdentifier _hx509_signature_rsa_with_md2_data = {
{ 7, rk_UNCONST(rsa_with_md2_oid) }, NULL
};
+#endif
static const unsigned rsa_oid[] ={ 1, 2, 840, 113549, 1, 1, 1 };
const AlgorithmIdentifier _hx509_signature_rsa_data = {
@@ -1512,9 +1526,11 @@
hx509_signature_md5(void)
{ return &_hx509_signature_md5_data; }
+#if 0
const AlgorithmIdentifier *
hx509_signature_md2(void)
{ return &_hx509_signature_md2_data; }
+#endif
const AlgorithmIdentifier *
hx509_signature_rsa_with_sha512(void)
@@ -1536,9 +1552,11 @@
hx509_signature_rsa_with_md5(void)
{ return &_hx509_signature_rsa_with_md5_data; }
+#if 0
const AlgorithmIdentifier *
hx509_signature_rsa_with_md2(void)
{ return &_hx509_signature_rsa_with_md2_data; }
+#endif
const AlgorithmIdentifier *
hx509_signature_rsa(void)
--- crypto.c.patch ends here ---
More information about the kde-freebsd
mailing list