[Oisf-devel] suricata --enable-pfring config error

Martin Holste mcholste at gmail.com
Wed Sep 26 22:48:41 UTC 2012


The libpfring.so is telling you that it doesn't have the function
__printf_chk, so you need to find the library that provides that.  A
quick Google suggests it might be stdio2.

On Wed, Sep 26, 2012 at 12:39 PM, Peter Manev <petermanev at gmail.com> wrote:
> Hi,
> did you follow the guide here:
> https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Installation_from_GIT_with_PF_RING_on_Ubuntu_server_1204
>
> and i meant pointing to the pfring libraries/includes:
> ./configure --enable-pfring
> --with-libpfring-includes=/usr/local/pfring/include \
> --with-libpfring-libraries=/usr/local/pfring/lib
> --with-libpcap-includes=/usr/local/pfring/include \
> --with-libpcap-libraries=/usr/local/pfring/lib
>
>
>
> thank you
>
>
>
> On Wed, Sep 26, 2012 at 7:32 PM, Peter Manev <petermanev at gmail.com> wrote:
>>
>> Hi,
>>
>> did you try to pass the libraries to configure? ..."with pfring lib" =....
>> thanks
>>
>> On Wed, Sep 26, 2012 at 7:29 PM, NetDoctor <csyimkor at gmail.com> wrote:
>>>
>>> Hello,
>>>
>>>
>>>
>>> When I configure with –enable-pfring, I get the following error:
>>>
>>> -----------------------------------------------
>>>
>>> checking for pfring_open in -lpfring... no
>>>
>>>
>>>
>>>    ERROR! --enable-pfring was passed but the library was not found or
>>> version is >4, go get it
>>>
>>>
>>>
>>> I checked the config.log file.
>>>
>>> -----------------------------------------------
>>>
>>> configure:15253: checking for pfring_open in -lpfring
>>>
>>> configure:15278:
>>> /buildroot-2012.08/output/host/usr/bin/i686-unknown-linux-uclibc-gcc
>>> --sysroot=/buildroot-2012.08/output/staging -o conftest  -DRELEASE -Wextra
>>> -Wall -fno-strict-aliasing -fno-tree-pre -Wno-unused-parameter -std=gnu99
>>> -march=native -DNFQ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE
>>> -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DHAVE_LIBNET_ICMPV6_UNREACH
>>> -DHAVE_PFRING  -I/buildroot-2012.08/output/staging/usr/include
>>> -L/buildroot-2012.08/output/staging/usr/lib conftest.c -lpfring -lpcap -lnet
>>> -lnetfilter_queue -lnfnetlink -lpthread -lyaml -lpcre
>>> >&5/buildroot-2012.08/output/staging/usr/lib/libnet.so: warning:
>>> gethostbyaddr is obsolescent, use getaddrinfo()
>>> instead./buildroot-2012.08/output/staging/usr/lib/libpcap.so: warning:
>>> gethostbyname is obsolescent, use getnameinfo() instead.
>>>
>>> /buildroot-2012.08/output/staging/usr/lib/libpfring.so: undefined
>>> reference to
>>> `__fprintf_chk'/buildroot-2012.08/output/staging/usr/lib/libpfring.so:
>>> undefined reference to
>>> `__printf_chk'/buildroot-2012.08/output/staging/usr/lib/libpfring.so:
>>> undefined reference to
>>> `__snprintf_chk'/buildroot-2012.08/output/staging/usr/lib/libpfring.so:
>>> undefined reference to `__sprintf_chk'collect2: ld returned 1 exit
>>> statusconfigure:15278: $? = 1
>>>
>>>
>>>
>>> I use PF-RING 5.4.6 version.
>>>
>>> I don’t know what I do and what the error messages mean.
>>>
>>> Please let me know how to fix it.
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>> _______________________________________________
>>> Oisf-devel mailing list
>>> Oisf-devel at openinfosecfoundation.org
>>> https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel
>>
>>
>>
>>
>> --
>> Regards,
>> Peter Manev
>>
>
>
>
> --
> Regards,
> Peter Manev
>
>
> _______________________________________________
> Oisf-devel mailing list
> Oisf-devel at openinfosecfoundation.org
> https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel



More information about the Oisf-devel mailing list