A hopefully simpler example or from my perspective, it gets worse :(

cd ~/dev/repos/asf/perl/modperl/trunk/src/modules/perl

cat test.c
#include "mod_perl.h"

int main (int argc, char **argv) {

  unsigned long val;

  fprintf(stderr, "APT => %d\n", APR_HAS_THREADS);
  fprintf(stderr, "T => %d\n", MP_TRACE);

  val = MP_TRACEv_TID_

  return 0;
}

make
cc -I/usr/home/pgollucci/dev/repos/asf/perl/modperl/trunk/src/modules/perl -I/usr/home/pgollucci/dev/repos/asf/perl/modperl/trunk/xs -I/usr/home/pgollucci/dev/apps/httpd-2.0.54/prefork/include -pipe -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -I/usr/home/pgollucci/dev/apps/perl-5.6.2/lib/CORE -DMOD_PERL -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror -DAP_DEBUG -DAP_HAVE_DESIGNATED_INITIALIZER -Wdeclaration-after-statement -DMP_COMPAT_1X -DMP_DEBUG -DMP_TRACE -D_REENTRANT -D_THREAD_SAFE -DAP_DEBUG -ggdb3 -O0 -DPIC -fPIC -c test.c && mv test.o test.lo
test.c: In function `main':
test.c:10: warning: implicit declaration of function `apr_os_thread_current'
test.c:12: error: syntax error before "return"
*** Error code 1

What the hell is setting APR_HAS_THREADS  in that ?



--
END
------------------------------------------------------------
    What doesn't kill us can only make us stronger.
                Nothing is impossible.
                                
Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
  http://www.liquidityservicesinc.com
       http://www.liquidation.com
       http://www.uksurplus.com
       http://www.govliquidation.com
       http://www.gowholesale.com


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

Reply via email to