Date: Wed, 2 Jan 2008 04:06:17 GMT From: Joe Horn <joehorn@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/119243: OpenSSL library problem in mod_tls of Proftpd Message-ID: <200801020406.m0246HMg068586@www.freebsd.org> Resent-Message-ID: <200801020410.m024A1w7026923@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 119243 >Category: ports >Synopsis: OpenSSL library problem in mod_tls of Proftpd >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 02 04:10:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Joe Horn >Release: 6.2-RELEASE-p9 >Organization: Information Management Department, NKFUST, Taiwan >Environment: FreeBSD joehorn.idv.tw 6.2-RELEASE-p9 FreeBSD 6.2-RELEASE-p9 #3: Tue Dec 4 13:25:45 CST 2007 root@joehorn.idv.tw:/usr/obj/usr/src/sys/Power i386 >Description: Compiling proftpd with mod_tls may cause a problem, and error messages displayed while starting proftpd daemon shown below: - mod_tls/2.1.2: compiled using OpenSSL version 'OpenSSL 0.9.7e-p1 25 Oct 2004' headers, but linked to OpenSSL version 'OpenSSL 0.9.8g 19 Oct 2007' library - Fatal: unable to load module 'mod_tls.c': Operation not permitted I just found those messages, and tried to understanding what happened by these three steps: # which openssl /usr/bin/openssl # /usr/bin/openssl OpenSSL> version OpenSSL 0.9.7e-p1 25 Oct 2004 OpenSSL> quit # pkg_info|grep -i openssl openssl-0.9.8g SSL and crypto library php5-openssl-5.2.5 The openssl shared extension for php >How-To-Repeat: >Fix: Patch attached with submission follows: --- /usr/ports/ftp/proftpd/Makefile.orig Wed Jan 2 11:34:28 2008 +++ /usr/ports/ftp/proftpd/Makefile Wed Jan 2 11:36:11 2008 @@ -187,9 +187,9 @@ .endif .if defined(WITH_OPENSSL) -CFLAGS+= -DHAVE_OPENSSL .include <${PORTSDIR}/Mk/bsd.openssl.mk> -PROFTPD_LIBS+= -lssl -lcrypto -L${LOCALBASE}/lib +CFLAGS+= -DHAVE_OPENSSL -I${OPENSSLINC} +PROFTPD_LIBS+= -lssl -lcrypto -L${OPENSSLLIB} MODULES:=${MODULES}:mod_tls .endif >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801020406.m0246HMg068586>