Bug 1859841 - kdelibs3-3.5.10-105.fc33 FTBFS: jp2.cpp:246:31: error: 'dup' was not declared in this scope
Summary: kdelibs3-3.5.10-105.fc33 FTBFS: jp2.cpp:246:31: error: 'dup' was not declared...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kdelibs3
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F33FTBFS
TreeView+ depends on / blocked
 
Reported: 2020-07-23 06:54 UTC by Petr Pisar
Modified: 2020-09-15 10:18 UTC (History)
5 users (show)

Fixed In Version: kdelibs3-3.5.10-108.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-15 08:59:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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!


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