Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 774084 - net-analyzer/scapy No such file or directory: b'liblibc.a'
Summary: net-analyzer/scapy No such file or directory: b'liblibc.a'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Auty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-03 17:33 UTC by aleck
Modified: 2021-03-03 21:14 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge--info.txt,6.54 KB, text/plain)
2021-03-03 17:33 UTC, aleck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aleck 2021-03-03 17:33:15 UTC
Created attachment 689229 [details]
emerge --info

It seems following problem is here:

https://stackoverflow.com/questions/65410481/filenotfounderror-errno-2-no-such-file-or-directory-bliblibc-a

used python version:
Python 3.8.7

>% scapy           
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.8/scapy", line 33, in <module>
    sys.exit(load_entry_point('scapy==2.4.4', 'console_scripts', 'scapy')())
  File "/usr/lib/python3.8/site-packages/scapy/main.py", line 560, in interact
    SESSION, GLOBKEYS = init_session(session_name, mydict)
  File "/usr/lib/python3.8/site-packages/scapy/main.py", line 401, in init_session
    importlib.import_module(".all", "scapy").__dict__
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.8/site-packages/scapy/all.py", line 16, in <module>
    from scapy.arch import *
  File "/usr/lib/python3.8/site-packages/scapy/arch/__init__.py", line 27, in <module>
    from scapy.arch.bpf.core import get_if_raw_addr
  File "/usr/lib/python3.8/site-packages/scapy/arch/bpf/core.py", line 30, in <module>
    LIBC = cdll.LoadLibrary(find_library("libc"))
  File "/usr/lib/python3.8/ctypes/util.py", line 330, in find_library
    _get_soname(_findLib_gcc(name)) or _get_soname(_findLib_ld(name))
  File "/usr/lib/python3.8/ctypes/util.py", line 147, in _findLib_gcc
    if not _is_elf(file):
  File "/usr/lib/python3.8/ctypes/util.py", line 99, in _is_elf
    with open(filename, 'br') as thefile:
FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a'
Comment 1 Larry the Git Cow gentoo-dev 2021-03-03 21:05:29 UTC
The bug has been closed via the following commit(s):

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

commit c6262bf324688e9a2b5e9564d3e8fb4fca5bbe9e
Author:     Mike Auty <ikelos@gentoo.org>
AuthorDate: 2021-03-03 21:02:48 +0000
Commit:     Mike Auty <ikelos@gentoo.org>
CommitDate: 2021-03-03 21:05:25 +0000

    net-analyzer/scapy: Fix libc library search
    
    Closes: https://bugs.gentoo.org/774084
    Signed-off-by: Mike Auty <ikelos@gentoo.org>

 net-analyzer/scapy/files/scapy-2.4.4-libc.patch             | 13 +++++++++++++
 .../scapy/{scapy-2.4.4.ebuild => scapy-2.4.4-r1.ebuild}     |  4 +++-
 2 files changed, 16 insertions(+), 1 deletion(-)
Comment 2 Mike Auty (RETIRED) gentoo-dev 2021-03-03 21:06:47 UTC
Thanks this is fixed in the development version (hence not bumping the 9999 ebuild) as part of https://github.com/secdev/scapy/pull/3000.  I backported it for 2.4.4.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-03 21:14:02 UTC
(In reply to Mike Auty from comment #2)
> Thanks this is fixed in the development version (hence not bumping the 9999
> ebuild) as part of https://github.com/secdev/scapy/pull/3000.  I backported
> it for 2.4.4.

Nice! Thanks :)