Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1859841

Summary: kdelibs3-3.5.10-105.fc33 FTBFS: jp2.cpp:246:31: error: 'dup' was not declared in this scope
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: kdelibs3Assignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: jreznik, kevin, rdieter, smparrish, than
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/kdelibs3?collection=f33
Whiteboard:
Fixed In Version: kdelibs3-3.5.10-108.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-15 08:59:41 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1803234    

Description Petr Pisar 2020-07-23 06:54:24 UTC
kdelibs3-3.5.10-105.fc33 fails to build in Fedora 33:

/bin/sh ../libtool --silent  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../dcop -I../kdecore -I../kio/kssl -I../kjs -I../kio -I../dcop -I../libltdl -I../dcop -I../libltdl -I../kdefx -I../kdecore -I../kdecore -I../kdecore/network -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I.. -I/usr/lib64/qt-3.3/include -I. -I/usr/include/kde  -Drestrict= -I/usr/include/OpenEXR -pthread   -DQT_THREAD_SUPPORT  -D_REENTRANT  -DNDEBUG -DNO_DEBUG -O2 -O2 -flto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-deprecated-declarations -Wno-narrowing -std=gnu++98 -fno-exceptions -fno-check-new -fno-common  -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -c -o jp2.lo jp2.cpp
[...]
jp2.cpp: In function 'void kimgio_jp2_write(QImageIO*)':
jp2.cpp:246:31: error: 'dup' was not declared in this scope
  246 |   stream = jas_stream_fdopen( dup( qf->handle() ), "w" );
      |                               ^~~

A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/8619516> An upgrade of qt3-devel from 
3.3.8b-80.fc32 to 3.3.8b-83.fc33 is suspicious.

Comment 1 Kevin Kofler 2020-08-03 16:19:16 UTC
Looks like a missing #include that was previously transitively included.

Comment 2 Ben Cotton 2020-08-11 13:48:58 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle.
Changing version to 33.

Comment 3 Than Ngo 2020-09-15 08:59:41 UTC
it's fixed in kdelibs3-3.5.10-108

Comment 4 Kevin Kofler 2020-09-15 10:18:39 UTC
Thanks!