Project

General

Profile

Actions

Support #1687

closed

[OpenSUSE] S3.0 building problem

Added by Mikhail Kasimov over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Affected Versions:
Label:

Description

Hello! Got a S3.0 building problem on OpenSUSE distro (rather popular distro), which was described in #1225 and #1525: 'configure: error: libnetfilter_queue/libnetfilter_queue.h not found ...'

Used the installation guide for CentOS 7 (https://redmine.openinfosecfoundation.org/projects/suricata/wiki/CentOS_7_Installation), because OpenSUSE is also RPM-based distro.

For the fisrt time I tried to build S3.0 with default options: k_mikhail@linux-mk500:~/suricata-3.0> ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-nfqueue --enable-lua

and then: k_mikhail@linux-mk500:~/suricata-3.0> ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-nfqueue --enable-lua --with-libnetfilter-queue-includes=/usr/include/libnetfilter_queue-1.0.2/ --with-libnetfilter-queue-libraries=/usr/include/libnetfilter_queue-1.0.2/ , but result is the same (unsuccessful).

Because related bug-reports #1225 and #1525 are not resolved-status, the installation sheet for OpenSUSE distro (#1685) too will be appretiate. Thank you for your help!

Actions #1

Updated by Jason Ish over 6 years ago

Try this:

CPPFLAGS="-I/usr/include/libnetfilter_queue -I/usr/include/libnfnetlink-1.0.1" ./configure --enable-nfqueue --enable-lua

Actions #2

Updated by Mikhail Kasimov over 6 years ago

Jason Ish wrote:

Try this:

CPPFLAGS="-I/usr/include/libnetfilter_queue -I/usr/include/libnfnetlink-1.0.1" ./configure --enable-nfqueue --enable-lua

The same with 1.0.1 and|or 1.0.2:

...
checking for nfnl_fd in -lnfnetlink... yes
checking libnetfilter_queue/libnetfilter_queue.h usability... no
checking libnetfilter_queue/libnetfilter_queue.h presence... no
checking for libnetfilter_queue/libnetfilter_queue.h... no
configure: error: libnetfilter_queue/libnetfilter_queue.h not found ...

Actions #3

Updated by Jason Ish over 6 years ago

Do you have all the packages installed, see:

https://redmine.openinfosecfoundation.org/projects/suricata/wiki/OpenSuse_Leap_Installation

I tested on 42.1 which installed libnetfilter_queue 1.0.1.

Actions #4

Updated by Mikhail Kasimov over 6 years ago

Jason Ish wrote:

Do you have all the packages installed, see:

https://redmine.openinfosecfoundation.org/projects/suricata/wiki/OpenSuse_Leap_Installation

I tested on 42.1 which installed libnetfilter_queue 1.0.1.

I'm testing on OpenSUSE 13.2 with libnetfilter_queue 1.0.1 (not 1.0.2, sorry for confusing!)... Just re-checked all packages to install - yes, all mentioned in guide packages are installed and CPPFLAGS= is defined too. The same unsuccessful result -- 'configure: error: libnetfilter_queue/libnetfilter_queue.h not found ...'

Actions #5

Updated by Mikhail Kasimov over 6 years ago

k_mikhail@linux-mk500:~/suricata-3.0> CPPFLAGS="-I/usr/include/libnetfilter_queue -I/usr/include/libnfnetlink-1.0.1" ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-nfqueue --enable-lua
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc -std=gnu99... /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -std=gnu99 -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... no
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
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... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.21... yes
checking whether GCC or Clang is our compiler... gcc
checking gcc version... 4.8
checking for gawk... (cached) 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 ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking for python... /usr/bin/python
checking for wget... /usr/bin/wget
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for stdint.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... 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 syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking linux/if_ether.h usability... yes
checking linux/if_ether.h presence... yes
checking for linux/if_ether.h... yes
checking linux/if_packet.h usability... yes
checking linux/if_packet.h presence... yes
checking for linux/if_packet.h... yes
checking linux/filter.h usability... yes
checking linux/filter.h presence... yes
checking for linux/filter.h... yes
checking linux/ethtool.h usability... yes
checking linux/ethtool.h presence... yes
checking for linux/ethtool.h... yes
checking linux/sockios.h usability... yes
checking linux/sockios.h presence... yes
checking for linux/sockios.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking for sys/socket.h... (cached) yes
checking for net/if.h... yes
checking for sys/mman.h... yes
checking for linux/if_arp.h... yes
checking for windows.h... no
checking for winsock2.h... no
checking for ws2tcpip.h... no
checking for w32api/wtypes.h... no
checking for w32api/winbase.h... no
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking for int32_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
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 for gettimeofday... yes
checking for memset... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strtol... yes
checking for strtoul... yes
checking for memchr... yes
checking for memrchr... yes
checking for strlcpy... no
checking for strlcat... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking host os... installation for x86_64-unknown-linux-gnu OS... ok
checking for thread local storage __thread support... yes
checking checking if gcc supports -march=native... yes
checking for spatch... no
   Warning! spatch not found, you will not be 
   able to run code checking with coccinelle  
   get it from http://coccinelle.lip6.fr      
   or install from your distribution          
checking for Mpipe... no
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking for pcre_get_substring in -lpcre... yes
checking for pcre_dfa_exec in -lpcre... yes
checking for PCRE JIT support... yes
checking for PCRE JIT support usability... yes
checking yaml.h usability... yes
checking yaml.h presence... yes
checking for yaml.h... yes
checking for yaml_parser_initialize in -lyaml... yes
checking for pthread_create in -lpthread... yes
checking jansson.h usability... yes
checking jansson.h presence... yes
checking for jansson.h... yes
checking for json_dump_callback in -ljansson... yes
checking for nfnl_fd in -lnfnetlink... yes
checking libnetfilter_queue/libnetfilter_queue.h usability... no
checking libnetfilter_queue/libnetfilter_queue.h presence... no
checking for libnetfilter_queue/libnetfilter_queue.h... no
configure: error: libnetfilter_queue/libnetfilter_queue.h not found ...
k_mikhail@linux-mk500:~/suricata-3.0>
Actions #6

Updated by Jason Ish over 6 years ago

The CPPFLAGS just need tweaking across different versions of OpenSuse.. For 13.2:

CPPFLAGS="-I/usr/include/libnetfilter_queue-1.0.2 -I/usr/include/libnfnetlink-1.0.1" ./configure \
--prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-nfqueue --enable-lua

Actions #7

Updated by Mikhail Kasimov over 6 years ago

Jason Ish wrote:

The CPPFLAGS just need tweaking across different versions of OpenSuse.. For 13.2:

CPPFLAGS="-I/usr/include/libnetfilter_queue-1.0.2 -I/usr/include/libnfnetlink-1.0.1" ./configure \
--prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-nfqueue --enable-lua

Actions #8

Updated by Mikhail Kasimov over 6 years ago

Pretty nice... \sarcasm about tweaking of 13.2\

Thanks so much:

...
checking libnetfilter_queue/libnetfilter_queue.h usability... yes
checking libnetfilter_queue/libnetfilter_queue.h presence... yes
checking for libnetfilter_queue/libnetfilter_queue.h... yes
...
To build and install run 'make' and 'make install'.

P.S. Please, update the guide description https://redmine.openinfosecfoundation.org/projects/suricata/wiki/OpenSuse_Leap_Installation for this little naughty trick for OpenSUSE 13.2. Thanks!

Actions #9

Updated by Jason Ish over 6 years ago

  • Status changed from New to Closed

Closing. This issue has been addressed with documentation:

https://redmine.openinfosecfoundation.org/projects/suricata/wiki/OpenSuse_Installation

#1524 should make setting of CPPFLAGS unnecessary by using pkg-config.

Actions #10

Updated by Mikhail Kasimov over 6 years ago

Jason Ish wrote:

Closing. This issue has been addressed with documentation:

https://redmine.openinfosecfoundation.org/projects/suricata/wiki/OpenSuse_Installation

#1524 should make setting of CPPFLAGS unnecessary by using pkg-config.

I filed a report on boo (http://bugzilla.opensuse.org/show_bug.cgi?id=964612) to find the way to simplfy building process, and openSUSE guys prompted to use abstract way for 13.2/42.1: 'export CPPFLAGS=`pkg-config --cflags libnetfilter_queue`&& pkg-config --libs libnetfilter_queue && ./configure'. I've tried this way on 13.2 and it works good. Possibly, it also works good on 42.1, please, check this out.So, we can one more time update the install-guide for openSUSE. And sorry for noise about this.

Due to note from boo#964612 -- "You should report to them that they are missing a PKG_CHECK_MODULES call for libnetfilter_queue." -- should I file separate bug-report on redmine-tracker?

Actions

Also available in: Atom PDF