Bug 2151353 - vttest: FIONREAD not detected by configure script
Summary: vttest: FIONREAD not detected by configure script
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: vttest
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PortingToModernCNoUpstream
TreeView+ depends on / blocked
 
Reported: 2022-12-06 20:09 UTC by Florian Weimer
Modified: 2022-12-07 05:52 UTC (History)
1 user (show)

Fixed In Version: vttest-2.7.20220827-2.fc38
Clone Of:
Environment:
Last Closed: 2022-12-07 05:52:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
vttest-configure-c99.patch (867 bytes, patch)
2022-12-06 20:09 UTC, Florian Weimer
no flags Details | Diff

Description Florian Weimer 2022-12-06 20:09:22 UTC
Created attachment 1930563 [details]
vttest-configure-c99.patch

I'm filing this under the C99 project, but it's a bug today, with current GCC. The configure script does not detect FIONREAD support because on GNU/Linux, it's defined in <sys/ioctl.h>:

“
checking for strerror... yes
checking if POSIX VDISABLE symbol should be used... yes
checking if we may use FIONREAD... no
configure: creating ./config.status
config.status: creating makefile
”

<https://kojipkgs.fedoraproject.org//packages/vttest/2.7.20220827/1.fc38/data/logs/x86_64/build.log>

I saw this because the test flags the implicit declaration of ioctl.

I assume this patch is okay, and I'm going to push it to rawhide.

(And I'm treating this as the de-facto upstream bug tracker. 8-)

Comment 1 Thomas E. Dickey 2022-12-06 21:14:33 UTC
Looks ok (I see that the check has been working for BSDs).

Comment 2 Florian Weimer 2022-12-07 05:52:01 UTC
(In reply to Thomas E. Dickey from comment #1)
> Looks ok (I see that the check has been working for BSDs).

Thank you!


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