Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587548 - =net-analyzer/suricata-3.1 - ERROR! libhiredis library not found
Summary: =net-analyzer/suricata-3.1 - ERROR! libhiredis library not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sławek Lis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-30 04:40 UTC by Mikhail Kurinnoi
Modified: 2016-07-02 14:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Kurinnoi 2016-06-30 04:40:21 UTC
Probably, dev-libs/hiredis should be added into DEPEND. I do not attach all logs, just last lines of "emerge" output, I sure you will see the point of issue:

...
checking magic.h usability... yes
checking magic.h presence... yes
checking for magic.h... yes
checking for magic_open in -lmagic... yes
checking hiredis/hiredis.h usability... no
checking hiredis/hiredis.h presence... no
checking for hiredis/hiredis.h... no

   ERROR!  libhiredis library not found, go get it
   from https://github.com/redis/hiredis or your distribution:

   Ubuntu: apt-get install libhiredis-dev
   Fedora: yum install libhiredis-devel


!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-analyzer/suricata-3.1/work/suricata-3.1/config.log
 * ERROR: net-analyzer/suricata-3.1::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  133:  Called src_configure
 *             environment, line 3085:  Called econf 'LIBS=' '--localstatedir=/var/' '--enable-non-bundled-htp' '--enable-af-packet' '--enable-detection' '--enable-nfqueue' '--disable-hiredis' '--disable-coccinelle' '--disable-unittests' '--disable-unix-socket' '--enable-gccprotect'
 *        phase-helpers.sh, line  662:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *   		die "$@"
 * 
 * If you need support, post the output of `emerge --info '=net-analyzer/suricata-3.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-analyzer/suricata-3.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-analyzer/suricata-3.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/suricata-3.1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-analyzer/suricata-3.1/work/suricata-3.1'
 * S: '/var/tmp/portage/net-analyzer/suricata-3.1/work/suricata-3.1'


Reproducible: Always
Comment 1 Mikhail Kurinnoi 2016-06-30 05:54:02 UTC
I just highlight from first messate. I have '--disable-hiredis' (don't use USE 'redis') but looks like suricata 3.1 need dev-libs/hiredis anyway.
Comment 2 Daniel M. Weeks 2016-06-30 14:10:11 UTC
The way the option is handled by upstream is at best non-standard and at worst broken. The presence of either --enable-hiredis or --disable-hiredis on configure causes it to check for the library and fail if it isn't present. The quickest work-around would be to throw a conditional around the use_enable so it's only added to the configure command if it's in USE.
Comment 3 Daniel M. Weeks 2016-06-30 14:21:21 UTC
See upstream issue: https://redmine.openinfosecfoundation.org/issues/1835
Comment 4 Sławek Lis (RETIRED) gentoo-dev 2016-06-30 19:04:02 UTC
Should be fixes now. Let me know if it's working for you.
Comment 5 Mikhail Kurinnoi 2016-07-02 05:27:16 UTC
I can confirm, this issue was fixed.