Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919280 - media-libs/libcddb-1.3.2-r1 - /.../cddb_net.c: error: passing argument 5 of getsockopt from incompatible pointer type [-Wincompatible-pointer-types]
Summary: media-libs/libcddb-1.3.2-r1 - /.../cddb_net.c: error: passing argument 5 of g...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Sound Team
URL:
Whiteboard: fixed in 1.3.2-r2
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-12-05 14:16 UTC by Toralf Förster
Modified: 2024-10-31 19:47 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.85 KB, text/plain)
2023-12-05 14:16 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,69.26 KB, application/x-xz)
2023-12-05 14:16 UTC, Toralf Förster
Details
environment (environment,88.58 KB, text/plain)
2023-12-05 14:16 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,972 bytes, application/x-xz)
2023-12-05 14:16 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,24.95 KB, application/x-xz)
2023-12-05 14:16 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,9.13 KB, application/x-xz)
2023-12-05 14:16 UTC, Toralf Förster
Details
media-libs:libcddb-1.3.2-r1:20231205-132323.log (media-libs:libcddb-1.3.2-r1:20231205-132323.log,22.00 KB, text/plain)
2023-12-05 14:16 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,74.12 KB, application/x-xz)
2023-12-05 14:16 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,26.39 KB, application/x-xz)
2023-12-05 14:16 UTC, Toralf Förster
Details
Patch to ignore the error (ignore_error.patch,627 bytes, patch)
2024-05-25 04:37 UTC, Robert Schultz
Details | Diff

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-05 14:16:43 UTC
too long lines were shrinked:

libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libcddb-1.3.2-r1/work/libcddb-1.3.2/lib -I.. -I/var/tmp/portage/media-libs/libcddb-1.3.2-r1/work/libcddb-1.3.2/include -I../include -O2 -pipe -march=native -fno-diagnostics-color -Wall -Wchar-subscripts -Wmi
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libcddb-1.3.2-r1/work/libcddb-1.3.2/lib -I.. -I/var/tmp/portage/media-libs/libcddb-1.3.2-r1/work/libcddb-1.3.2/include -I../include -O2 -pipe -march=native -fno-diagnostics-color -Wall -Wchar-subscripts -Wmi
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libcddb-1.3.2-r1/work/libcddb-1.3.2/lib -I.. -I/var/tmp/portage/media-libs/libcddb-1.3.2-r1/work/libcddb-1.3.2/include -I../include    -O2 -pipe -march=native -fno-diagnostics-colo
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libcddb-1.3.2-r1/work/libcddb-1.3.2/lib -I.. -I/var/tmp/portage/media-libs/libcddb-1.3.2-r1/work/libcddb-1.3.2/include -I../include -O2 -pipe -march=native -fno-diagnostics-color -Wall -Wchar-subscripts -Wmi
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libcddb-1.3.2-r1/work/libcddb-1.3.2/lib -I.. -I/var/tmp/portage/media-libs/libcddb-1.3.2-r1/work/libcddb-1.3.2/include -I../include    -O2 -pipe -march=native -fno-diagnostics-colo
/var/tmp/portage/media-libs/libcddb-1.3.2-r1/work/libcddb-1.3.2/lib/cddb_net.c: In function 'timeout_connect':
/var/tmp/portage/media-libs/libcddb-1.3.2-r1/work/libcddb-1.3.2/lib/cddb_net.c:328:63: error: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types]
  328 |                 getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &rv, &l);
      |                                                               ^~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd_merged_usr-20231128-165524

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

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 Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   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 dddfee353423c1560f6e74a090798145c829bd7d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 5 12:16:57 2023 +0000

    2023-12-05 12:16:57 UTC

emerge -qpvO media-libs/libcddb
[ebuild  N    ] media-libs/libcddb-1.3.2-r1  USE="-doc -static-libs"
Comment 1 Toralf Förster gentoo-dev 2023-12-05 14:16:44 UTC
Created attachment 877474 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-05 14:16:46 UTC
Created attachment 877475 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2023-12-05 14:16:47 UTC
Created attachment 877476 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-05 14:16:48 UTC
Created attachment 877477 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-05 14:16:49 UTC
Created attachment 877478 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-05 14:16:50 UTC
Created attachment 877479 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-05 14:16:51 UTC
Created attachment 877480 [details]
media-libs:libcddb-1.3.2-r1:20231205-132323.log
Comment 8 Toralf Förster gentoo-dev 2023-12-05 14:16:52 UTC
Created attachment 877481 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-05 14:16:53 UTC
Created attachment 877482 [details]
temp.tar.xz
Comment 10 Robert Schultz 2024-05-25 04:37:50 UTC
Created attachment 894309 [details, diff]
Patch to ignore the error

I can confirm this happens on my system too.

Patching configure.ac to simply ignore the error allows it to compile, but that's probably not the correct solution, but at least it'll allow you to compile it.
Comment 11 Robert Schultz 2024-05-25 17:15:12 UTC
By the way, this is almost certainly due to gcc 14 treating many warnings as errors by default now.
Comment 12 Larry the Git Cow gentoo-dev 2024-06-01 03:44:50 UTC
The bug has been closed via the following commit(s):

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

commit 9200fde5b926191737a8380a08cffa2998013945
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-01 03:43:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-01 03:43:51 +0000

    media-libs/libcddb: EAPI 8, fix modern C issue
    
    Closes: https://bugs.gentoo.org/919280
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/libcddb/files/libcddb-1.3.2-c99.patch | 14 ++++++
 media-libs/libcddb/libcddb-1.3.2-r2.ebuild       | 63 ++++++++++++++++++++++++
 2 files changed, 77 insertions(+)