Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692546 - net-analyzer/suricata-4.0.4 : source-af-packet.c:602:28: error: SIOCGSTAMP undeclared (first use in this function)
Summary: net-analyzer/suricata-4.0.4 : source-af-packet.c:602:28: error: SIOCGSTAMP un...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sławek Lis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: linux-headers-5.2
  Show dependency tree
 
Reported: 2019-08-19 17:59 UTC by Toralf Förster
Modified: 2019-09-08 19:25 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.22 KB, text/plain)
2019-08-19 17:59 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,228.70 KB, text/plain)
2019-08-19 17:59 UTC, Toralf Förster
Details
environment (environment,106.20 KB, text/plain)
2019-08-19 17:59 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.89 KB, application/x-bzip)
2019-08-19 17:59 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,17.27 KB, application/x-bzip)
2019-08-19 17:59 UTC, Toralf Förster
Details
net-analyzer:suricata-4.0.4:20190818-224930.log (net-analyzer:suricata-4.0.4:20190818-224930.log,223.77 KB, text/plain)
2019-08-19 17:59 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,36.54 KB, application/x-bzip)
2019-08-19 17:59 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 2019-08-19 17:59:16 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -I/usr/lib64/htp/include  -I/usr/include/nspr  -I/usr/include/nss -I/usr/include/nspr   -Wextra -Werror-implicit-function-declaration  -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -I/usr/include -DLOCAL_STATE_DIR=\"/var\" -std=gnu99 -Wall -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wwrite-strings -Wbad-function-cast -Wformat-security -Wno-format-nonliteral -Wmissing-format-attribute -funsigned-char  -O2 -pipe -march=native -c -o source-af-packet.o source-af-packet.c
source-af-packet.c: In function ‘AFPRead’:
source-af-packet.c:602:28: error: ‘SIOCGSTAMP’ undeclared (first use in this function); did you mean ‘SIOCGRARP’?
  602 |     if (ioctl(ptv->socket, SIOCGSTAMP, &p->ts) == -1) {
      |                            ^~~~~~~~~~
      |                            SIOCGRARP

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

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

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
  [3]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *

java-config:
The following VMs are available for generation-2:


emerge -qpvO net-analyzer/suricata
[ebuild  N    ] net-analyzer/suricata-4.0.4  USE="af-packet detection hardened nfqueue rules -control-socket -cuda -debug -geoip -logrotate -lua -luajit -nflog -redis -test"
Comment 1 Toralf Förster gentoo-dev 2019-08-19 17:59:18 UTC
Created attachment 587446 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-08-19 17:59:21 UTC
Created attachment 587448 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-08-19 17:59:24 UTC
Created attachment 587450 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-08-19 17:59:26 UTC
Created attachment 587452 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-08-19 17:59:29 UTC
Created attachment 587454 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-08-19 17:59:32 UTC
Created attachment 587456 [details]
net-analyzer:suricata-4.0.4:20190818-224930.log
Comment 7 Toralf Förster gentoo-dev 2019-08-19 17:59:35 UTC
Created attachment 587458 [details]
temp.tbz2
Comment 8 Jan Ziak (atomsymbol) 2019-09-05 18:06:24 UTC
From https://bugreports.qt.io/secure/attachment/85364/0001-fix-build-after-y2038-changes-in-glibc.patch:

"SIOCGSTAMP is defined in linux/sockios.h since kernel 5.2. Include that file wherever needed."
Comment 9 Larry the Git Cow gentoo-dev 2019-09-08 19:25:05 UTC
The bug has been closed via the following commit(s):

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

commit dc1b127212527643b0346fe711558136bfc25ad0
Author:     Slawomir Lis <slis@gentoo.org>
AuthorDate: 2019-09-08 18:58:59 +0000
Commit:     Slawomir Lis <slis@gentoo.org>
CommitDate: 2019-09-08 19:24:40 +0000

    net-analyzer/suricata: fixed build error related with SIOCGSTAMP
    
    Closes: https://bugs.gentoo.org/692546
    Package-Manager: Portage-2.3.75, Repoman-2.3.17
    Signed-off-by: Slawek Lis <slis@gentoo.org>

 net-analyzer/suricata/files/suricata-4.0.4_sockios.patch | 13 +++++++++++++
 net-analyzer/suricata/suricata-4.0.4.ebuild              |  5 +++--
 2 files changed, 16 insertions(+), 2 deletions(-)