Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919360 - app-accessibility/sphinx2-0.6-r1 - srvcore.c: error: passing argument 2 of accept from incompatible pointer type [-Wincompatible-pointer-types]
Summary: app-accessibility/sphinx2-0.6-r1 - srvcore.c: error: passing argument 2 of ac...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Accessibility Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2023-12-06 18:05 UTC by Toralf Förster
Modified: 2025-02-10 09:35 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.07 KB, text/plain)
2023-12-06 18:05 UTC, Toralf Förster
Details
app-accessibility:sphinx2-0.6-r1:20231206-110224.log (app-accessibility:sphinx2-0.6-r1:20231206-110224.log,148.25 KB, text/plain)
2023-12-06 18:06 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,90.04 KB, application/x-xz)
2023-12-06 18:06 UTC, Toralf Förster
Details
environment (environment,74.28 KB, text/plain)
2023-12-06 18:06 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,964 bytes, application/x-xz)
2023-12-06 18:06 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,43.50 KB, application/x-xz)
2023-12-06 18:06 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,7.78 KB, application/x-xz)
2023-12-06 18:06 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,90.14 KB, application/x-xz)
2023-12-06 18:06 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,27.61 KB, application/x-xz)
2023-12-06 18:06 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-12-06 18:05:58 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"sphinx2\" -DVERSION=\"0.6\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRING
server.c: In function process_client:
server.c:378:9: warning: ignoring return value of fgets declared with attribute warn_unused_result [-Wunused-result]
  378 |         fgets (line, sizeof(line), stdin);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
srvcore.c: In function server_await_conn:
srvcore.c:384:39: error: passing argument 2 of accept from incompatible pointer type [-Wincompatible-pointer-types]
  384 |     if ((conn_sd = accept (listen_sd, &address, &address_len)) == INVALID_SOCKET) {
      |                                       ^~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-20231127-152538

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	OpenJDK 17.0.8.1_p1 [openjdk-17]
2)	OpenJDK 21.0.1_p12 [openjdk-21]
3)	OpenJDK 8.382_p05 [openjdk-8]
4)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-8 
  [2]   openjdk-17 
  [3]   openjdk-21 
  [4]   openjdk-bin-17 
  [5]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit e27ba25dac1649524af52a963b896d5868eda1f0
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Dec 6 10:02:31 2023 +0000

    2023-12-06 10:02:31 UTC

emerge -qpvO app-accessibility/sphinx2
[ebuild  N    ] app-accessibility/sphinx2-0.6-r1
Comment 1 Toralf Förster gentoo-dev 2023-12-06 18:05:59 UTC
Created attachment 877815 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-06 18:06:01 UTC
Created attachment 877816 [details]
app-accessibility:sphinx2-0.6-r1:20231206-110224.log
Comment 3 Toralf Förster gentoo-dev 2023-12-06 18:06:02 UTC
Created attachment 877817 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-12-06 18:06:04 UTC
Created attachment 877818 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-06 18:06:05 UTC
Created attachment 877819 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-06 18:06:06 UTC
Created attachment 877820 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-06 18:06:07 UTC
Created attachment 877821 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-06 18:06:08 UTC
Created attachment 877822 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-06 18:06:09 UTC
Created attachment 877823 [details]
temp.tar.xz
Comment 10 Agostino Sarubbo gentoo-dev 2025-01-18 10:17:47 UTC
tinderbox-stable has reproduced this issue in a STABLE environment with version 0.6-r1
Comment 11 Larry the Git Cow gentoo-dev 2025-02-10 09:15:55 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8256b77eec6a27f5108b49167750191df3f742f

commit d8256b77eec6a27f5108b49167750191df3f742f
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2024-12-29 15:18:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-10 09:14:40 +0000

    app-accessibility/sphinx2: Port to C23
    
    This fixes a number of compile errors, a number of K&R definitions
    and missing system definitions that aren't actully missing
    
    Bug: https://bugs.gentoo.org/919360
    Bug: https://bugs.gentoo.org/943765
    Bug: https://bugs.gentoo.org/880537
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/39895
    Signed-off-by: Sam James <sam@gentoo.org>

 .../sphinx2/files/sphinx2-0.6-c99.patch            | 500 +++++++++++++++++++++
 app-accessibility/sphinx2/sphinx2-0.6-r2.ebuild    |  39 ++
 2 files changed, 539 insertions(+)