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

Bug 881143

Summary: net-analyzer/p0f-3.09_beta-r1 - .build-34.c: error: call to undeclared library function printf with type int (const char , ); ISO
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
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
environment
etc.clang.tar.bz2
etc.portage.tar.bz2
net-analyzer:p0f-3.09_beta-r1:20221112-190301.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-11-12 19:12:12 UTC
[*] Checking if memory alignment is required... FAIL

Well, something went horribly wrong, sorry. Here's the output from GCC:

.build-34.c:2:34: error: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
volatile u8 tmp[6]; int main() { printf("%d\n", *(u32*)(tmp+1)); return 0; }
                                 ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20221111-181859

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.4
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.4
Python 3.10.8
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.65.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.352_p08 [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):

  HEAD of ::gentoo
commit f6917650a106a7a39a7f707f31fcc9d385e0f620
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Nov 12 17:16:53 2022 +0000

    2022-11-12 17:16:53 UTC

emerge -qpvO net-analyzer/p0f
[ebuild  N    ] net-analyzer/p0f-3.09_beta-r1  USE="ipv6 -debug"
Comment 1 Toralf Förster gentoo-dev 2022-11-12 19:12:13 UTC
Created attachment 832119 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-12 19:12:15 UTC
Created attachment 832121 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-11-12 19:12:16 UTC
Created attachment 832123 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-11-12 19:12:17 UTC
Created attachment 832125 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-11-12 19:12:18 UTC
Created attachment 832127 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-12 19:12:19 UTC
Created attachment 832129 [details]
net-analyzer:p0f-3.09_beta-r1:20221112-190301.log
Comment 7 Toralf Förster gentoo-dev 2022-11-12 19:12:20 UTC
Created attachment 832131 [details]
temp.tar.bz2