Bug 2155159 - tin: C99 compatibility issues in the configure script
Summary: tin: C99 compatibility issues in the configure script
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: tin
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-20 09:02 UTC by Florian Weimer
Modified: 2023-12-15 23:46 UTC (History)
2 users (show)

Fixed In Version: tin-2.6.1-5.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-20 09:03:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
tin-configure-c99.patch (2.47 KB, patch)
2022-12-20 09:02 UTC, Florian Weimer
no flags Details | Diff
Patch with further compatibility fixes (2.49 KB, patch)
2023-12-15 23:46 UTC, Florian Weimer
no flags Details | Diff

Description Florian Weimer 2022-12-20 09:02:08 UTC
Created attachment 1933725 [details]
tin-configure-c99.patch

There are a few missing #include directives in the configure script. I tried to re-generate the script using autoreconf 2.71, but the result does not appear to work. So I patched the configure script by hand to incorporate the necessary changes from the source files.

Filing this here because upstream does not seem to have a public bug tracker.

Comment 1 Dominik 'Rathann' Mierzejewski 2022-12-29 01:28:14 UTC
Thanks for the patch, but I don't see what errors or warning it's fixing and you're not mentioning any explicitly. Also, it doesn't apply against the newly released 2.6.2 sources, so unless you can provide the list of errors or warnings that this patch is fixing, I'm going to drop it.

Comment 2 Florian Weimer 2022-12-29 11:17:28 UTC
(In reply to Dominik 'Rathann' Mierzejewski from comment #1)
> Thanks for the patch, but I don't see what errors or warning it's fixing and
> you're not mentioning any explicitly.

The additional prototypes fix implicit function declaration warnings. They are not visible because autoconf suppresses them.

> Also, it doesn't apply against the
> newly released 2.6.2 sources, so unless you can provide the list of errors
> or warnings that this patch is fixing, I'm going to drop it.

I believe this upstream commit:

revno: 700
tags: 2.6.2
committer: Urs Janssen <urs>
branch nick: tin-2.6.2
timestamp: Sun 2022-12-25 00:09:23 +0100
message:
  2.6.2 release

includes a variant of the patch I sent in. So it should be okay to drop the downstream patch. There will be at least another rebuild with an instrumented compiler.

Comment 3 Florian Weimer 2022-12-29 11:41:10 UTC
Oh, I see you've already updated to 2.6.2. I can confirm that the patch is no longer needed. Shall I drop it?

Comment 4 Dominik 'Rathann' Mierzejewski 2022-12-29 22:25:02 UTC
Yes, I did update because I wanted to test the new NNTPS support. No need for action, thanks.

I've actually re-used your patch name to fix a couple of other C99-related issues mentioned on your Change page, like implicit int<->pointer conversion. Thanks for sending your patch upstream!

Comment 5 Florian Weimer 2023-12-15 23:46:12 UTC
Created attachment 2004462 [details]
Patch with further compatibility fixes

I've also submitted it to tin-bugs.


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