Hi all,
I have enabled clang compiler with the option "make setclang" under
src/ directory, but it doesn't works.
Errors returned are:
cc -g -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/nsm/ossec\"
-DUSE_OPENSSL -DFreeBSD -DCLEANFULL -DGEOIP -I/usr/local/include
-L/usr/local/lib -lGeoIP -DARGV0=\"md5_op\" -DXML_VAR=\"var\"
-DOSSECHIDS -c md5.c md5_op.c
cc: warning: -lGeoIP: 'linker' input unused
cc: warning: argument unused during compilation: '-L/usr/local/lib'
md5.c:158:27: warning: 'memset' call operates on objects of type
'struct MD5Context' while the size is based on a different type
'struct MD5Context *' [-Wsizeof-pointer-memaccess]
memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */
~~~ ^~~
md5.c:158:27: note: did you mean to dereference the argument to
'sizeof' (and multiply it by the number of elements)?
memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */
^~~
1 warning generated.
ar cru md5_op.a md5_op.o md5.o
ranlib md5_op.a
cc -g -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/nsm/ossec\"
-DUSE_OPENSSL -DFreeBSD -DCLEANFULL -DGEOIP -I/usr/local/include
-L/usr/local/lib -lGeoIP -DARGV0=\"sha1_op\" -DXML_VAR=\"var\"
-DOSSECHIDS -c sha1_op.c
cc: warning: -lGeoIP: 'linker' input unused
cc: warning: argument unused during compilation: '-L/usr/local/lib'
In file included from sha1_op.c:28:
./sha_locl.h:262:2: error: unsupported inline asm: input with type
'unsigned long' matching output with type 'unsigned int'
BODY_00_15( 0,A,B,C,D,E,T,W[ 0]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./sha_locl.h:191:28: note: expanded from macro 'BODY_00_15'
(f)=xi+(e)+K_00_19+ROTATE((a),5)+F_00_19((b),(c),(d)); \
~~~~~~~^~~~~~
./md32_common.h:214:19: note: expanded from macro 'ROTATE'
: "I"(n), "0"(a) \
^
......
In file included from sha1_op.c:28:
./sha_locl.h:271:2: error: unsupported inline asm: input with type
'unsigned long' matching output with type 'unsigned int'
BODY_00_15( 9,D,E,T,A,B,C,W[ 9]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./sha_locl.h:191:28: note: expanded from macro 'BODY_00_15'
(f)=xi+(e)+K_00_19+ROTATE((a),5)+F_00_19((b),(c),(d)); \
~~~~~~~^~~~~~
./md32_common.h:214:19: note: expanded from macro 'ROTATE'
: "I"(n), "0"(a) \
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
*** Error code 1
Stop.
make[2]: stopped in /tmp/i/ossec-hids-2.7.1/src/os_crypto/sha1
*** Error code 1
Stop.
make[1]: stopped in /tmp/i/ossec-hids-2.7.1/src/os_crypto
Error Making os_crypto
*** Error code 1
Stop.
make: stopped in /tmp/i/ossec-hids-2.7.1/src
Error 0x5.
Building error. Unable to finish the installation.
--
---
You received this message because you are subscribed to the Google Groups
"ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.