Your message dated Wed, 28 Feb 2018 16:49:26 +0000 with message-id <[email protected]> and subject line Bug#242936: fixed in libgdchart-gd2 0.11.5-10 has caused the Debian Bug report #242936, regarding libgdchart-gd2-noxpm-dev: Examples fail to compile 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.) -- 242936: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=242936 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: libgdchart-gd2-noxpm-dev Version: 0.11.4-4 Severity: normal Tags: sid patch Hi, I try to compile /usr/share/doc/libgdchart-gd2-noxpm-dev/examples/gdc_samp1.c and whatever I do I get a bunch of unresolved references in libgdc.so. It took me the whole day to figure out what the heck was wrong; it's a strange way in which gdchart defines global variables. I enclose a proposed README.Debian file that would hopefully save other people the trouble I went through. *** README.Debian To compile a program that uses libgdchart in Debian, the following must be true: - One source file of the program must contain the following #includes: #include <gdc.h> #include <gdchart.h> #include <gdcpie.h> The program must include all three header files, even if it does not use gdcpie. - HAVE_LIBFREETYPE must be defined, regardless of whether the program uses libfreetype or not. If either of the above is not true, linking will fail with unresolved symbols. Thus, in order, for example, to get the example program, gdc_samp1.c, to compile, you must add #include <gdcpie.h> in the code, and then run gcc -D HAVE_LIBFREETYPE -o gdc_samp1 gdc_samp1.c -lgdc The reason for this is that certain global variables used by gdchart are defined in the header files, which either declare the globals as "extern", or actually define them, depending on a condition, namely whether GDC_LIB is defined. The shared library installed by Debian has references to many such globals, and these must be defined in the program. Another problem is that if more than one source file includes the header files, the globals will be defined multiple times. You can try specifying #define GDC_LIB before the #includes in all but one source files. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.4.24-1-686 Locale: LANG=C, LC_CTYPE=el_GR Versions of packages libgdchart-gd2-noxpm-dev depends on: ii libgd-noxpm-dev 1.8.4-36 GD Graphics Library (old version, ii libgdchart-gd2-noxpm 0.11.4-4 Generate graphs using the GD libra -- no debconf information
--- End Message ---
--- Begin Message ---Source: libgdchart-gd2 Source-Version: 0.11.5-10 We believe that the bug you reported is fixed in the latest version of libgdchart-gd2, 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. Andreas Tille <[email protected]> (supplier of updated libgdchart-gd2 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: SHA256 Format: 1.8 Date: Wed, 28 Feb 2018 17:33:10 +0100 Source: libgdchart-gd2 Binary: libgdchart-gd2-noxpm-dev libgdchart-gd2-xpm-dev libgdchart-gd2-noxpm libgdchart-gd2-xpm Architecture: source Version: 0.11.5-10 Distribution: unstable Urgency: medium Maintainer: Jonas Smedegaard <[email protected]> Changed-By: Andreas Tille <[email protected]> Description: libgdchart-gd2-noxpm - Generate graphs using the GD library libgdchart-gd2-noxpm-dev - Generate graphs using the GD library (development version) libgdchart-gd2-xpm - Generate graphs using the GD library libgdchart-gd2-xpm-dev - Generate graphs using the GD library (development version) Closes: 242936 641692 880360 Changes: libgdchart-gd2 (0.11.5-10) unstable; urgency=medium . * Team upload . [ Andreas Tille ] * Move to salsa.d.o * Standards-Version: 4.1.3 . [ Matthias Klose ] * gdc.h: Remove make dependencies on system headers Closes: #641692 (LP: #831241) . [ Antonios Christofides ] * Add debian/README.Debian to save users trouble to find out usage Closes: #242936 . [ Helmut Grohne ] * Fix FTCBFS: Use a triplet-prefixed CC Closes: #880360 Checksums-Sha1: 900a0069142bb0a01a2cffa3ed2ea8bf1ab3b2dc 2259 libgdchart-gd2_0.11.5-10.dsc f033fb199151fec74bcedb9c53263820abd2eeec 8320 libgdchart-gd2_0.11.5-10.debian.tar.xz f21ab5a2fba737ece6ed8f96608fc92bf4d6dee3 14374 libgdchart-gd2_0.11.5-10_source.buildinfo Checksums-Sha256: d4807fa7fb46817017a0741edc822249a01e629780cca3fe9d0b62cae12592f3 2259 libgdchart-gd2_0.11.5-10.dsc e9cdbefcbffbb31da2fd859b19d852fc698470f8c18d83b847a9f5bbe6d161fd 8320 libgdchart-gd2_0.11.5-10.debian.tar.xz cfb406bab19e5f5a3da866011e4c0619119c944e79457a026bb486bed251c103 14374 libgdchart-gd2_0.11.5-10_source.buildinfo Files: 37232cc0fed2625a93a267e8e25246e0 2259 libs optional libgdchart-gd2_0.11.5-10.dsc 9e5f56ad7818648b6b2a6afa736a6724 8320 libs optional libgdchart-gd2_0.11.5-10.debian.tar.xz 23bf7757bc3642b0f508c1489076451f 14374 libs optional libgdchart-gd2_0.11.5-10_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJCBAEBCAAsFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAlqW2vEOHHRpbGxlYUBy a2kuZGUACgkQV4oElNHGRtFHWg//b0Mz6tjb9NZcsB8WW09yCJznExmWm7M5z199 2zYrQnfqOJHo32E4wFf/JrD36bv70lEFwvmJQyQ3RsFBSzvfsBGmpd6iB2M7/S7P K/LjjM1rTIHWfcqIwSMXX5dKkXxL82Ek7aqs95hiGmVU49eSeZ8gNI2lvZFAiL2L BSobaLpn3CsNMVUjbtsdhVkV/9YLHkoJMBpwjZ52FVHvNZnYWZqTi9zM1cy3IXwQ /4Gq/WQN/8xYUU/y+7hn7C8jTeadAF7rCD8ANtUp41VscEpfBsFjSjnAZNZus1hW /pyrQI5XWAy2pQP6e0ZJPbYYSBJy1mA1l1Ez1ioEdH1HjlxoblcXZ5xMtPt9r7jm 8G9vEcEa5UF/BbnYMBe3B2aRo9BxBlSjL+uG6W62btqOIl1n3y0QbnI7ss0Mfj/W FxGDx73xNetkq/5ksxR8mo5/rpftP8XKEXPJnVT33I619qzcnSeJ5483TjEPQahd nbx1p+Dt4Kcv9XTGoYBRNKLXbl/TpwQSah0mZNM0KbgJQSOWQ81OO7ZNg69C3yL/ QoXbrJU7WM7IoOYbbyKanCXVXeOzwN0B0eOurIYQowxwm6FlxJsM3xDicWGBC6Mp DRer57vTVT3qZ1fOEhar6kzW7kdupZNi5jiRGKOS9a4c2Jh0K3+/F9or4+6LMRzt KFBUKOs= =T9dY -----END PGP SIGNATURE-----
--- End Message ---

