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