Bug 1384001

Summary: opencv-3.1.0-8.fc26: FTBFS in Fedora Rawhide
Product: [Fedora] Fedora Reporter: Jitka Plesnikova <jplesnik>
Component: opencvAssignee: Nicolas Chauvet (kwizart) <kwizart>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fweimer, hhorak, jmlich83, jwakely, karlthered, kwizart, nomis80, pkajaba, sergio
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://apps.fedoraproject.org/koschei/package/opencv
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-26 11:57:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1387415    
Bug Blocks:    

Description Jitka Plesnikova 2016-10-12 10:43:00 UTC
Description of problem:
Package opencv fails to build from source in Fedora Rawhide.


/usr/include/OpenEXR/ImathFun.h:135:17: error: macro "iszero" passed 2 arguments, but takes just 1
 iszero (T a, T t)
                 ^
...
/usr/include/OpenEXR/ImathFun.h:135:1: error: 'Imath_2_2::iszero' declared as an 'inline' variable
 iszero (T a, T t)
 ^~~~~~
/usr/include/OpenEXR/ImathFun.h:137:5: error: expected primary-expression before 'return'
     return (IMATH_INTERNAL_NAMESPACE::abs (a) <= t) ? 1 : 0;
     ^~~~~~
/usr/include/OpenEXR/ImathFun.h:137:5: error: expected '}' before 'return'
/usr/include/OpenEXR/ImathFun.h:137:5: error: expected ';' before 'return'
/usr/include/OpenEXR/ImathFun.h: In function 'bool finitef(float)':
/usr/include/OpenEXR/ImathFun.h:249:1: error: ambiguating new declaration of 'bool finitef(float)'
 finitef (float f)
 ^~~~~~~
...
/usr/include/OpenEXR/ImathFun.h: In function 'bool finited(double)':
/usr/include/OpenEXR/ImathFun.h:260:22: error: 'Int64' does not name a type
     union {double d; Int64 i;} u;
                      ^~~~~
/usr/include/OpenEXR/ImathFun.h:263:15: error: 'union finited(double)::<anonymous>' has no member named 'i'
     return (u.i & 0x7ff0000000000000LL) != 0x7ff0000000000000LL;
               ^
...

/usr/include/OpenEXR/ImathFun.h: At global scope:
/usr/include/OpenEXR/ImathFun.h:267:1: error: expected declaration before '}' token
 IMATH_INTERNAL_NAMESPACE_HEADER_EXIT
 ^

Dependency changes in buildroot since last success build
 	glibc 	2.24.90-8.fc26 	> 	2.24.90-9.fc26
	libdrm-devel 	2.4.70-2.fc26 	> 	2.4.71-1.fc26
	mariadb-libs 	3:10.1.17-1.fc26 	> 	3:10.1.18-1.fc26
	kernel-headers 	4.8.0-1.fc26 	> 	4.9.0-0.rc0.git1.1....
	glibc-common 	2.24.90-8.fc26 	> 	2.24.90-9.fc26
	libdrm 	2.4.70-2.fc26 	> 	2.4.71-1.fc26
	libcrypt-nss 	2.24.90-8.fc26 	> 	2.24.90-9.fc26
	python2-pillow 	3.4.0-1.fc26 	> 	3.4.1-1.fc26
	glibc-devel 	2.24.90-8.fc26 	> 	2.24.90-9.fc26
	cups-libs 	1:2.2.0-2.fc26 	> 	1:2.2.1-1.fc26
	libselinux 	2.5-11.fc26 	> 	2.5-12.fc26
	glibc-all-langpacks 	2.24.90-8.fc26 	> 	2.24.90-9.fc26
	grep 	2.25-1.fc25 	> 	2.26-1.fc26
	tzdata 	2016f-1.fc25 	> 	2016g-1.fc26
	mariadb-common 	3:10.1.17-1.fc26 	> 	3:10.1.18-1.fc26
	glibc-headers 	2.24.90-8.fc26 	> 	2.24.90-9.fc26
	libsepol 	2.5-9.fc26 	> 	2.5-10.fc26
	ca-certificates 	2016.2.9-3.fc26 	> 	2016.2.10-2.fc26
	hwdata 	0.292-1.fc26 	> 	0.293-1.fc26
	mariadb-config 	3:10.1.17-1.fc26 	> 	3:10.1.18-1.fc26
	libsemanage 	2.5-7.fc26 	> 	2.5-8.fc26


Additional info:
This package is tracked by Koschei. See:
http://apps.fedoraproject.org/koschei/package/opencv

Comment 1 Sergio Basto 2016-10-13 16:46:40 UTC
Josef Ridky, Jozef Mlich or Pavel Kajaba can you take care of it ? 

Thanks

Comment 2 Jonathan Wakely 2016-10-19 11:01:45 UTC
This is a glibc change, which adds an "iszero" macro that breaks anything trying to define "iszero" as an identifier.

Comment 3 Sergio Basto 2016-10-21 03:09:46 UTC
(In reply to Jonathan Wakely from comment #2)
> This is a glibc change, which adds an "iszero" macro that breaks anything
> trying to define "iszero" as an identifier.

Can you make and attach here one patch ? please . 

Thanks.

Comment 4 Florian Weimer 2016-10-21 16:40:40 UTC
If you rebuild against glibc-2.24.90-12.fc26 in a couple of hours, this issue should be gone.

Comment 5 Jitka Plesnikova 2016-10-26 11:57:36 UTC
Fixed by newer glibc.

See: http://apps.fedoraproject.org/koschei/package/opencv