httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schwenker, Stephen" <SSchwen...@thestar.ca>
Subject RE: Apache 2.0 -> 2.2 Module upgrade...errors
Date Thu, 25 May 2006 19:58:46 GMT
Thanks Paul,

The extra --cppflags did it.  It didn't work with just --cflags on it's
own.

Thank you,


Steve.

-----Original Message-----
From: Paul Querna [mailto:chip@force-elite.com] 
Sent: Thursday, May 25, 2006 1:09 PM
To: dev@httpd.apache.org
Subject: Re: Apache 2.0 -> 2.2 Module upgrade...errors

Garrett Rooney wrote:
> On 5/25/06, Schwenker, Stephen <SSchwenker@thestar.ca> wrote:
>>
>>
>> Hello,
>>
>> I'm trying to upgrade a 3rd party module from 2.0 to 2.2 and I'm 
>> getting the following errors.  Can anyone help me figure out what the

>> issue is?
>> I'm not
>> sure where to start.
>>
>> Thank you,
>>
>>
>> Steve.
>>
>>
>>
>>
>>
>>
>> gcc -DHAVE_CONFIG_H -g -O2 -pthread -fPIC 
>> -DUSING_MIBII_SYSORTABLE_MODULE -I..
>> -I/opt/jboss/agent-jboss-1.2.29/product_connectors/snmp-jboss-1.2.29/
>> snmp_common/ucd-snmp
>>
>> -I/opt/jboss/agent-jboss-1.2.29/product_connectors/snmp-jboss-1.2.29/
>> snmp_common/ucd-snmp/snmplib
>>
>> -I/opt/jboss/agent-jboss-1.2.29/product_connectors/snmp-jboss-1.2.29/
>> snmp_common/ucd-snmp/agent
>>
>> -I/opt/jboss/agent-jboss-1.2.29/product_connectors/snmp-jboss-1.2.29/
>> snmp_common/sdbm
>>
>> -I/usr/local/apache222/include -I/usr/local/apache222/include -c 
>> apache-status-process.c -fPIC -DPIC -o .libs/apache-status-process.o
>>
>> In file included from
>> /usr/local/apache222/include/ap_config.h:25,
>>
>> from /usr/local/apache222/include/httpd.h:43,
>>
>> from apache-status-process.c:10:
>>
>> /usr/local/apache222/include/apr.h:270: error: syntax error before 
>> "apr_off_t"
> 
> This implies that you're not passing the correct CFLAGS for the APR 
> headers.  apr-1-config --cflags will show them to you, although if 
> you're building with apxs they should already be included for you.

Actually this problem normally from missing the CPPFLAGS.

use: apr-1-config --cppflags --cflags

-Paul

Mime
View raw message