Philip M. Gollucci wrote:
Hi, I'm stumped here, so here comes a lot of information and description:
[...]
modperl_util.c: In function `modperl_perl_call_list':
modperl_util.c:474: warning: implicit declaration of function `apr_os_thread_current'
[...]
The macro in question here is MP_TRACEv_TID
from modperl_util.h

#if defined(MP_TRACE) && defined(APR_HAS_THREADS)
#define MP_TRACEf_TID   "/tid 0x%lx"
#define MP_TRACEv_TID   (unsigned long)apr_os_thread_current()
[...]
This code is correct as it stands. APR_HAS_THREADS should be 0
but yet I'm in the if not the else.

How ?

I know you could do something like:

#if defined(APR_HAS_THREADS)
#error "shouldn't be set"
#endif

but I'm not sure how to trace the origin of that setting

I can take this a step father and add to my gcc opts in the Makefile
-nostdinc -I-
before all the -I arguments.

 From my FreeBSD's gcc manpage
-nostdinc
[...]
So now, I can gaurantee without exception that _only_ the -I directories listed above are searched; thus limiting my chances for mishap father, but to no avail!

I'd just check the contents of those include directories?

I will go one father then even that
su -
grep -R "defined APR_HAS_THREADS" /*

shouldn't that be 'define' and not 'defined'? what if some header setting it has spaces between two words?

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://mailchannels.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to