Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 852119 - net-analyzer/xprobe-0.3-r1 - datalink.cc: error: time was not declared in this scope
Summary: net-analyzer/xprobe-0.3-r1 - datalink.cc: error: time was not declared in thi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-06-15 09:07 UTC by Toralf Förster
Modified: 2022-06-15 21:47 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.87 KB, text/plain)
2022-06-15 09:07 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,88.89 KB, application/x-bzip)
2022-06-15 09:07 UTC, Toralf Förster
Details
environment (environment,59.16 KB, text/plain)
2022-06-15 09:07 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,30.99 KB, application/x-bzip)
2022-06-15 09:07 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,8.00 KB, application/x-bzip)
2022-06-15 09:07 UTC, Toralf Förster
Details
net-analyzer:xprobe-0.3-r1:20220615-044600.log (net-analyzer:xprobe-0.3-r1:20220615-044600.log,11.43 KB, text/plain)
2022-06-15 09:07 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,17.37 KB, application/x-bzip)
2022-06-15 09:07 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-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(-)