[Mono-dev] error compiling mod_mono 1.2.5 with apache 1.3

César González cesar at eureka-sistemas.com
Thu Sep 27 04:24:35 EDT 2007


>> Anyway, I have tested mod_mono 1.2.5 with apr 0.9 and change 
>> mod_mono.h to not to include unixd.h (apache 2 file). The error with 
>> these changes is the following :
>>
>> mod_mono.c:99: error: expected specifier-qualifier-list before 
>> 'apr_shm_t'
>> mod_mono.c:121: error: expected specifier-qualifier-list before 
>> 'apr_lockmech_e'
>> mod_mono.c:128: error: 'APR_LOCK_FCNTL' undeclared here (not in a 
>> function)
>>
>> Seems that mod_mono is not compatible with the old api 0.9.
>>     
> This is weird, though. I've just downloaded the apr 0.9.16 tarball and it
> contains the apr_shm.h include file, which defines apr_shm_t and
> apr_proc_mutex.h which contains APR_LOCK_FCNTL. Can you tell me the exact
> (Debian) version of all the packages you tested it with? I will 
> download them
> and see what's inside (I'm installing etch right now, too)
>
>   

First i tried to compile mod_mono 1.2.5 against lastest etch debian 
packages of apache :

ii  apache-dev     1.3.34-4.1     development kit for the Apache webserver
ii  libapr1-dev    1.2.7-8.2      The Apache Portable Runtime Library - 
Development Headers

I got these first error :

mod_mono.h:58:19: error: unixd.h: No such file or directory

If i comment these include line i got :

<command line>:1:1: warning: "LINUX" redefined
<command line>:1:1: warning: this is the location of the previous 
definition
<command line>:1:1: warning: "LINUX" redefined
<command line>:1:1: warning: this is the location of the previous 
definition
In file included from mod_mono.c:35:
mod_mono.h:79:1: warning: "apr_pool_create" redefined
In file included from /usr/include/apr-1.0/apr_shm.h:26,
                from mod_mono.h:55,
                from mod_mono.c:35:
/usr/include/apr-1.0/apr_pools.h:236:1: warning: this is the location of 
the previous definition
In file included from mod_mono.c:35:
mod_mono.h:82:1: warning: "apr_pcalloc" redefined
In file included from /usr/include/apr-1.0/apr_shm.h:26,
                from mod_mono.h:55,
                from mod_mono.c:35:
/usr/include/apr-1.0/apr_pools.h:345:1: warning: this is the location of 
the previous definition
In file included from mod_mono.c:35:
mod_mono.h:112: error: redefinition of typedef 'apr_size_t'


If i compile apr 0.9.6 from sources and compile mod_mono against these 
apr version i got the same error.

Thanks,

César.



More information about the Mono-devel-list mailing list