From owner-freebsd-questions@freebsd.org Sun Aug 27 13:20:00 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A6B4DEFE13 for ; Sun, 27 Aug 2017 13:20:00 +0000 (UTC) (envelope-from freebsd@fongaboo.com) Received: from h4lix.wtfayla.net (helix.wtfayla.net [64.246.134.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 758F471CC6 for ; Sun, 27 Aug 2017 13:19:58 +0000 (UTC) (envelope-from freebsd@fongaboo.com) Received: from localhost (localhost [127.0.0.1]) by h4lix.wtfayla.net (Postfix) with ESMTP id 0D99980E92B for ; Sun, 27 Aug 2017 09:19:51 -0400 (EDT) Received: from h4lix.wtfayla.net ([127.0.0.1]) by localhost (h4lix.wtfayla.net [127.0.0.1]) (maiad, port 10024) with ESMTP id 33847-05 for ; Sun, 27 Aug 2017 09:19:50 -0400 (EDT) Received: from h4lix.wtfayla.net (h4lix.wtfayla.net [64.246.134.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by h4lix.wtfayla.net (Postfix) with ESMTPS id 8511E80E929 for ; Sun, 27 Aug 2017 09:19:50 -0400 (EDT) Date: Sun, 27 Aug 2017 09:19:50 -0400 (EDT) From: Fongaboo X-X-Sender: fongaboo@h4lix.wtfayla.net To: freebsd-questions@freebsd.org Subject: Re: apache error during iRedmil installation In-Reply-To: <3d5040ff-d2d2-d0e4-43c7-91ab8ee90c25@mailman-hosting.com> Message-ID: References: <3d5040ff-d2d2-d0e4-43c7-91ab8ee90c25@mailman-hosting.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2017 13:20:00 -0000 What is the proper way to apply this patch? I placed it in /usr/ports/www/apache24/files/. Initially I named it patch-libressl, but still got the same errors. I tried naming it patch-modules_ssl_mod__ssl.c as hunch, based on the head of the file, but no dice. NOTE: I am not trying to install iRedmil, just Apache 24 with libressl. On Mon, 3 Jul 2017, Jim Ohlstein wrote: > > > On 07/03/2017 02:25 AM, Fatemeh Mehdizadeh wrote: >> Hi all, >> I want to install Iredmail 0.9.7 on my FreeBSD 11. I do the steps from >> iRedmail's manual and now I encounter with this error during installation: >> >> >> >> >> >> >> >> >> >> >> >> >> >> *ab.c:2518:5: warning: implicit declaration of function >> 'SSL_CTX_set_max_proto_version' is invalid in C99 >> [-Wimplicit-function-declaration] SSL_CTX_set_max_proto_version(ssl_ctx, >> max_prot); ^ab.c:2519:5: warning: implicit declaration of function >> 'SSL_CTX_set_min_proto_version' is invalid in C99 >> [-Wimplicit-function-declaration] SSL_CTX_set_min_proto_version(ssl_ctx, >> min_prot); ^2 warnings generated./usr/local/share/apr/build-1/libtool >> --silent --mode=link cc -O2 -pipe -I/usr/local/include -DLIBICONV_PLUG >> -fstack-protector -fno-strict-aliasing -L/usr/local/lib -lssl -lcrypto >> -lcrypt -lpthread -L/usr/local/lib/db5 -L/usr/lib -L/usr/local/lib >> -Wl,-rpath,/usr/local/lib -fstack-protector -o ab ab.lo >> -L/usr/local/lib -R/usr/local/lib -laprutil-1 -ldb-5.3 -lexpat >> -L/usr/local/lib -R/usr/local/lib -lapr-1 -lcrypt -lpthread -lmab.o: In >> function `main':ab.c:(.text+0xbd9): undefined reference to >> `SSL_CTX_set_max_proto_version'ab.c:(.text+0xbea): undefined reference to >> `SSL_CTX_set_min_proto_version'cc: error: linker command failed with exit >> code 1 (use -v to see invocation)* >> >> Please help me to solve the problem. >> >> Thanks for sharing your knowledge. > > Looks like iRedMail is using libressl. Since the latest libressl update > apache24 won't build. There is a patch at > https://bz.apache.org/bugzilla/show_bug.cgi?id=61184, but it hasn't > filtered into the ports tree. > > > -- > Jim Ohlstein > Professional Mailman Hosting > https://mailman-hosting.com > >