G
G
German2019-01-13 19:06:09
linux
German, 2019-01-13 19:06:09

make error, dnet.h not found?

I'm trying to build unicornscan, download it, write ./configure CFLAGS=-D_GNU_SOURCE or just ./configure
in the directory Output:

configuring unicornscan version 0.4.7
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking gcc version... 5
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
...ограничение по символам toster
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for off_t... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether time.h and sys/time.h may both be included... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for sys/socket.h... yes
checking for net/if.h... yes
checking for netinet/in.h... yes
checking for arpa/inet.h... yes
checking for ifaddrs.h... yes
checking for net/if_dl.h... no
checking for ifaddrs.h... (cached) yes
checking for net/bpf.h... no
checking for net/ethernet.h... yes
checking for sys/ethernet.h... no
checking for netinet/if_ether.h... yes
checking for netinet/ether.h... yes
checking for netpacket/packet.h... yes
checking for struct sockaddr.sa_len... no
checking whether closedir returns void... no
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking return type of signal handlers... void
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for alarm... yes
checking for gethostbyname... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
checking for strrchr... yes
checking for getnameinfo... yes
checking for getaddrinfo... yes
checking for library containing nanosleep... none required
checking for library containing inet_aton... none required
checking for libpcap (http://www.tcpdump.org)... checking for pcap_open_live in -lpcap... yes
checking for pcap_lib_version... checking for pcap_lib_version in -lpcap... yes
checking for pcap_setnonblock... checking for pcap_setnonblock in -lpcap... yes
checking for pcap_get_selectable_fd in -lpcap... yes
checking for libdnet... yes
checking for libltdl... checking for lt_dlopen in -lltdl... yes
checking for a readable /proc/net/route file... Yes
checking for a readable prng device... yes found at /dev/urandom
checking for gmake... no
checking for gnumake... no
checking for make... /usr/bin/make
checking for __attribute__... no
checking for backtrace in execinfo.h... yes
checking whether to force bundled libltdl to be staticly linked into executables... no
checking for non-priv user for listener... Using user nobody
checking for GeoIP_open in -lGeoIP... yes
checking for getopt_long... yes
checking whether byte ordering is bigendian... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makefile.inc
config.status: creating etc/Makefile
config.status: creating libs/Makefile
config.status: creating docs/Makefile
config.status: creating selinux/Makefile
config.status: creating ext_src/Makefile
config.status: creating src/Makefile
config.status: creating src/packageinfo.h
config.status: creating src/unilib/Makefile
config.status: creating src/scan_progs/Makefile
config.status: creating src/scan_progs/tests/Makefile
config.status: creating src/tools/Makefile
config.status: creating src/tools/p0f/Makefile
config.status: creating src/output_modules/Makefile
config.status: creating src/output_modules/database/Makefile
config.status: creating src/payload_modules/Makefile
config.status: creating src/payload_modules/libunirainbow/Makefile
config.status: creating src/report_modules/Makefile
config.status: creating src/report_modules/osdetect/Makefile
config.status: creating src/parse/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged

--                Configuration Summary                                      --
prefix:                           /usr/local
PostgreSQL Support:               no
MySQL Support:                    no
GeoIP support:                    yes
SELinux Support:                  no
Listen User: (non-selinux)        nobody
libraries missing that will be built:  `'
C options  = -D_GNU_SOURCE -O2
C defines  =  
C include  =  
Link Flags =  
type /usr/bin/make to build

It can be seen that libdnet is in place.
I write make
...
make[2]: вход в каталог «/home/emilia/software/MyUtils/unicornscan-0.4.7/src/scan_progs»
/bin/bash /home/emilia/software/MyUtils/unicornscan-0.4.7/libtool --quiet --mode=compile gcc -D_GNU_SOURCE -O2  -DLIBDIR=\"/usr/local/lib\" -DSYSCONFDIR=\"/usr/local/etc\" -DLIBEXECDIR=\"/usr/local/libexec\" -DLOCALSTATEDIR=\"/usr/local/var\" -DPROGNAME=\"unicornscan\" -I/home/emilia/software/MyUtils/unicornscan-0.4.7/src -I/home/emilia/software/MyUtils/unicornscan-0.4.7/libs/fake/include -I/home/emilia/software/MyUtils/unicornscan-0.4.7/ext_src  -c send_packet.c
send_packet.c:22:18: fatal error: dnet.h: No such file or directory
compilation terminated.
../../Makefile.inc:50: ошибка выполнения рецепта для цели «send_packet.lo»
make[2]: *** [send_packet.lo] Ошибка 1
make[2]: выход из каталога «/home/emilia/software/MyUtils/unicornscan-0.4.7/src/scan_progs»
Makefile:22: ошибка выполнения рецепта для цели «alld»
make[1]: *** [alld] Ошибка 1
make[1]: выход из каталога «/home/emilia/software/MyUtils/unicornscan-0.4.7/src»
Makefile:7: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 1

How to treat?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Syomov, 2019-01-13
@kotomyava

To build, you need not only the library, but also the header files from it. You need to install the libdnet-dev package, or whatever it is called in your distribution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question