Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Fri, 12 Apr 2013 01:03:51 +0200
From: John Spencer <maillist-johndev@...fooze.de>
To: john-dev@...ts.openwall.com
Subject: jumbo pull request #255 (trouble with static builds)

hi list,

https://github.com/magnumripper/JohnTheRipper/pull/255

basically the makefile currently links to -lssl -lcrypto unconditionally.
when static linking this leads to duplicate symbols from builtin sources
i.e. MD5_Init, MD4_Init. those are in libcrypto and in jtr source files 
md5.c and md4.c.
both files have checks for HAVE_OPENSSL in them.
so defining these at build time makes them omit their content, i.e. 
empty object files.

thus i've added the CFLAG -DHAVE_OPENSSL unconditionally as well.
this fixes the problem.

this is one of two possible fixes, the alternative is that a proper 
check for an installed openssl is done (or the user can choose) and if 
so add both -DHAVE_OPENSSL to CFLAGS and -lssl -lcrypto to LDFLAGS.

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