Hi.

I haven't Solaris available to compile OSSEC, but in view of the code, I 
think you can solve those issues:

generate_reports.c:59: Force casting to integer of getpid():

/*(old)*/ *snprintf**(fname, 255, "/logs/.report-%d.log", getpid());*
/*(new)*/ *snprintf**(fname, 255, "/logs/.report-%d.log", (int)getpid());*

main-server.c:49: Remove the const qualifier:

/*old*/ *int** ssl_error(const SSL* ssl, int ret)*
/*new*/ *int** ssl_error(SSL* ssl, int ret)*

Because of the compiler version, it's possible that new similar problems 
appear.

Hope it helps.
Kind regards.

Victor Fernandez.


On Wednesday, July 20, 2016 at 1:04:04 AM UTC-7, Eero Volotinen wrote:
>
> Tried compiling ossec 2.8.3 under Solaris/x86 5.10 and it worked. Any of 
> these messages are not errors, they are just warnings.
>
> Please provide complete output from compiling.
>
> Eero
>
> 2016-07-19 22:28 GMT+03:00 Kumar Mg <mkg...@gmail.com <javascript:>>:
>
>> Hi, 
>>
>> We also have the agent compilation issue on the Solaris platform with the 
>> 2.8.3 version of code. How can we fix the "Checking for 
>> attribute(visibility) support... No"? 
>>
>> For time being we updated the lua* conf updated to remove the warning 
>> message, however the below warning are still showing up. 
>>
>>
>> *** Making zlib (by Jean-loup Gailly and Mark Adler)  *** 
>> cd zlib-1.2.8/; ./configure; make libz.a;
>> Checking for shared library support...
>> Building shared library libz.so.1.2.8 with /usr/sfw/bin/gcc.
>> Checking for off64_t... Yes.
>> Checking for fseeko... Yes.
>> Checking for strerror... Yes.
>> Checking for unistd.h... Yes.
>> Checking for stdarg.h... Yes.
>> Checking whether to use vs[n]printf() or s[n]printf()... using 
>> vs[n]printf().
>> Checking for vsnprintf() in stdio.h... Yes.
>> Checking for return value of vsnprintf()... Yes.
>> Checking for attribute(visibility) support... No.
>>
>>
>>
>> *** Making monitord *** 
>>
>> /usr/sfw/bin/gcc -g -Wall -I../ -I../headers  -DCLIENT -DUSE_OPENSSL 
>> -DSOLARIS -DHIGHFIRST      -DARGV0=\"ossec-monitord\" -DOSSECHIDS -lsocket 
>> -lnsl -lresolv compress_log.c main.c manage_files.c monitor_agents.c 
>> monitord.c sign_log.c generate_reports.c ../os_maild/sendcustomemail.c 
>> ../config/lib_config.a ../shared/lib_shared.a ../os_net/os_net.a 
>> ../os_regex/os_regex.a ../os_xml/os_xml.a ../os_crypto/os_crypto.a 
>> ../os_zlib/os_zlib.c ../external/libz.a -o ossec-monitord
>> generate_reports.c: In function `generate_reports':
>> generate_reports.c:59: warning: int format, pid_t arg (arg 4)
>> /usr/sfw/bin/gcc -g -Wall -I../ -I../headers  -DCLIENT -DUSE_OPENSSL 
>> -DSOLARIS -DHIGHFIRST      -DARGV0=\"ossec-monitord\" -DOSSECHIDS -lsocket 
>> -lnsl -lresolv -UARGV0 -DARGV0=\"ossec-reportd\" report.c 
>> ../config/lib_config.a ../shared/lib_shared.a ../os_net/os_net.a 
>> ../os_regex/os_regex.a ../os_xml/os_xml.a ../os_crypto/os_crypto.a 
>> ../os_zlib/os_zlib.c ../external/libz.a -o ossec-reportd
>>
>>
>> *** Making os_auth *** 
>>
>> /usr/sfw/bin/gcc -g -Wall -I../ -I../headers  -DCLIENT -DUSE_OPENSSL 
>> -DSOLARIS -DHIGHFIRST      -DARGV0=\"ossec-authd\" -DOSSECHIDS -lsocket 
>> -lnsl -lresolv main-server.c ssl.c ../addagent/validate.c 
>> ../config/lib_config.a ../shared/lib_shared.a ../os_net/os_net.a 
>> ../os_regex/os_regex.a ../os_crypto/os_crypto.a ../os_zlib/os_zlib.c 
>> ../external/libz.a -lssl -lcrypto -o ossec-authd
>> main-server.c: In function `ssl_error':
>> main-server.c:53: warning: passing arg 1 of `SSL_get_error' discards 
>> qualifiers from pointer target type
>> /usr/sfw/bin/gcc -g -Wall -I../ -I../headers  -DCLIENT -DUSE_OPENSSL 
>> -DSOLARIS -DHIGHFIRST      -DARGV0=\"ossec-authd\" -DOSSECHIDS -lsocket 
>> -lnsl -lresolv main-client.c ssl.c ../addagent/validate.c 
>> ../config/lib_config.a ../shared/lib_shared.a ../os_net/os_net.a 
>> ../os_regex/os_regex.a ../os_crypto/os_crypto.a ../os_zlib/os_zlib.c 
>> ../external/libz.a -lssl -lcrypto -o agent-auth
>>
>>
>>
>> If any one can shower some light on this, that will be great. 
>>
>>
>> Thanks
>> Kumar
>>
>> -- 
>>
>> --- 
>> 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 ossec-list+...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 

--- 
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 ossec-list+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to