Login | Register
My pages Projects Community openCollabNet

Discussions > dev > [PATCH] Build error from missing APR_STATUS_IS_SUCCESS macro

subcommander
Discussion topic

Back to topic list

[PATCH] Build error from missing APR_STATUS_IS_SUCCESS macro

Author dlr
Full name Daniel Rall
Date 2005-04-26 10:39:29 PDT
Message Using a dev build (trunk) of APR, I get the following error when
building Subcommander on Fedora Core 3:

dlr@anvil:subcommand​er-0.9.0-src$ make
make all-recursive
make[1]: Entering directory `/home/dlr/src/subco​mmander-0.9.0-src'
Making all in util
make[2]: Entering directory `/home/dlr/src/subco​mmander-0.9.0-src/ut​il'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/httpd-2/include
-I/usr/local/httpd-2/include -g -O2 -MT AprException.o -MD -MP -MF
".deps/AprException.Tpo" -c -o AprException.o AprException.cpp; \
then mv -f ".deps/AprException.Tpo" ".deps/AprException.Po"; else rm -f
".deps/AprException.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/httpd-2/include
-I/usr/local/httpd-2/include -g -O2 -MT apr.o -MD -MP -MF
".deps/apr.Tpo" -c -o apr.o apr.cpp; \
then mv -f ".deps/apr.Tpo" ".deps/apr.Po"; else rm -f ".deps/apr.Tpo";
exit 1; fi
apr.cpp: In function `void apr::initialize(int, char**)':
apr.cpp:28: error: `APR_STATUS_IS_SUCCESS' undeclared (first use this
function)
apr.cpp:28: error: (Each undeclared identifier is reported only once for
each function it appears in.)
apr.cpp: In function `apr_pool_t* apr::createPool(apr_pool_t*)':
apr.cpp:45: error: `APR_STATUS_IS_SUCCESS' undeclared (first use this
function)
make[2]: *** [apr.o] Error 1
make[2]: Leaving directory `/home/dlr/src/subco​mmander-0.9.0-src/ut​il'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dlr/src/subco​mmander-0.9.0-src'
make: *** [all] Error 2

Looks like Justin Erenkrantz removed the APR_STATUS_IS_SUCCESS() macro
for the 1.0 release of APR:

http://svn.apache.or​g/viewcvs.cgi/apr/ap​r/trunk/CHANGES?view​=markup

Ryan Bloom and Greg Stein break it down here:

http://www.mail-arch​ive.com/dev at httpd dot ap​ache.org/msg21757.ht​ml

A patch updating the usage of APR's API is attached.
Attachments

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

[PATCH] Build error from missing APR_STATUS_IS_SUCCESS macro dlr Daniel Rall 2005-04-26 10:39:29 PDT
Messages per page: