Date: Sun, 10 Feb 2013 16:07:03 GMT From: Trond Endrestøl <Trond.Endrestol@ximalas.info> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/176012: irc/inspircd fails to detect OpenSSL in base running recent stable/9 r246610 Message-ID: <201302101607.r1AG73v0091866@red.freebsd.org> Resent-Message-ID: <201302101610.r1AGA2ZQ063668@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 176012 >Category: ports >Synopsis: irc/inspircd fails to detect OpenSSL in base running recent stable/9 r246610 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 10 16:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Trond Endrestøl >Release: FreeBSD/amd64 9.1-STABLE >Organization: Private >Environment: FreeBSD enterprise.ximalas.info 9.1-STABLE FreeBSD 9.1-STABLE #0 r246610: Sun Feb 10 13:41:57 CET 2013 root@enterprise.ximalas.info:/usr/obj/usr/src/sys/ENTERPRISE amd64 >Description: irc/inspircd fails to detect OpenSSL in base: root@enterprise:/usr/ports/irc/inspircd>make ===> License GPLv2 accepted by the user ===> Found saved configuration for inspircd-2.0.9_2 ===> Extracting for inspircd-2.0.9_2 => SHA256 Checksum OK for InspIRCd-2.0.9.tar.bz2. ===> inspircd-2.0.9_2 depends on file: /usr/local/bin/perl5.16.2 - found ===> Patching for inspircd-2.0.9_2 ===> inspircd-2.0.9_2 depends on file: /usr/local/bin/perl5.16.2 - found ===> Applying FreeBSD patches for inspircd-2.0.9_2 ===> inspircd-2.0.9_2 depends on file: /usr/local/bin/perl5.16.2 - found ===> Configuring for inspircd-2.0.9_2 Cannot enable : destination in src/modules exists (might already be enabled?) Enabling m_ssl_openssl.cpp ... Enabling m_regex_posix.cpp ... m_geoip.cpp = disabled m_ldapauth.cpp = disabled m_ldapoper.cpp = disabled m_mssql.cpp = disabled m_mysql.cpp = disabled m_pgsql.cpp = disabled m_regex_pcre.cpp = disabled m_regex_posix.cpp = enabled m_regex_stdlib.cpp = disabled m_regex_tre.cpp = disabled m_sqlite3.cpp = disabled m_ssl_gnutls.cpp = disabled m_ssl_openssl.cpp = enabled Remember: YOU are responsible for making sure any libraries needed have been installed! Detecting modules ................................................................................................................................................. Ok, 145 modules. Running non-interactive configure... Checking for cache from previous configure... not found Checking operating system version... freebsd Checking if stdint.h exists... yes Checking if strlcpy exists... yes Checking if kqueue exists... yes Checking for epoll support... no Checking for eventfd support... no Checking if Solaris I/O completion ports are available... no Checking for libgnutls... no Checking for openssl... no Checking if you are running an ancient, unsupported OS... no (9.1-STABLE ) Pre-build configuration is complete! Base install path: /usr/local/lib/inspircd Config path: /usr/local/etc/inspircd Module path: /usr/local/lib/inspircd/modules GCC Version Found: 4.2 Compiler program: g++ GnuTLS Support: n OpenSSL Support: y Important note: The maximum length values are now configured in the configuration file, not in ./configure! See the <limits> tag in the configuration file for more information. Sorry, but i couldn't detect openssl. Make sure openssl is in your path. ===> Building for inspircd-2.0.9_2 make: cannot open BSDmakefile. *** [do-build] Error code 1 Stop in /usr/ports/irc/inspircd. *** [build] Error code 1 Stop in /usr/ports/irc/inspircd. >How-To-Repeat: Update the ports tree on an updated stable/9 system and execute these two commands: cd /usr/ports/irc/inspircd make >Fix: The Perl script configure contains a regexp that does not recognize the version number of OpenSSL in base. The command openssl version is used in the aforementioned configure script, and gives this output: OpenSSL 0.9.8x-freebsd 10 May 2012 Only the "0.9.8x-freebsd" portion is used by the configure script. I guess the -freebsd suffix is the culprit. Either disable the regexp test or rewrite the regexp to better cope with local version numbers. I chose the former as shown in the following patch. --- configure.orig 2012-10-07 00:29:07.000000000 +0200 +++ configure 2013-02-10 16:08:46.000000000 +0100 @@ -272,11 +272,11 @@ chomp($config{GCCMINOR} = `$exec`); $config{MAXBUF} = "512"; # Max buffer size -if ($config{HAS_OPENSSL} =~ /^([-[:digit:].]+)([a-z])?(\-[a-z][0-9])?$/) { - $config{HAS_OPENSSL} = $1; -} else { - $config{HAS_OPENSSL} = ""; -} +#if ($config{HAS_OPENSSL} =~ /^([-[:digit:].]+)([a-z])?(\-[a-z][0-9])?$/) { +# $config{HAS_OPENSSL} = $1; +#} else { +# $config{HAS_OPENSSL} = ""; +#} if (($config{GCCVER} eq "") || ($config{GCCMINOR} eq "")) { if ($config{IS_DARWIN} eq "YES") { >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302101607.r1AG73v0091866>