Your message dated Fri, 17 May 2013 11:00:15 +0000
with message-id <[email protected]>
and subject line Bug#708413: fixed in libgd2 2.1.0~alpha1-2
has caused the Debian Bug report #708413,
regarding Causes FTBFS for pstoedit (probably others) due to stuff in header 
files
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.)


-- 
708413: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708413
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libgd2-dev
Version: 2.1.0~alpha1-1
Severity: normal
Tags: patch

Trying to build pstoedit 3.62-1 with libgd2-dev  2.1.0~alpha1-1 results in:

libtool: compile:  c++ -Wl,--as-needed -Wl,-O1 \
  -DHAVE_CONFIG_H -I. -DHAVE_LIBPLOTTER -DHAVE_MKSTEMP \
  -DHAVE_MAGIC -fopenmp -I/usr/include/ImageMagick -DHAVE_LIBPNG \
  -DDEFAULTGS=/usr/bin/gs -DPSTOEDITDATADIR=\"/usr/share/pstoedit\" \
  -DPSTOEDITLIBDIR=\"/usr/lib/x86_64-linux-gnu/pstoedit\" -DBUGGYGPP \
  -pedantic -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wno-long-long \
  -D_FORTIFY_SOURCE=2 -D_LITTLE_ENDIAN -g -O2 -fstack-protector \
  --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DINTERNALBOOL \
  -c psimage.cpp  -fPIC -DPIC -o .libs/psimage.o
In file included from /usr/include/gd.h:1105:0,
                 from psimage.cpp:26:
/usr/include/gdfx.h:9:20: fatal error: config.h: No such file or directory
 #include "config.h"


The problem is the following lines in /usr/include/gdfx.h
....
#ifndef GDFX_H
#define GDFX_H 1

#ifdef HAVE_CONFIG_H             <<<
#include "config.h"                  <<<
#endif                                     <<<

#include "gd.h"
....

If a C source #include's <gd.h> (which in turn #include's <gdfx.h>) AND
has #define'd HAVE_CONFIG_H (but the config file isn't actually named config.h)
this will break.
Also note the erroneous recursive #include of <gd.h>.

Note that including "config.h" (present when building libgd2) isn't
really necessary: AFAICT no source file of libgd2 includes gdfx.h
by directly, only indirectly via gd.h. And any

#include <gd.h>

is typically preceded by

#include "config.h"

Suggested fix (patch attached) : drop the three lines from gdfx.h.

Cheers, Roderich









-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.9.2 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libgd2-dev depends on:
ii  libfontconfig1-dev [libfontconfig-dev]  2.9.0-7.1
ii  libfreetype6-dev                        2.4.9-1.1
ii  libgd2-3                                2.1.0~alpha1-1
ii  libjpeg8-dev [libjpeg-dev]              8d-1
ii  libpng12-dev                            1.2.49-3
ii  libtiff5-dev                            4.0.2-6
ii  libvpx-dev                              1.1.0-1
ii  libx11-dev                              2:1.5.0-1
ii  libxpm-dev                              1:3.5.10-1
ii  libxt-dev                               1:1.1.3-1
ii  zlib1g-dev [libz-dev]                   1:1.2.8.dfsg-1

libgd2-dev recommends no packages.

libgd2-dev suggests no packages.

