2015-05-31 2:04 GMT+02:00 Thomas D. <[email protected]>:
> Hi,
>
> Rainer wrote:
>> While all looks well, I am now at a stumbling point. I tried to use
>> the memory sanitizer. However, it's doc page
>>
>> http://clang.llvm.org/docs/MemorySanitizer.html
>>
>> says: "The MemorySanitizer run-time library should be linked to the
>> final executable, so make sure to use clang (not ld) for the final
>> link step."
>>
>> I did not find any instructions to do this with autotools. So I went
>> ahead and set LD=clang. This passed the configure and make step,
>> HOWEVER, there are no binaries build for the modules, and so rsyslog
>> cannot start.
>
> If you just want to use clang's address sanitizer shouldn't it be enough to
> add "-fsanitize=address" to CFLAGS, CXXFLAGS *and* LDFLAGS?

I am puzzled now... I tried to do that today, just to see that
configure at all doesn't work as soon as the option is added to CFLAGS
(log after my sig). I am pretty sure that on the *same system* I could
build, it "just" errored out when I tried to execute (something about
"symbolizer not initialized", but I don't remember 100%). I should
mention that when I call clang manually on that same system,
everything works as expected.

Help is appreciated.

Rainer

configure:3984: checking whether the C compiler works
configure:4006: clang -g -W -Wall -Wformat-security -Wshadow
-Wcast-align -Wpointer-arith -Wmissing-format-attribute
-sanitze=address   conftest.c  >&5
clang: error: unknown argument: '-sanitze=address'
configure:4010: $? = 1
configure:4048: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "rsyslog"
| #define PACKAGE_TARNAME "rsyslog"
| #define PACKAGE_VERSION "8.11.0.master"
| #define PACKAGE_STRING "rsyslog 8.11.0.master"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "rsyslog"
| #define VERSION "8.11.0.master"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:4053: error: in `/home/rger/proj/rsyslog':
configure:4055: error: C compiler cannot create executables
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to