Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 919203

Summary: mail-filter/gld-1.7-r4 - sockets.c: error: passing argument 3 of getpeername from incompatible pointer type [-Wincompatible-pointer-types]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
mail-filter:gld-1.7-r4:20231204-152837.log
qlist-info.txt.xz
temp.tar.xz

Description Toralf Förster gentoo-dev 2023-12-04 20:08:25 UTC
      |                                  ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
sockets.c: In function CloseSocket:
sockets.c:518:30: warning: comparison of constant 0 with boolean expression is always false [-Wbool-compare]
  518 |         if ( (s && close(s)) < 0 ) return(S_CLOS_ERR);
      |                              ^
sockets.c: In function GetPeerIp:
sockets.c:643:48: error: passing argument 3 of getpeername from incompatible pointer type [-Wincompatible-pointer-types]
  643 | if (getpeername(sock,(struct sockaddr *)&from, &foo) == 0)
      |                                                ^~~~

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

  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.6
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 9fbac9a87a3f54ee750529d7650d1bab53f12910
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 4 14:16:57 2023 +0000

    2023-12-04 14:16:56 UTC

emerge -qpvO mail-filter/gld
[ebuild  N    ] mail-filter/gld-1.7-r4  USE="postgres"
Comment 1 Toralf Förster gentoo-dev 2023-12-04 20:08:26 UTC
Created attachment 876939 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-04 20:08:28 UTC
Created attachment 876940 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2023-12-04 20:08:29 UTC
Created attachment 876941 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-04 20:08:30 UTC
Created attachment 876942 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-04 20:08:31 UTC
Created attachment 876943 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-04 20:08:32 UTC
Created attachment 876944 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-04 20:08:33 UTC
Created attachment 876945 [details]
mail-filter:gld-1.7-r4:20231204-152837.log
Comment 8 Toralf Förster gentoo-dev 2023-12-04 20:08:35 UTC
Created attachment 876946 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-04 20:08:36 UTC
Created attachment 876947 [details]
temp.tar.xz