-- no debconf information
--- libgd2-2.1.0~alpha1-ORIG/src/gdfx.h	2013-04-12 15:00:21.000000000 +0200
+++ libgd2-2.1.0~alpha1/src/gdfx.h	2013-05-13 19:05:34.665172485 +0200
@@ -5,10 +5,6 @@
 #ifndef GDFX_H
 #define GDFX_H 1
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
 #include "gd.h"
 
 	/* im MUST be square, but can have any size. Returns a new image

--- End Message ---
--- Begin Message ---
Source: libgd2
Source-Version: 2.1.0~alpha1-2

We believe that the bug you reported is fixed in the latest version of
libgd2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ondřej Surý <[email protected]> (supplier of updated libgd2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 15 May 2013 13:42:49 +0200
Source: libgd2
Binary: libgd-tools libgd-dev libgd3 libgd-dbg libgd2-xpm-dev libgd2-noxpm-dev
Architecture: source amd64 all
Version: 2.1.0~alpha1-2
Distribution: unstable
Urgency: low
Maintainer: GD team <[email protected]>
Changed-By: Ondřej Surý <[email protected]>
Description: 
 libgd-dbg  - Debug symbols for GD Graphics Library
 libgd-dev  - GD Graphics Library (development version)
 libgd-tools - GD command line tools and example code
 libgd2-noxpm-dev - GD Graphics Library (transitional package)
 libgd2-xpm-dev - GD Graphics Library (transitional package)
 libgd3     - GD Graphics Library
Closes: 708413
Changes: 
 libgd2 (2.1.0~alpha1-2) unstable; urgency=low
 .
   * Upload to unstable
   * Build-depend on libtiff5-dev | libtiff-dev to allow easier backports
   * Remove libjpeg skip test patch, add HAVE_CONFIG_H patch (Closes: #708413)
   * Yet another rename when uploading to unstable:
     + development library package to libgd-dev
     + shared library package to libgd3
Checksums-Sha1: 
 6cb653e7e55936ae857d14f1e35cd0133062c8be 1767 libgd2_2.1.0~alpha1-2.dsc
 cd6a41bfaee9b2ecc2976cd11dea0b0036941233 27023 
libgd2_2.1.0~alpha1-2.debian.tar.gz
 6030cc15a5a2d80c5a54fc7a0dc205808767166f 46270 
libgd-tools_2.1.0~alpha1-2_amd64.deb
 bb22e6f7cc6d441b8941bece40c65a449c0a43b4 322156 
libgd-dev_2.1.0~alpha1-2_amd64.deb
 c7e3d8015a04bedeb6d03f7bf0f2729280c68999 171138 libgd3_2.1.0~alpha1-2_amd64.deb
 192796402839372ac9835006d17043f797602d10 356884 
libgd-dbg_2.1.0~alpha1-2_amd64.deb
 e58c3b54cd9262e0678391ff714ac5fafcf9debf 918 
libgd2-xpm-dev_2.1.0~alpha1-2_all.deb
 372fb441981d6070d32f11f42c5f6676d92916fc 922 
libgd2-noxpm-dev_2.1.0~alpha1-2_all.deb
Checksums-Sha256: 
 50e72d400f1bb16b0a26e9b6624c3c3e8414daad1d4f7637e0a0cf86e167833a 1767 
libgd2_2.1.0~alpha1-2.dsc
 8091ea2f5672f4edaf48c5c7d44e755b16a1296425f1d857d8891686ff9ec761 27023 
libgd2_2.1.0~alpha1-2.debian.tar.gz
 27831eab6337abf3a1fde72e4113aea3c67ded28d111fd2bd7dc6d54e1d4f101 46270 
libgd-tools_2.1.0~alpha1-2_amd64.deb
 2896f0b53db3751f03be16ef57f56aa9ddaabb37f049a65acf9773d3804f7675 322156 
libgd-dev_2.1.0~alpha1-2_amd64.deb
 589e78858963b36bc8ba1c290208400cbecc3d504da5517a323cb003438625b4 171138 
libgd3_2.1.0~alpha1-2_amd64.deb
 28a10a830ccf820d04ba0291f665b0c146fb3f1cda1183f5ffc73038648dc7d9 356884 
libgd-dbg_2.1.0~alpha1-2_amd64.deb
 65f2ed79f7210629fc2f18d0c1aef6998a8fbc9911c3d032ef920c284427cfe5 918 
libgd2-xpm-dev_2.1.0~alpha1-2_all.deb
 2707bb92a7329d8c4ae1deb9331b08b13dcfa824e0a5ba70fd9b7dffbd48c9dd 922 
libgd2-noxpm-dev_2.1.0~alpha1-2_all.deb
Files: 
 9cfe6ce33860eea10a764d9dc07aef32 1767 graphics optional 
libgd2_2.1.0~alpha1-2.dsc
 9fbb1fa5b4925835cf853f85cc7e9e81 27023 graphics optional 
libgd2_2.1.0~alpha1-2.debian.tar.gz
 b952db154dc57da054f12908a926b679 46270 graphics optional 
libgd-tools_2.1.0~alpha1-2_amd64.deb
 879ca80b40d4fba54fc39801e7ecda47 322156 libdevel optional 
libgd-dev_2.1.0~alpha1-2_amd64.deb
 bfafa46486b5df6c234272d6bb5364a5 171138 libs optional 
libgd3_2.1.0~alpha1-2_amd64.deb
 f8eae444ba4a46488cbb60b2ed42132a 356884 debug extra 
libgd-dbg_2.1.0~alpha1-2_amd64.deb
 1bc972c6bfae1ec4adb3959d9486fe22 918 oldlibs extra 
libgd2-xpm-dev_2.1.0~alpha1-2_all.deb
 a8670ae36088514bb8f03b47f0805527 922 oldlibs extra 
libgd2-noxpm-dev_2.1.0~alpha1-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlGVNc8ACgkQ9OZqfMIN8nOQaACfSir2dFUea6REIZqf3u/bstcJ
J/AAoIOFu4zLRYz+7C+ekb7XkSIOyVmy
=GBQE
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to