Hi Felipe,
I have a similar compiler error when building on FreeBSD. The error remains after applying the patch. For completeness:
msc_status_engine.c: In function 'msc_status_engine_machine_name':
msc_status_engine.c:137: error: storage size of 'u' isn't known
*** [mod_security2_la-msc_status_engine.lo] Error code 1
FreeBSD does have utsname.h. You can find the man page here:
http://www.freebsd.org/cgi/man.cgi?query=uname&sektion=3&n=1
If necessary, my macros are at: http://lf.ms/macros.txt
Glad to help so let us know if we should retry.
Kind regards,
WH
On 02 Apr 2014, at 15:25, Felipe Costa <FC...@tr...> wrote:
> Probably your cross compiler was not setting this macro. I have changed it to:
> #if (defined(__linux__) || defined(__gnu_linux__))
> …
> #endif
>
> This sound more `fail proof`. The modification is available at the branch: cross_test
>
> https://github.com/SpiderLabs/ModSecurity/tree/cross_test
>
> Can you check if it is working fine?
>
> If not, can you send me the list of pre-defined macros of your compiler? Easy to get the list:
>
> touch /tmp/somefile.c
> cpp -dM /tmp/somefile.c
--
Walter Hop | wa...@li... | PGP key: https://lifeforms.nl/pgp
|