Bug 1387415 - glibc: iszero macro defined in <math.h> breaks existing code
Summary: glibc: iszero macro defined in <math.h> breaks existing code
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1384001
TreeView+ depends on / blocked
 
Reported: 2016-10-20 20:11 UTC by Paulo Andrade
Modified: 2016-10-21 16:40 UTC (History)
12 users (show)

Fixed In Version: glibc-2.24.90-12.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-20 20:21:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1383552 0 unspecified CLOSED OpenEXR FTBFS against glibc-2.24.90+ 2021-02-22 00:41:40 UTC
Sourceware 20715 0 None None None 2016-10-20 20:18:37 UTC

Internal Links: 1383552

Description Paulo Andrade 2016-10-20 20:11:50 UTC
$ rpm -q glibc cpp
glibc-2.24.90-11.fc26.x86_64
cpp-6.2.1-2.fc26.x86_64

$ cat t.cc
#include <math.h>
int iszero();

$ cpp t.cc | tail -5
int 
# 2 "t.cc" 3 4
   (((__typeof ()) ()) == 0)
# 2 "t.cc"
           ;

A few other macros appear to get expanded as well.

Comment 1 Florian Weimer 2016-10-20 20:21:36 UTC
This is an intentional upstream change.  It does not seem wise to deviate from upstream, even if the change causes compatibility issues.

I have already raised my concerns upstream, independently of this bug.  We will have to wait and see what happens.

Comment 2 Florian Weimer 2016-10-21 13:44:03 UTC
Patch posted upstream:

  https://sourceware.org/ml/libc-alpha/2016-10/msg00353.html

Comment 3 Florian Weimer 2016-10-21 16:39:51 UTC
The upstream fix will be picked up by the next rawhide import.


Note You need to log in before you can comment on or make changes to this bug.