Project

General

Profile

Bug #3232

Static build with pcap fails

Added by Fabrice Fontaine over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
low
Difficulty:
low
Label:
Needs backport

Description

pcap can optionally depends on nl-3 resulting in build failure due to all AC_CHECK_LIB calls failing when building statically.
pkg-config should be used to retrieve those dependencies.

Pull request is available at https://github.com/OISF/suricata/pull/4124.


Related issues

Copied to Bug #3326: Static build with pcap fails (4.1.x)ClosedVictor JulienActions
#1

Updated by Victor Julien over 1 year ago

  • Assignee set to Community Ticket
  • Target version set to TBD

I'm not against fixing this, but the referenced PR isn't acceptable. It breaks almost all the checks both appveyor and travis do, so something isn't right about it.

#2

Updated by Fabrice Fontaine over 1 year ago

OK thanks for your quick reply, I know what is wrong. Default action-if-not-found of PKG_CHECK_MODULES is to end with an error. I'll fix this mistake by replacing [] to [;] in the next few hours.

#3

Updated by Fabrice Fontaine over 1 year ago

Here is the new PR: https://github.com/OISF/suricata/pull/4293
The former one couldn't be updated as I deleted the repository last month.

#4

Updated by Victor Julien over 1 year ago

  • Status changed from New to Closed
  • Assignee changed from Community Ticket to Fabrice Fontaine
  • Target version changed from TBD to 5.0.0
#5

Updated by Victor Julien over 1 year ago

  • Copied to Bug #3326: Static build with pcap fails (4.1.x) added

Also available in: Atom PDF