Summary: | net-analyzer/sslsniff fails because of underlinking | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | New packages | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jer, zerochaos |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 372079 | ||
Attachments: |
Build log
sslsniff-0.8-underlinking.patch |
Description
Diego Elio Pettenò (RETIRED)
2011-06-05 11:59:34 UTC
Output file "sslsniff" needs libboost_system.so and libcrypto.so, but does not request them. Adding "-lboost_system -lcrypto" to the link line should fix it. Created attachment 292999 [details, diff]
sslsniff-0.8-underlinking.patch
Use pkgconfig to get openssl libraries (configure.ac) and add -lboost_system to LDFLAGS.
Also needs these changes to the ebuild:
Index: sslsniff-0.8.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/sslsniff/sslsniff-0.8.ebuild,v
retrieving revision 1.1
diff -u -B -r1.1 sslsniff-0.8.ebuild
--- sslsniff-0.8.ebuild 2 Oct 2011 01:27:31 -0000 1.1
+++ sslsniff-0.8.ebuild 18 Nov 2011 17:50:32 -0000
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sslsniff/sslsniff-0.8.ebuild,v 1.1 2011/10/02 01:27:31 robbat2 Exp $
-EAPI=2
+EAPI=4
inherit autotools eutils
DESCRIPTION="MITM all SSL connections on a LAN and dynamically generates certs"
@@ -14,12 +14,14 @@
KEYWORDS="~amd64 ~x86"
IUSE=""
-DEPEND="dev-libs/boost
+DEPEND="dev-util/pkgconfig"
+CDEPEND="dev-libs/boost
dev-libs/log4cpp
dev-libs/openssl"
+RDEPEND="${CDEPEND}"
src_prepare() {
- epatch "${FILESDIR}"/${PN}-0.6-asneeded.patch
+ epatch "${FILESDIR}"/${P}-underlinking.patch
eautoreconf
}
(In reply to comment #2) > Created attachment 292999 [details, diff] [details, diff] > sslsniff-0.8-underlinking.patch > > Use pkgconfig to get openssl libraries (configure.ac) and add -lboost_system > to LDFLAGS. Maybe AC_SUBST(openssl_LIBS) isn't even needed. I haven't checked. Can I get a bump on this from someone that know how to test if "AC_SUBST(openssl_LIBS)" is needed? Feel free to fix it however you see fit, as long as you sanely tested. Fixed in 0.8-r1. |