Project

General

Profile

Actions

Bug #1192

closed

Suricata does not compile on OS X/Clang due to redefinition of string functions

Added by Adam Vandenberg over 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Using this system configuration:
$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: :adamv/homebrew.git
HEAD: cb75d101c0b213b2ca6ae0e60b8df6494acf6125
HOMEBREW_PREFIX: /Users/adamv/.hb
HOMEBREW_CELLAR: /Users/adamv/homebrew/Cellar
CPU: 8-core 64-bit haswell
OS X: 10.9.2-x86_64
Xcode: 5.1.1
CLT: 5.1.0.0.1.1396320587
Clang: 5.1 build 503
X11: 2.7.5 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby

Suricata does not compile with clang as clang provides definitions for strlcat and strlcpy.

To enable compilation with clang, see attached patch.
(Of course, the correct fix would be to detect these two string functions and not provide definitions if they are already present.)


Files

no-strings.diff (1.95 KB) no-strings.diff Adam Vandenberg, 05/15/2014 10:11 PM
Actions

Also available in: Atom PDF