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

Bug 852119

Summary: net-analyzer/xprobe-0.3-r1 - datalink.cc: error: time was not declared in this scope
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 839906    
Attachments: emerge-info.txt
emerge-history.txt.bz2
environment
etc.portage.tar.bz2
logs.tar.bz2
net-analyzer:xprobe-0.3-r1:20220615-044600.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-06-15 09:07:13 UTC
misc.cc:23:20: warning: ISO C++17 does not allow register’ storage class specifier [-Wregister]
   23 |   register u_short answer;      /* assumes u_short == 16 bits */
      |                    ^~~~~~
datalink.cc: In member function virtual int usipp::Pcap::sniffpack(void*, size_t)’:
datalink.cc:344:25: error: time’ was not declared in this scope
  344 |                 start = time(NULL);
      |                         ^~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd-j4-20220609-050004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.1.1 *
clang/llvm (if any):
clang version 14.0.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.5
Python 3.9.13
Available Rust versions:
  [1]   rust-1.61.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php8.1 *

  HEAD of ::gentoo
commit 501d75c453f642e466d73f0aff9d420a3b42e1b6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Jun 15 03:48:21 2022 +0000

    2022-06-15 03:48:20 UTC

emerge -qpvO net-analyzer/xprobe
[ebuild  N    ] net-analyzer/xprobe-0.3-r1
Comment 1 Toralf Förster gentoo-dev 2022-06-15 09:07:15 UTC
Created attachment 785294 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-06-15 09:07:16 UTC
Created attachment 785297 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-06-15 09:07:18 UTC
Created attachment 785300 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-06-15 09:07:19 UTC
Created attachment 785303 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-06-15 09:07:20 UTC
Created attachment 785306 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-06-15 09:07:21 UTC
Created attachment 785309 [details]
net-analyzer:xprobe-0.3-r1:20220615-044600.log
Comment 7 Toralf Förster gentoo-dev 2022-06-15 09:07:22 UTC
Created attachment 785312 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-06-15 21:46:55 UTC
The bug has been closed via the following commit(s):

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

commit a0a54438749c44e03fb7c3cb02957bcef3127dfd
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-15 21:46:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-15 21:46:35 +0000

    net-analyzer/xprobe: fix build with GCC 12
    
    Closes: https://bugs.gentoo.org/852119
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/xprobe/files/xprobe-0.3-gcc-12.patch | 21 +++++++++++++++++++++
 net-analyzer/xprobe/xprobe-0.3-r1.ebuild          |  9 +++++++--
 2 files changed, 28 insertions(+), 2 deletions(-)