Your message dated Fri, 18 Jan 2013 19:46:11 +0100
with message-id <[email protected]>
and subject line Re: Bug#698424: gnutls26: FTBFS with eglibc 2.16: Needs gnulib 
update
has caused the Debian Bug report #698424,
regarding gnutls26: FTBFS with eglibc 2.16: Needs gnulib update
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.)


-- 
698424: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698424
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: gnutls26
Version: 2.12.20-3
Severity: normal
Tags: patch
User: [email protected]
Usertags: port-x32 ftbfs-gnulib

When I try building gnutls26 with eglibc 2.16 from experimental installed, I 
get:

/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  
-I../intl -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector --param=ssp-buffer-
size=4 -Wformat -Werror=format-security -Wall -I/usr/include/p11-kit-1   -c -o 
read-file.lo read-file.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -D_FORTIFY_SOURCE=2 
-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-
security -Wall -I/usr/include/p11-kit-1 -c read-file.c  -fPIC -DPIC -o 
.libs/read-file.o
In file included from read-file.h:25:0,
                 from read-file.c:20:
./stdio.h:1029:1: error: 'gets' undeclared here (not in a function)
make[7]: *** [read-file.lo] Error 1
make[7]: Leaving directory `/tmp/buildd/gnutls26-2.12.20/lib/gl'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/tmp/buildd/gnutls26-2.12.20/lib/gl'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/tmp/buildd/gnutls26-2.12.20/lib/gl'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/tmp/buildd/gnutls26-2.12.20/lib'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/buildd/gnutls26-2.12.20/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/buildd/gnutls26-2.12.20'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/buildd/gnutls26-2.12.20'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Attaching a debdiff which I'm using to fix the compilation error.
-- 
Daniel Schepler
diff -Nru gnutls26-2.12.20/debian/changelog gnutls26-2.12.20/debian/changelog
--- gnutls26-2.12.20/debian/changelog	2013-01-06 02:11:02.000000000 -0800
+++ gnutls26-2.12.20/debian/changelog	2013-01-18 03:14:23.000000000 -0800
@@ -1,3 +1,9 @@
+gnutls26 (2.12.20-3+x32) unreleased; urgency=low
+
+  * Fix included gnulib to compile against eglibc 2.16.
+
+ -- Daniel Schepler <[email protected]>  Fri, 18 Jan 2013 03:13:27 -0800
+
 gnutls26 (2.12.20-3) unstable; urgency=low
 
   * Pull fixes from 2.12.22:
diff -Nru gnutls26-2.12.20/debian/patches/34_gnulib_eglibc2_16.diff gnutls26-2.12.20/debian/patches/34_gnulib_eglibc2_16.diff
--- gnutls26-2.12.20/debian/patches/34_gnulib_eglibc2_16.diff	1969-12-31 16:00:00.000000000 -0800
+++ gnutls26-2.12.20/debian/patches/34_gnulib_eglibc2_16.diff	2013-01-18 03:12:08.000000000 -0800
@@ -0,0 +1,30 @@
+Index: gnutls26-2.12.20/gl/stdio.in.h
+===================================================================
+--- gnutls26-2.12.20.orig/gl/stdio.in.h	2012-03-01 07:47:48.000000000 -0800
++++ gnutls26-2.12.20/gl/stdio.in.h	2013-01-18 03:11:42.000000000 -0800
+@@ -714,8 +714,10 @@
+ /* It is very rare that the developer ever has full control of stdin,
+    so any use of gets warrants an unconditional warning.  Assume it is
+    always declared, since it is required by C89.  */
++#if HAVE_RAW_DECL_GETS
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+ #endif
++#endif
+ 
+ 
+ #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
+Index: gnutls26-2.12.20/lib/gl/stdio.in.h
+===================================================================
+--- gnutls26-2.12.20.orig/lib/gl/stdio.in.h	2012-03-01 07:53:13.000000000 -0800
++++ gnutls26-2.12.20/lib/gl/stdio.in.h	2013-01-18 03:12:02.000000000 -0800
+@@ -714,8 +714,10 @@
+ /* It is very rare that the developer ever has full control of stdin,
+    so any use of gets warrants an unconditional warning.  Assume it is
+    always declared, since it is required by C89.  */
++#if HAVE_RAW_DECL_GETS
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+ #endif
++#endif
+ 
+ 
+ #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
diff -Nru gnutls26-2.12.20/debian/patches/series gnutls26-2.12.20/debian/patches/series
--- gnutls26-2.12.20/debian/patches/series	2013-01-06 00:55:02.000000000 -0800
+++ gnutls26-2.12.20/debian/patches/series	2013-01-18 03:11:19.000000000 -0800
@@ -7,3 +7,4 @@
 31_allow_key_usage_violation.diff
 32_record-padding-parsing.patch
 33_stricter_rsa_pkcs_1.5.diff
+34_gnulib_eglibc2_16.diff

--- End Message ---
--- Begin Message ---
Version: 2.12.22-1

On 2013-01-18 Daniel Schepler <[email protected]> wrote:
> Source: gnutls26
> Version: 2.12.20-3
[...]
> When I try building gnutls26 with eglibc 2.16 from experimental installed, I 
> get:
[...]
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -D_FORTIFY_SOURCE=2 
> -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-
> security -Wall -I/usr/include/p11-kit-1 -c read-file.c  -fPIC -DPIC -o 
> .libs/read-file.o
> In file included from read-file.h:25:0,
>                  from read-file.c:20:
> ./stdio.h:1029:1: error: 'gets' undeclared here (not in a function)
> make[7]: *** [read-file.lo] Error 1
> make[7]: Leaving directory `/tmp/buildd/gnutls26-2.12.20/lib/gl'
> make[6]: *** [all-recursive] Error 1
[...]

This is fixed upstream, 2.12.22 builds fine. The newer version is
available in experimental.

cu andreas

--- End Message ---

Reply via email to