Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919172 - app-crypt/chntpw-140201-r1 - libsam.c: error: passing argument 1 of hexdump from incompatible pointer type [-Wincompatible-pointer-types]
Summary: app-crypt/chntpw-140201-r1 - libsam.c: error: passing argument 1 of hexdump f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-12-04 17:42 UTC by Toralf Förster
Modified: 2024-01-31 12:55 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,19.36 KB, text/plain)
2023-12-04 17:42 UTC, Toralf Förster
Details
app-crypt:chntpw-140201-r1:20231204-025407.log (app-crypt:chntpw-140201-r1:20231204-025407.log,20.41 KB, text/plain)
2023-12-04 17:42 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,93.34 KB, application/x-xz)
2023-12-04 17:42 UTC, Toralf Förster
Details
environment (environment,60.18 KB, text/plain)
2023-12-04 17:42 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.08 KB, application/x-xz)
2023-12-04 17:42 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,38.78 KB, application/x-xz)
2023-12-04 17:42 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,91.96 KB, application/x-xz)
2023-12-04 17:42 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,17.39 KB, application/x-xz)
2023-12-04 17:42 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-04 17:42:42 UTC
make -j4 CC=x86_64-pc-linux-gnu-gcc 'CFLAGS=-O3 -pipe -march=native -fno-diagnostics-color -DUSEOPENSSL -Wall' LIBS=-lcrypto 
x86_64-pc-linux-gnu-gcc -c -O3 -pipe -march=native -fno-diagnostics-color -DUSEOPENSSL -Wall chntpw.c
x86_64-pc-linux-gnu-gcc -c -O3 -pipe -march=native -fno-diagnostics-color -DUSEOPENSSL -Wall ntreg.c
x86_64-pc-linux-gnu-gcc -c -O3 -pipe -march=native -fno-diagnostics-color -DUSEOPENSSL -Wall edlib.c
x86_64-pc-linux-gnu-gcc -c -O3 -pipe -march=native -fno-diagnostics-color -DUSEOPENSSL -Wall libsam.c
libsam.c: In function sam_put_grp_members_sid:
libsam.c:514:28: error: passing argument 1 of hexdump from incompatible pointer type [-Wincompatible-pointer-types]
  514 |      if (gverbose) hexdump(&c->data, 0, c->len, 1);
      |                            ^~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_hardened-20231123-161100

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

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 Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0
  [2]   rust-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit e1d8d606075f6c66eef356e5621f21baa06ca041
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 4 02:36:52 2023 +0000

    2023-12-04 02:36:52 UTC

emerge -qpvO app-crypt/chntpw
[ebuild  N    ] app-crypt/chntpw-140201-r1  USE="-static"
Comment 1 Toralf Förster gentoo-dev 2023-12-04 17:42:43 UTC
Created attachment 876699 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-04 17:42:44 UTC
Created attachment 876700 [details]
app-crypt:chntpw-140201-r1:20231204-025407.log
Comment 3 Toralf Förster gentoo-dev 2023-12-04 17:42:45 UTC
Created attachment 876701 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-12-04 17:42:46 UTC
Created attachment 876702 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-04 17:42:47 UTC
Created attachment 876703 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-04 17:42:48 UTC
Created attachment 876704 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-04 17:42:49 UTC
Created attachment 876705 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-04 17:42:50 UTC
Created attachment 876706 [details]
temp.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2024-01-31 12:55:30 UTC
The bug has been closed via the following commit(s):

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

commit 68c9b8f93ff895caa7bf5aaee085e66ffb7862a4
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2024-01-31 12:48:34 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2024-01-31 12:55:22 +0000

    app-crypt/chntpw: force -std=gnu90
    
    Just a workaround for build errors for now. In the long run, I think
    I'd better look at whether how useful exactly (if at all) chntpw is
    against modern Windows versions, warrants all the changes required
    to make the code C99-compliant.
    
    Nb. It's gnu90 rather than c90 because of the use of // for comments.
    
    Closes: https://bugs.gentoo.org/919172
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 app-crypt/chntpw/chntpw-140201-r1.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)