Your message dated Tue, 06 Mar 2018 23:04:54 +0000
with message-id <e1etlde-0005jp...@fasolo.debian.org>
and subject line Bug#890271: fixed in libcgns 3.3.0-6
has caused the Debian Bug report #890271,
regarding libcgns: FTBFS with glibc 2.27: undefined reference to `matherr'
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 ow...@bugs.debian.org
immediately.)


-- 
890271: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890271
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: libcgns
Version: 3.3.0-5
Severity: important
Tags: patch

libcgns 3.3.0-5 fails to build with glibc 2.27 (2.27-0experimental0 from
experimental):

| cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/cgnstools/cgnsview && 
/usr/bin/cmake -E cmake_link_script CMakeFiles/cgiowish.dir/link.txt --verbose=1
| /usr/bin/cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2  -Wl,-z,relro -rdynamic 
CMakeFiles/cgiowish.dir/cgiowish.c.o CMakeFiles/cgiowish.dir/cgiotcl.c.o  -o 
cgiowish  -L. 
-Wl,-rpath,.:/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src:/usr/lib/x86_64-linux-gnu/hdf5/serial:
 ../../libcgns.so.3.3 -ltcl -ltk 
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so -lpthread -lsz -lz -ldl -lm 
-lX11 -lm 
| 
CMakeFiles/cgiowish.dir/cgiowish.c.o:./obj-x86_64-linux-gnu/src/cgnstools/cgnsview/./src/cgnstools/cgnsview/cgiowish.c:24:
 undefined reference to `matherr'
| collect2: error: ld returned 1 exit status
| src/cgnstools/cgnsview/CMakeFiles/cgiowish.dir/build.make:133: recipe for 
target 'src/cgnstools/cgnsview/cgiowish' failed
| make[3]: *** [src/cgnstools/cgnsview/cgiowish] Error 1
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
| CMakeFiles/Makefile2:2735: recipe for target 
'src/cgnstools/cgnsview/CMakeFiles/cgiowish.dir/all' failed
| make[2]: *** [src/cgnstools/cgnsview/CMakeFiles/cgiowish.dir/all] Error 2
| make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
| Makefile:165: recipe for target 'all' failed
| make[1]: *** [all] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
| dh_auto_build: cd obj-x86_64-linux-gnu && make -j1 returned exit code 2
| debian/rules:20: recipe for target 'build-arch' failed
| make: *** [build-arch] Error 2
| dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit 
status 2

A full build logs is available there:
http://aws-logs.debian.net/2018/02/07/glibc-exp/libcgns_3.3.0-5_unstable_glibc-exp.log

Starting with glibc 2.27, support for matherr (part of SVID
specification) has been removed, causing this FTBFS. It is only used in
libcgns as a workaround for Sun shared libraries. The best way to fix
this FTBFS for Debian is therefore to just disable that part. This is
what the attached patch does.
diff -Nru libcgns-3.3.0/debian/patches/no-matherr.patch 
libcgns-3.3.0/debian/patches/no-matherr.patch
--- libcgns-3.3.0/debian/patches/no-matherr.patch
+++ libcgns-3.3.0/debian/patches/no-matherr.patch
@@ -0,0 +1,58 @@
+Description: Remove matherr hack
+ Remove matherr hack, that is only needed for Sun shared libraries and
+ causes an FTBFS with glibc 2.27 onwards, as SVID error handling has
+ been removed.
+Author: Aurelien Jarno <aure...@debian.org>
+Last-Update: 2018-02-12
+
+--- libcgns-3.3.0.orig/src/cgnstools/cgnscalc/calcwish.c
++++ libcgns-3.3.0/src/cgnstools/cgnscalc/calcwish.c
+@@ -15,14 +15,6 @@
+ #include "tk.h"
+ #include "locale.h"
+ 
+-/*
+- * The following variable is a special hack that is needed in order for
+- * Sun shared libraries to be used for Tcl.
+- */
+-
+-extern int matherr();
+-int *tclDummyMathPtr = (int *) matherr;
+-
+ #ifdef TK_TEST
+ extern int            Tcltest_Init _ANSI_ARGS_((Tcl_Interp *interp));
+ extern int            Tktest_Init _ANSI_ARGS_((Tcl_Interp *interp));
+--- libcgns-3.3.0.orig/src/cgnstools/cgnsplot/plotwish.c
++++ libcgns-3.3.0/src/cgnstools/cgnsplot/plotwish.c
+@@ -15,14 +15,6 @@
+ #include "tk.h"
+ #include "locale.h"
+ 
+-/*
+- * The following variable is a special hack that is needed in order for
+- * Sun shared libraries to be used for Tcl.
+- */
+-
+-extern int matherr();
+-int *tclDummyMathPtr = (int *) matherr;
+-
+ extern int Cgnstcl_Init _ANSI_ARGS_((Tcl_Interp *interp));
+ extern int Tkogl_Init _ANSI_ARGS_((Tcl_Interp *interp));
+ 
+--- libcgns-3.3.0.orig/src/cgnstools/cgnsview/cgiowish.c
++++ libcgns-3.3.0/src/cgnstools/cgnsview/cgiowish.c
+@@ -15,14 +15,6 @@
+ #include "tk.h"
+ #include "locale.h"
+ 
+-/*
+- * The following variable is a special hack that is needed in order for
+- * Sun shared libraries to be used for Tcl.
+- */
+-
+-extern int matherr();
+-int *tclDummyMathPtr = (int *) matherr;
+-
+ #ifdef TK_TEST
+ extern int            Tcltest_Init _ANSI_ARGS_((Tcl_Interp *interp));
+ extern int            Tktest_Init _ANSI_ARGS_((Tcl_Interp *interp));
diff -Nru libcgns-3.3.0/debian/patches/series 
libcgns-3.3.0/debian/patches/series
--- libcgns-3.3.0/debian/patches/series
+++ libcgns-3.3.0/debian/patches/series
@@ -2,3 +2,4 @@
 cgnstools-path.patch
 fix-p3dfout.patch
 no-rpath.patch
