Actions
Bug #1192
closed
AV
VJ
Suricata does not compile on OS X/Clang due to redefinition of string functions
Bug #1192:
Suricata does not compile on OS X/Clang due to redefinition of string functions
Affected Versions:
Effort:
Difficulty:
Label:
Description
Using this system configuration:
$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: git@github.com: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
Actions