Summary: | net-analyzer/snips-1.2-r3: : chown: cannot access ‘/usr/snips/bin/etherload’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Tony Vroon (RETIRED) <chainsaw> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | creideiki+gentoo-bugzilla |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge log
snips-1.2-linux3.patch |
Description
Toralf Förster
2015-05-15 11:38:06 UTC
Looking earlier in your log, etherload is never built (but for some reason the installation completes anyway): x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -fPIC -DSNIPS -DRRDTOOL -I/var/tmp/portage/net-analyzer/snips-1.2-r3/work/snips-1.2/include bpf.o etherload.o dlpi.o main.o nit.o pfilt.o snoop.o linux.o util.o snips_specific.o get_devlist.o -Wl,-O1 -Wl,--as-needed -L/var/tmp/portage/net-analyzer/snips-1.2-r3/work/snips-1.2/lib -lsnips -L/usr/lib/ -lrrd -o etherload etherload.o: In function `etherload': etherload.c:(.text+0x20e): undefined reference to `flush_device' etherload.c:(.text+0x47d): undefined reference to `getpkt' main.o: In function `main': main.c:(.text.startup+0x2e9): undefined reference to `get_devtype' main.c:(.text.startup+0x38c): undefined reference to `setup_device' main.c:(.text.startup+0x61c): undefined reference to `os_devices' collect2: error: ld returned 1 exit status Makefile:112: recipe for target 'etherload' failed make[1]: *** [etherload] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-analyzer/snips-1.2-r3/work/snips-1.2/etherload' Those functions are in etherload/linux.c, but only if USE_LINUX is defined. USE_LINUX, in turn, comes from etherload/os.h: #if defined(LINUX) || defined(LINUX1) || defined(LINUX2) And those flags come directly from the Configure script: OS="`uname -s -r`" case "$OS" in LINUX20|Linux\ 2*) OS_CFLAGS="-DLINUX2"; Which only works on Linux 2.x. There is already a patch in Portage (files/snips-1.2-linux3.patch) to change that to LINUX20|Linux\ [23]*) so it works on Linux 3.x. I see you are running 4.0.2-hardened, and I see the same error on 4.0.2-hardened-r1. Changing that patch to also include 4.x: LINUX20|Linux\ [234]*) makes it work for me. Created attachment 403384 [details, diff]
snips-1.2-linux3.patch
New patch to the Configure script, to also work on Linux 4.x.
*** Bug 585876 has been marked as a duplicate of this bug. *** Removed from tree. commit 9b5612b068f12a94455e7dc1055e9b976d6880e5 Author: David Seifert <soap@gentoo.org> Date: Mon Jan 30 09:24:04 2017 +0100 net-analyzer/snips: Remove from tree |