The following error occurs when libpcap is installed on REDHAT9:

Source: Internet
Author: User
When libpcap is installed on REDHAT9, the following error occurs: Linux general technology-Linux technology and application information. For details, refer to the following. Error installing libpcap-1.0:
[Root @ host libpcap-1.0] #./configure
Checking for a BSD-compatible install.../usr/bin/install-c
Checking whether build environment is sane... yes
Checking whether make sets $ (MAKE)... yes
Checking for working aclocal-1.4... found
Checking for working autoconf... found
Checking for working automake-1.4... found
Checking for working autoheader... found
Checking for working makeinfo... found
Checking build system type... i686-pc-linux-gnu
Checking host system type... i686-pc-linux-gnu
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 ansi c... none needed
Checking gcc version... 4
Checking for gawk... gawk
Checking for gcc... (cached) gcc
Checking whether we are using the gnu c compiler... (cached) yes
Checking whether gcc accepts-g... (cached) yes
Checking for gcc option to accept ansi c... (cached) none needed
Checking for a BSD-compatible install.../usr/bin/install-c
Checking whether ln-s works... yes
Checking for bison... bison-y
Checking for a sed that does not truncate output.../bin/sed
Checking for egrep... 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 how to recognize 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 fort77... no
Checking for fl32... no
Checking for af77... no
Checking for f90... no
Checking for xlf90... no
Checking for pgf90... no
Checking for epcf90... no
Checking for f95... f95
Checking whether we are using the GNU Fortran 77 compiler... yes
Checking whether f95 accepts-g... yes
Checking the maximum length of command line arguments... 32768
Checking command to parse/usr/bin/nm-B output from gcc object... OK
Checking for objdir... libs
Checking for ar... ar
Checking for ranlib... ranlib
Checking for strip... strip
Checking if gcc static flag works... yes
Checking if gcc supports-fno-rtti-fno-exceptions... no
Checking for gcc option to produce PIC...-fPIC
Checking if gcc PIC flag-fPIC works... yes
Checking if gcc supports-c-o file. o... yes
Checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
Checking dynamic linker characteristics... GNU/Linux ld. so
Checking how to hardcode library paths into programs... immediate
Checking whether stripping libraries is possible... yes
Checking if libtool supports shared libraries... yes
Checking whether to build shared libraries... no
Checking whether to build static libraries... yes
Configure: creating libtool
Appending configuration tag "CXX" to libtool
Checking for ld used by g ++.../usr/bin/ld
Checking if the linker (/usr/bin/ld) is GNU ld... yes
Checking whether the g ++ linker (/usr/bin/ld) supports shared libraries... yes
Checking for g ++ option to produce PIC...-fPIC
Checking if g ++ PIC flag-fPIC works... yes
Checking if g ++ supports-c-o file. o... yes
Checking whether the g ++ linker (/usr/bin/ld) supports shared libraries... yes
Checking dynamic linker characteristics... GNU/Linux ld. so
Checking how to hardcode library paths into programs... immediate
Checking whether stripping libraries is possible... yes
Appending configuration tag "F77" to libtool
Checking if libtool supports shared libraries... yes
Checking whether to build shared libraries... no
Checking whether to build static libraries... yes
Checking for f95 option to produce PIC...-fPIC
Checking if f95 PIC flag-fPIC works... yes
Checking if f95 supports-c-o file. o... yes
Checking whether the f95 linker (/usr/bin/ld) supports shared libraries... yes
Checking dynamic linker characteristics... GNU/Linux ld. so
Checking how to hardcode library paths into programs... immediate
Checking whether stripping libraries is possible... yes
Checking for ansi c header files... (cached) yes
Checking for dirent. h that defines DIR... yes
Checking for library containing opendir... none required
Checking sys/ioccom. h usability... no
Checking sys/ioccom. h presence... no
Checking for sys/ioccom. h... no
Checking sys/sockio. h usability... no
Checking sys/sockio. h presence... no
Checking for sys/sockio. h... no
Checking ifaddrs. h usability... yes
Checking ifaddrs. h presence... yes
Checking for ifaddrs. h... yes
Checking limits. h usability... yes
Checking limits. h presence... yes
Checking for limits. h... yes
Checking for netinet/if_ether.h... yes
Checking for inline... inline
Checking for _ attribute _... no
Checking for ANSI ioctl definitions... yes
Checking for u_int8_t using gcc... yes
Checking for u_int16_t using gcc... yes
Checking for u_int32_t using gcc... yes
Checking for an ansi c-conforming const... yes
Checking for inline... inline
Checking for off_t... yes
Checking for pid_t... yes
Checking for size_t... yes
Checking for struct stat. st_rdev... yes
Checking whether time. h and sys/time. h may both be supported ded... yes
Checking whether struct tm is in sys/time. h or time. h... time. h
Checking whether gcc needs-traditional... no
Checking whether sys/types. h defines makedev... yes
Checking return type of signal handlers... void
Checking for ether_hostton... yes
Checking for strerror... yes
Checking for strlcpy... no
Checking for vsnprintf... yes
Checking for snprintf... yes
Checking if -- disable-protochain option is specified... enabled
Checking packet capture type... linux
Checking generating other OS sources .. pcap-bpf.c pcap-pf.c pcap-enet.c pcap-snit.c pcap-nit.c pcap-snoop.c pcap-dlpi.c pcap-enet.c pcap-null.c pcap-dag.c
Checking for getifaddrs... yes
Check if -- enable-ipv6 option is specified... no
Checking whether to build optimizer debugging code... no
Checking whether to build parser debugging code... no
Checking Linux kernel version... 2
Checking if if_packet.h has tpacket_stats defined... yes
Checking if if_packet.h allows shared memory ring buffer... yes
Checking whether we have/proc/net/dev... yes
Checking whether we have dag api... no
Checking for flex... flex
Checking for flex 2.4 or higher... yes
Checking for bison... bison
Checking if sockaddr struct has sa_len member... no
Checking if sockaddr_storage struct exists... yes
Checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... no
Checking if unaligned accesses fail... no
Checking for a BSD-compatible install.../usr/bin/install-c
Configure: creating./config. status
Config. status: creating Makefile
Config. status: creating config. h
Config. status: config. h is unchanged
Config. status: executing default-1 commands
[Root @ host libpcap-1.0] # make
/Bin/sh./libtool -- mode = compile gcc-DHAVE_CONFIG_H-D_U _ = ""-I.-g-O2-c Release. c
Gcc-DHAVE_CONFIG_H-D_U _ =-I.-g-O2-c Release. c-o release. o
In file included from pcap-int.h: 56,
From nation. l: 35:
Pcap-ring.h: 35: 29: error: asm/cpufeature. h: No such file or directory
Make: *** [logging. lo] Error 1

[ This post was last edited by vardesa]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.