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

Bug 870652

Summary: x11-misc/x2vnc-1.7.2-r1:0 - rfbproto.c: error: call to undeclared function time; ISO C99 and later
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Desktop Misc. Team <desktop-misc>
Status: RESOLVED FIXED    
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.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2
x11-misc:x2vnc-1.7.2-r1:20220917-104209.log

Description Toralf Förster gentoo-dev 2022-09-17 10:45:43 UTC
sockets.c:84:18: note: treat the string as an argument to avoid this
                fprintf(stderr,programName);
                               ^
                               "%s", 
rfbproto.c:378:21: error: call to undeclared function 'time'; ISO C99 and later
      do not support implicit function declarations
      [-Werror,-Wimplicit-function-declaration]

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  (none found)
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit f38006d84550ea73795e41f9b7abbc5418aa128e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 17 09:46:47 2022 +0000

    2022-09-17 09:46:46 UTC

emerge -qpvO x11-misc/x2vnc
[ebuild  N    ] x11-misc/x2vnc-1.7.2-r1  USE="-tk"
Comment 1 Toralf Förster gentoo-dev 2022-09-17 10:45:44 UTC
Created attachment 806956 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-17 10:45:45 UTC
Created attachment 806959 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-09-17 10:45:47 UTC
Created attachment 806962 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-09-17 10:45:48 UTC
Created attachment 806965 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-09-17 10:45:48 UTC
Created attachment 806968 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-17 10:45:49 UTC
Created attachment 806971 [details]
temp.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-17 10:45:50 UTC
Created attachment 806974 [details]
x11-misc:x2vnc-1.7.2-r1:20220917-104209.log
Comment 8 Larry the Git Cow gentoo-dev 2022-09-29 04:27:53 UTC
The bug has been closed via the following commit(s):

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

commit 3e39e020cf77a03bf4672fc281dec55f1df53042
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-09-29 03:03:35 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-09-29 04:17:54 +0000

    x11-misc/x2vnc: fix build with clang16
    
    Skipping revbump (for potential runtime fixes with other
    compilers) given was done in previous commit.
    
    Closes: https://bugs.gentoo.org/870652
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 x11-misc/x2vnc/files/x2vnc-1.7.2-clang16.patch | 33 ++++++++++++++++++++++++++
 x11-misc/x2vnc/x2vnc-1.7.2-r2.ebuild           |  1 +
 2 files changed, 34 insertions(+)