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

Bug 919792

Summary: net-misc/portspoof-1.3 - [clang] Server.cpp: error: assigning to int from incompatible type _bind<int
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Rick Farina (Zero_Chaos) <zerochaos>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
net-misc:portspoof-1.3:20231212-181248.log
qlist-info.txt.xz
temp.tar.xz
var.tmp.clang.tar.xz

Description Toralf Förster gentoo-dev 2023-12-12 19:59:40 UTC
  167 |         for(i;i<strlen(str);i++)
      |             ^
Server.cpp:51:62: warning: cast to 'void *' from smaller integer type 'int'
      [-Wint-to-void-pointer-cast]
   51 |   ...pthread_create(&threads[i].tid, NULL, &process_connection, (void *) i);
      |                                                                 ^~~~~~~~~~
Server.cpp:86:13: error: assigning to 'int' from incompatible type '__bind<int
      &, sockaddr *, unsigned long>'
   86 |           status = bind(sockd, (struct sockaddr*)&my_name, sizeof(my_name));

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd_clang-20231210-041514

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
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+libcxx
Python 3.11.7
Available Rust versions:
  [1]   rust-bin-1.74.1 *
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.0.2
php cli (if any):
go version go1.21.5 linux/amd64

  HEAD of ::gentoo
commit 77757f9fe5492d2d42ede1d0caacdd789d756464
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 12 17:56:23 2023 +0000

    2023-12-12 17:56:19 UTC

emerge -qpvO net-misc/portspoof
[ebuild  N    ] net-misc/portspoof-1.3
Comment 1 Toralf Förster gentoo-dev 2023-12-12 19:59:41 UTC
Created attachment 878949 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-12 19:59:43 UTC
Created attachment 878950 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-12-12 19:59:44 UTC
Created attachment 878951 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-12 19:59:45 UTC
Created attachment 878952 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-12 19:59:46 UTC
Created attachment 878953 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-12 19:59:47 UTC
Created attachment 878954 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-12 19:59:48 UTC
Created attachment 878955 [details]
net-misc:portspoof-1.3:20231212-181248.log
Comment 8 Toralf Förster gentoo-dev 2023-12-12 19:59:49 UTC
Created attachment 878956 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-12 19:59:50 UTC
Created attachment 878957 [details]
temp.tar.xz
Comment 10 Toralf Förster gentoo-dev 2023-12-12 19:59:51 UTC
Created attachment 878958 [details]
var.tmp.clang.tar.xz