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

NetDoctor csyimkor at gmail.com
Thu Sep 27 13:34:08 UTC 2012


I already configured
--with-libpfring-includes=/buildroot-2012.08/output/staging/usr/include \
--with-libpfring-libraries=/buildroot-2012.08/output/staging/usr/lib"
The error was the same.
/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'

Pf_ring shared library refers to __fprintf_chk.
I use uClibc version 0.9.33.
uClibc does not have the __fprintf_chk function. 
When I looked for the function via Google, the old uClibc seemed to have the
function.
So I think the problem is not related with Suricata.  
The problem may be in the cross-compiling of pf_ring user library. 
I am trying to find how to cross-compile pf_ring user library. 
Please let me know if anyone knows the method out there.

Thanks,
-----Original Message-----
From: oisf-devel-bounces at openinfosecfoundation.org
[mailto:oisf-devel-bounces at openinfosecfoundation.org] On Behalf Of Victor
Julien
Sent: Thursday, September 27, 2012 4:16 PM
To: oisf-devel at openinfosecfoundation.org
Subject: Re: [Oisf-devel] suricata --enable-pfring config error

I notice you use i686-unknown-linux-uclibc-gcc. Suricata is untested with
that, will be interesting to see if it works at all.

On 09/27/2012 12:48 AM, Martin Holste wrote:
> 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/Inst
>> allation_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-gc
>>>> c --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
> _______________________________________________
> Oisf-devel mailing list
> Oisf-devel at openinfosecfoundation.org
> https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel
> 


--
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------

_______________________________________________
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