De Vries, Richard wrote:
> I had several issues compiling mod_security 1.9.2 against apache 2.2.0
> on Solaris 9 (sparc), but resolved most of them …. Except one:
>
>
>
> $ /usr/local/apps/apache/bin/apxs -cia mod_security.c
>
> /usr/local/apr/build-1/libtool --silent --mode=compile gcc -prefer-pic
> -DSOLARIS2=9 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -pthreads
> -I/usr/local/apache2/include -I/usr/local/apr/include/apr-1
> -I/usr/local/apr/include/apr-1 -I/usr/local/include -c -o
> mod_security.lo mod_security.c && touch mod_security.slo
>
> mod_security.c: In function `sec_debug_log':
>
> mod_security.c:6132: `__builtin_va_alist' undeclared (first use in this
> function)
>
> mod_security.c:6132: (Each undeclared identifier is reported only once
>
> mod_security.c:6132: for each function it appears in.)
>
> apxs:Error: Command failed with rc=65536
>
> .
>
> Has anyone seen/experienced this error before?
Unfortunately I don't have access to Solaris systems to try to compile
myself. There's no such thing as "__builtin_va_alist" in mod_security.c
but the name is probably coming from an expanded macro "va_list". I don't
have an idea why the macro (from stdarg.h) is incorrectly expanded. Perhaps
"man va_start" could give you an idea.
--
Ivan Ristic, Technical Director
Thinking Stone, http://www.thinkingstone.com
|