DragonFly users List (threaded) for 2010-10
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: dragonfly-2010Q3 pkg_rr nse_openssl.cc:11:25: error: openssl/md2.h: No such file or directory
On Fri, Oct 29, 2010 at 04:29:12PM +0530, Siju George wrote:
> Hi,
>
> pkg_rolling-replace failed on pkgsrc dragonfly-2010Q3 forn nmap with
> the following error
>
> "Nmap\" -DNMAP_URL=\"http://nmap.org\"
> -DNMAP_PLATFORM=\"i386-pc-dragonfly\"
> -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2
> -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing
> nse_bit.cc -o nse_bit.o
> c++ -c -I./liblua -I./libdnet-stripped/include -I/usr/pkg/include
> -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include
> -I/usr/include -I/usr/include -I./nbase -I./nsock/include
> -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://nmap.org\"
> -DNMAP_PLATFORM=\"i386-pc-dragonfly\"
> -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2
> -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing
> nse_openssl.cc -o nse_openssl.o
> nse_openssl.cc:11:25: error: openssl/md2.h: No such file or directory
> nse_openssl.cc: In function 'int l_md2(lua_State*)':
> nse_openssl.cc:228: error: 'MD2' was not declared in this scope
> gmake[1]: *** [nse_openssl.o] Error 1
> gmake[1]: Leaving directory
> `/usr/pkgobj/bootstrap/work/pkgsrc/net/nmap/work/nmap-5.35DC1'
> gmake: *** [all] Error 2
> *** Error code 2
bmake clean patch
Than apply this patch. OpenSSL removed MD2 support.
Thanks,
Joe
--- work/nmap-5.35DC1/nse_openssl.cc 2010-03-28 17:18:02 -0400
+++ work/nmap-5.35DC1/nse_openssl.cc.new 2010-10-29 11:34:08 -0400
@@ -8,7 +8,6 @@
#include <openssl/crypto.h>
#include <openssl/bn.h>
#include <openssl/rand.h>
-#include <openssl/md2.h>
#include <openssl/md4.h>
#include <openssl/md5.h>
#include <openssl/sha.h>
@@ -219,16 +218,6 @@
return 1;
}
-static int l_md2(lua_State *L) /** md2(string s) */
-{
- size_t len;
- const unsigned char *s = (unsigned char *) luaL_checklstring( L, 1, &len );
- unsigned char digest[16];
-
- lua_pushlstring( L, (char *) MD2( s, len, digest ), 16 );
- return 1;
-}
-
static int l_md4(lua_State *L) /** md4(string s) */
{
size_t len;
@@ -515,7 +504,6 @@
{ "bignum_mod_exp", l_bignum_mod_exp },
{ "rand_bytes", l_rand_bytes },
{ "rand_pseudo_bytes", l_rand_pseudo_bytes },
- { "md2", l_md2 },
{ "md4", l_md4 },
{ "md5", l_md5 },
{ "sha1", l_sha1 },
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]