Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878629 - net-proxy/tayga-0.9.2-r4 - conffile.c: error: incompatible pointer to integer conversion assigning
Summary: net-proxy/tayga-0.9.2-r4 - conffile.c: error: incompatible pointer to integer...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Benda Xu
URL:
Whiteboard:
Keywords: PMASKED, PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-10-29 09:46 UTC by Toralf Förster
Modified: 2024-01-13 18:51 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.60 KB, text/plain)
2022-10-29 09:46 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,1.01 KB, application/x-bzip)
2022-10-29 09:46 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,106.09 KB, text/plain)
2022-10-29 09:46 UTC, Toralf Förster
Details
environment (environment,77.19 KB, text/plain)
2022-10-29 09:46 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,8.66 KB, application/x-bzip)
2022-10-29 09:46 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,3.55 KB, application/x-bzip)
2022-10-29 09:46 UTC, Toralf Förster
Details
net-proxy:tayga-0.9.2-r4:20221029-065536.log (net-proxy:tayga-0.9.2-r4:20221029-065536.log,9.23 KB, text/plain)
2022-10-29 09:46 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,22.26 KB, application/x-bzip)
2022-10-29 09:46 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 2022-10-29 09:46:27 UTC
      [-Waddress-of-packed-member]
        if (map_ip6_to_ip4(&header.ip4.dest, &p->ip6->dest, NULL, 0))
                            ^~~~~~~~~~~~~~~
clang -DTAYGA_CONF_PATH=\"/etc/tayga.conf\" -I.     -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -o conffile.o conffile.c
conffile.c:225:12: error: incompatible pointer to integer conversion assigning
      to 'char' from 'void *' [-Wint-conversion]
                slash[0] = NULL;

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-j4-20221028-180004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.3
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.3
Python 3.10.8
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1 *
GNU Make 4.3

  HEAD of ::gentoo
commit 94926262f25effa86755b9ecec030b3906ee5938
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Oct 29 06:16:52 2022 +0000

    2022-10-29 06:16:51 UTC

emerge -qpvO net-proxy/tayga
[ebuild  N    ] net-proxy/tayga-0.9.2-r4
Comment 1 Toralf Förster gentoo-dev 2022-10-29 09:46:28 UTC
Created attachment 825949 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-29 09:46:29 UTC
Created attachment 825951 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-10-29 09:46:31 UTC
Created attachment 825953 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-29 09:46:32 UTC
Created attachment 825955 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-29 09:46:33 UTC
Created attachment 825957 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-29 09:46:34 UTC
Created attachment 825959 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-29 09:46:35 UTC
Created attachment 825961 [details]
net-proxy:tayga-0.9.2-r4:20221029-065536.log
Comment 8 Toralf Förster gentoo-dev 2022-10-29 09:46:36 UTC
Created attachment 825963 [details]
temp.tar.bz2
Comment 9 Larry the Git Cow gentoo-dev 2023-12-31 10:59:53 UTC
The bug has been referenced in the following commit(s):

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

commit 8e6fce166c165810d603aa2288a76195e1f013f4
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-12-31 10:54:12 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-12-31 10:59:49 +0000

    package.mask: Last rite net-proxy/tayga
    
    Bug: https://bugs.gentoo.org/878629
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 10 YiFei Zhu 2024-01-10 08:06:12 UTC
I gave a fix in the linked PR.
Comment 11 Larry the Git Cow gentoo-dev 2024-01-13 18:51:51 UTC
The bug has been closed via the following commit(s):

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

commit 4c6a3bdef5e2311bfe68364cdf61f0bee7030814
Author:     YiFei Zhu <zhuyifei1999@gmail.com>
AuthorDate: 2024-01-10 07:50:46 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-01-13 18:51:12 +0000

    net-proxy/tayga: Fix "incompatible pointer to integer conversion"
    
    The purpose of the code is to find the separator slash of the CIDR
    range, splitting it to the IP and the number of bits in the range.
    Assigning NUL character to the memory location completes the string
    split, but the code assigns NULL pointer instead. While functionally
    the same, the compiler type checking complains.
    
    I'm not revbumping this change because the code should compile the
    same in theory.
    
    Closes: https://bugs.gentoo.org/878629
    Signed-off-by: YiFei Zhu <zhuyifei1999@gmail.com>
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 net-proxy/tayga/files/tayga-0.9.2-static-EAM.patch | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit ef2bf31584b18ba84ac41b17e057d3365b7bc527
Author:     YiFei Zhu <zhuyifei1999@gmail.com>
AuthorDate: 2024-01-10 07:49:19 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-01-13 18:51:12 +0000

    net-proxy/tayga: add myself as a maintainer
    
    I'm decently familiar with the codebase of tayga and I'm happy to
    maintain it.
    
    Bug: https://bugs.gentoo.org/878629
    Signed-off-by: YiFei Zhu <zhuyifei1999@gmail.com>
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 net-proxy/tayga/metadata.xml | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)