+no-matherr.patch

--- End Message ---
--- Begin Message ---
Source: libcgns
Source-Version: 3.3.0-6

We believe that the bug you reported is fixed in the latest version of
libcgns, 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 890...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gilles Filippini <p...@debian.org> (supplier of updated libcgns 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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 06 Mar 2018 21:22:21 +0100
Source: libcgns
Binary: libcgns-dev libcgns3.3 cgns-convert
Architecture: source
Version: 3.3.0-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Team 
<debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Gilles Filippini <p...@debian.org>
Description:
 cgns-convert - CFD General Notation System - Conversion tools
 libcgns-dev - CFD General Notation System library
 libcgns3.3 - CFD General Notation System library
Closes: 890271
Changes:
 libcgns (3.3.0-6) unstable; urgency=medium
 .
   [ Aurelien Jarno ]
   * New patch no-matherr.patch to fix FTBFS against glibc 2.27
     (closes: #890271)
Checksums-Sha1:
 59ca19190357edcc95e31e6356964cf4e4a70692 1779 libcgns_3.3.0-6.dsc
 510efc640f37790e512ee14ed5dbf73e0c5237c5 11328 libcgns_3.3.0-6.debian.tar.xz
 d7f1708541bd49ad811e876e2d82e69bcf475588 9725 libcgns_3.3.0-6_source.buildinfo
Checksums-Sha256:
 ce369fdb7ef2bfdbf41a3bef9ea09622489d60e0ec98e689091305af7fae2e6a 1779 
libcgns_3.3.0-6.dsc
 05768323a174fc88f308966a4987bd10e6989b3ed44068504a4271960e2ddeec 11328 
libcgns_3.3.0-6.debian.tar.xz
 04a1e052f56410dc89c7d0159b0688a461394a0f1905b4f13053b21aee72d080 9725 
libcgns_3.3.0-6_source.buildinfo
Files:
 6f2b88886add18fb66f5b1a9e7b29954 1779 libs optional libcgns_3.3.0-6.dsc
 4828259a348fd568107c18feaa1075c4 11328 libs optional 
libcgns_3.3.0-6.debian.tar.xz
 b161ba42db5c9fbfc936d09a2178e01a 9725 libs optional 
libcgns_3.3.0-6_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQFEBAEBCgAuFiEEoJObzArDE05WtIyR7+hsbH/+z4MFAlqfGloQHHBpbmlAZGVi
aWFuLm9yZwAKCRDv6Gxsf/7Pg803CACCNbiu3H8TgT+aTcWJCmij/UjYityaS2ED
Nz2J9MdOOPRbktHaq1cib8CsPg/U2LMaXumKvzEcE/npi00y5wVFpc0sZWgAQgCA
lXz1Njuilc1bHcpyuSPZT9O+4EApzpe+Mas4CNgPPLdbDja6ZFeiqdsb059E3E6y
KZaF5vt8hpYSV9waGu0cDXMgZE0uJ5lvV2sixSFRWzUqpdao/6hIyV/vMCs0GdK1
fMmHnNg6VPqEcPzKM3lum+Z4fYykT2efdS+yKXnCi0fUYPR7svvuBuWfjdM32qoa
yOU6hQMb5/Pb2oZ92MVibbQlwnlJMwapfGQua9HgxI6p4ZNRjQw4
=CfBX
-----END PGP SIGNATURE-----

--- End Message ---
-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to