I'm working on libpcap to make my own wireless networking sniffer, and I want to include in my program, the compile failed with the error message "fatal error: ieee80211.h: no such file or directory".
The kernel version is 5.3.0-28-generic, I believe it's quite new and I couldn't find any ieee80211.h file in normal include paths such as /usr/include, /usr/include/linux, and even if I include it from somewhere else, more errors come out because it includes much more sources that don't exist.
it seems that I have to install the complete networking source code system.
Is there any way i can do that?
Related
I downloaded the linux operating system kernel source 4.15.1
from the kernel website, installed the required packages:
kernel-package, libncurses5 and libncurses5-dev.
Unpacked the tar archive and navigated to the resulting directory.
I wanted to proceed to the kernel configuration, but when I enter the make menuconfigcommand,
I get the following error:
make: *** empty variable name. Stop.
make: *** [Makefile:460: scripts_basic] Error 2
I tried for a very long time to find a solution to this problem on the internet, reinstalling all packages, even looking at the contents of the Makefile kernel file, but nothing gave me any results.
Although after entering this command I was expecting an ncurses utility to open for manual kernel tuning, but only my version, like this:
I was able to fix the error and run the utility by re-downloading the package with a different compression method.
For some reason, the .xz format I selected does not decompress correctly.
The error was that not all required kernel files were present.
When trying to build sllin I'm getting an error:
/usr/src/linux-headers-4.19.0-14-common/scripts/Makefile.build:45: /usr/src/linux-headers-4.19.0-14-common/scripts/basic/Makefile: No such file or directory
I don't understand why as I have the headers installed. The /usr/src/linux-headers-4.19.0-14-common/scripts/ directory exists.
The sllin readme sais
To successfully compile sllin, it is necessary to have source code of
Linux kernel actually running on the computer.
I don't really understand what this means.
Does anyone have an idea ?
Thanks
While working on SNMP, I am not able to execute snmpwalk or snmpset. Then I checked snmpd -H.
I see an error as:
dlopen(/lib/libvcpeLiTapMediationTable.so) failed: /lib/libvcpeLiTapMediationTable.so: undefined symbol: memdup
dlopen(/lib/libvcpeLiTapStreamTable.so) failed: /lib/libvcpeLiTapStreamTable.so: undefined symbol: memdup
I think that my library might not be opening dynamically due to this.
When I load my packages in CentOS as rpms, I have no errors.
But for the same code, when I load my packages in Ubuntu as debian packages, I see this error.
Queries:
Is there any problem with SNMP installation (since it works on CentOS but not on Ubuntu)? Or is something missing in my debian packages?
Please explain the impact of this error on my operations.
Any relevant answers will be helpful as I am new to this.
Thank you.
Your libvcpeLiTapMediationTable.so depends on function memdup(). This is defined on your CentOS and wherever it was built, in either Net-SNMP or one of the libraries it or libvcpeLiTapMediationTable.so links to at run time, but is not defined on your Ubuntu. Consequently, it can't be loaded at won't work.
Net-SNMP defined memdup() in snmplib/tools.c, but this was renamed to netsnmp_memdup() to avoid conflicts with other libraries that might define their own version according to change history. Perhaps you are using two different versions of Net-SNMP between your two distros, one with and one without that change.
I have installed ocaml under cygwin64 (a Windows 10 computer). Ocaml, ocamlc seem to run fine, but I need packages. So I've tried opam, and it complained that ocamlfind was missing. I have tried to install ocamlfind it two ways - using opam and from the findlib repository on gitlab.camlcity.org - and in both cases, it failed on not finding dllunix.so . I noticde that the environment variable OCAMLLIB was C:\Ocaml (ie outside the cygwin directory tree), but that in /usr/lib/ocaml/stublibs there was such a file. Having modified OCAMLLIB to point there, I received the following error.
Cannot load required shared library dllunix. Reason: /usr/lib/ocaml/stublibs/dllunix.so: flexdll error: cannot relocate RELOC_REL32, target is too far: 0xfffffffc02c37112 0x2c37112.
I have a similar message on another library as well:
Error: Error on dynamically loaded library: /usr/lib/ocaml/stublibs/dllcamlstr.so: flexdll error: cannot relocate RELOC_REL32, target is too far: 0xfffffffc02b6a92a 0x2b6a92a
First:
this is not a programming question, it is a support requirement and the right place is the cygwin mailing list. You can follow guidelines on:
https://cygwin.com/problems.html
Second:
you can try the following approach, execute
/usr/bin/rebase-trigger fullrebase
than close all the cygwin programs and services, and run setup-x86_64 again.
Further info on document
/usr/share/doc/Cygwin/_autorebase.README
If number two fails, follow one. Really.
I am running into errors with opencv. I downloaded a package online and compiled each of the folders by cd into them and running make through the command line. But when I try using one of the functions, I run into this error: libopencv_core.so.2.3: cannot open shared object file: No such file or directory
The file its trying to reach is indeed there, since I checked this, but for some reason its saying its not. I am pretty bad at figuring out path problems but I think this is one of them. Can anyone tell me how to fix this? Thanks