Your message dated Fri, 13 Jan 2012 03:28:16 +0800
with message-id 
<CAMr=8w7mrxty+erj3ifau8bsplrdke99+yasdubxg-zu0mw...@mail.gmail.com>
and subject line Appears to be already fixed.
has caused the Debian Bug report #624167,
regarding axis2c: please do not use -Werror
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
624167: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624167
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: axis2c
Version: 1.6.0-2
Severity: important
Justification: FTBFS but autobuilders coped somehow
Tags: patch

Hi,

Trying to build from source (gcc is gcc-4.4, but the same happens
with gcc-4.5 or 4.6).

$ debian/rules build
[...]
 gcc -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../include 
-I../../../../../src/core/transport -I../../../../../src/core/transport/http 
-I../../../../../src/core/transport/http/sender/libcurl 
-I../../../../../src/core/description -I../../../../../src/core/context 
-I../../../../../src/core/phaseresolver -I../../../../../src/core/engine 
-I../../../../../src/core/deployment -I../../../../../util/include 
-I../../../../../axiom/include -D_LARGEFILE64_SOURCE -DAXIS2_GUTHTHILA_ENABLED 
-DAXIS2_SSL_ENABLED -g -Wall -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Werror 
-Wno-implicit-function-declaration -g -D_GNU_SOURCE -DAXIS2_GUTHTHILA_ENABLED 
-DAXIS2_SSL_ENABLED -c ssl/ssl_utils.c  -fPIC -DPIC -o .libs/ssl_utils.o
cc1: warnings being treated as errors
ssl/ssl_utils.c: In function 'axis2_ssl_utils_initialize_ctx':
ssl/ssl_utils.c:66: error: assignment discards qualifiers from pointer target 
type
make[8]: *** [ssl_utils.lo] Error 1
make[8]: Leaving directory `/tmp/axis2c-1.6.0/src/core/transport/http/sender'

How about this patch?
---
 debian/changelog |   11 +++++++++++
 debian/control   |    2 +-
 debian/rules     |    5 +++++
 3 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 72eeb58..f6c26de 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
+axis2c (1.6.0-2.1) local; urgency=low
+
+  * Do not pass -Werror to gcc at build time.  (Otherwise, the
+    package fails to build from source.)
+  * Allow build flags to be customized by setting
+    DEB_BUILD_OPTIONS=noopt or DEB_CFLAGS_APPEND=-Werror in the
+    build-time environment.
+  * Build-Depends: dpkg-dev (>= 1.15.7) for dpkg-buildflags.
+
+ -- Jonathan Nieder <[email protected]>  Thu, 03 Mar 2011 01:48:21 -0600
+
 axis2c (1.6.0-2) unstable; urgency=low
 
   * Fix patches/03_enable-security to enable both security
diff --git a/debian/control b/debian/control
index d451552..0292743 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ DM-Upload-Allowed: yes
 Uploaders: Daniel Nurmi <[email protected]>, Graziano Obertelli 
<[email protected]>, Chris Grzegorczyk <[email protected]>, Thierry 
Carrez <[email protected]>
 XSBC-Original-Maintainer: Soren Hansen <[email protected]>, Thierry Carrez 
<[email protected]>
 Maintainer: Kyo Lee <[email protected]>
-Build-Depends: cdbs, debhelper (>= 7), autotools-dev, libxml2-dev, 
libapr1-dev, apache2-threaded-dev, zlib1g-dev, libssl-dev
+Build-Depends: cdbs, debhelper (>= 7), dpkg (>= 1.15.7), autotools-dev, 
libxml2-dev, libapr1-dev, apache2-threaded-dev, zlib1g-dev, libssl-dev
 Standards-Version: 3.9.1
 Homepage: http://ws.apache.org/axis2/c/
 
diff --git a/debian/rules b/debian/rules
index 821a809..0cc9e03 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,11 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/autotools.mk
 
+# NEEDSWORK: Simplify when cdbs learns to use dpkg-buildflags.
+CFLAGS := -ansi -Wall -Wno-implicit-function-declaration \
+       $(shell dpkg-buildflags --get CFLAGS) \
+       -D_LARGEFILE64_SOURCE -D_GNU_SOURCE
+
 DEB_CONFIGURE_PREFIX:=/usr/lib/axis2
 DEB_CONFIGURE_EXTRA_FLAGS := --with-apache2=/usr/include/apache2 
--with-apr=/usr/include/apr-1.0 --enable-openssl --enable-multi-thread=no
 
-- 
1.7.4.1




--- End Message ---
--- Begin Message ---
Source-Version: 1.6.0-2.1

The proposed patch was applied in 1.6.0-2.1, though the changelog
didn't close the two bugs.

-- 
Regards,
Aron Xu


--- End Message ---

Reply via email to