Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Dec 2016 09:01:29 +0800
From:      Marcelo Araujo <araujobsdport@gmail.com>
To:        dev@httpd.apache.org
Cc:        "Philip M. Gollucci" <pgollucci@p6m7g8.com>, apache@freebsd.org, suraj@ixsystems.com
Subject:   FreeBSD apache 2.4.25 (build fail)
Message-ID:  <CAOfEmZjqN18vW3=HtPLw5GWVutoYAJkMwuDewixaR64fZeHLOw@mail.gmail.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hi guys,

On FreeBSD I have found an issue, specially when we are building the module
mpm_itk together with the newest apache version 2.4.25 that makes the build
fail with an error.

the previous version:
usr/local/include/apache24/ap_config_auto.h:253:9: warning:
'PACKAGE_VERSION' macro redefined [-Wmacro-redefined]
#define PACKAGE_VERSION ""


new version 2.4.25:
In file included from /usr/local/include/apache24/ap_config.h:138:
/usr/local/include/apache24/ap_config_auto.h:257:9: error:
'PACKAGE_VERSION' macro redefined [-Werror,-Wmacro-redefined]
#define PACKAGE_VERSION ""

As you can see, apache package added on configure.in the option '-Werror',
the macro-redefined before was just a warning but now the build fail with
an error.

Attached there is a patch that make it build fine again on FreeBSD.
Basically in this patch I'm removing the -Werror.

NOTE: I can add this patch on FreeBSD port www/apache24.

Let me know what do you guys think about it.


Best,
-- 

-- 
Marcelo Araujo            (__)araujo@FreeBSD.org
\\\'',)http://www.FreeBSD.org <http://www.freebsd.org/>;   \/  \ ^
Power To Server.         .\. /_)

[-- Attachment #2 --]
--- configure.in.orig	2016-12-02 11:36:06 UTC
+++ configure.in
@@ -111,7 +111,7 @@ fi
 
 if test "$apr_found" = "reconfig"; then
   APR_SUBDIR_CONFIG(srclib/apr,
-                    [$apache_apr_flags --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir --datadir=$datadir --with-installbuilddir=$installbuilddir],
+                    [$apache_apr_flags --prefix=$prefix],
                     [--enable-layout=*|\'--enable-layout=*])
   dnl We must be the first to build and the last to be cleaned
   AP_BUILD_SRCLIB_DIRS="apr $AP_BUILD_SRCLIB_DIRS"
@@ -177,7 +177,7 @@ esac  
 
 if test "$apu_found" = "reconfig"; then
   APR_SUBDIR_CONFIG(srclib/apr-util,
-                    [--with-apr=../apr --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir],
+                    [--with-apr=../apr --prefix=$prefix],
                     [--enable-layout=*|\'--enable-layout=*])
   dnl We must be the last to build and the first to be cleaned
   AP_BUILD_SRCLIB_DIRS="$AP_BUILD_SRCLIB_DIRS apr-util"
@@ -597,7 +597,6 @@ AC_ARG_ENABLE(maintainer-mode,APACHE_HEL
     if test "$GCC" = "yes"; then
       APR_ADDTO(CFLAGS,[-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith])
       APACHE_ADD_GCC_CFLAG([-std=c89])
-      APACHE_ADD_GCC_CFLAG([-Werror])
       APACHE_ADD_GCC_CFLAG([-Wdeclaration-after-statement])
       APACHE_ADD_GCC_CFLAG([-Wformat])
       APACHE_ADD_GCC_CFLAG([-Wformat-security])
@@ -838,12 +837,18 @@ AC_DEFINE_UNQUOTED(HTTPD_ROOT, "${ap_pre
 	[Root directory of the Apache install area])
 AC_DEFINE_UNQUOTED(SERVER_CONFIG_FILE, "${rel_sysconfdir}/${progname}.conf",
 	[Location of the config file, relative to the Apache root directory])
+AC_DEFINE_UNQUOTED(DEFAULT_ERRORLOG, "${rel_logfiledir}/httpd-error.log",
+	[Location of error log file])
+AC_DEFINE_UNQUOTED(DEFAULT_SCOREBOARD, "${rel_runtimedir}/apache_runtime_status",
+	[Location of ScoreBoard file])
 AC_DEFINE_UNQUOTED(AP_TYPES_CONFIG_FILE, "${rel_sysconfdir}/mime.types",
 	[Location of the MIME types config file, relative to the Apache root directory])
+AC_DEFINE_UNQUOTED(DOCUMENT_LOCATION, "${rel_htdocsdir}",
+	[Location of document root])
 
-perlbin=`$ac_aux_dir/PrintPath perl`
+perlbin=/usr/local/bin/perl
 if test "x$perlbin" = "x"; then
-    perlbin="/replace/with/path/to/perl/interpreter"
+    perlbin=/usr/local/bin/perl
 fi
 AC_SUBST(perlbin)
 
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOfEmZjqN18vW3=HtPLw5GWVutoYAJkMwuDewixaR64fZeHLOw>