Em Monday 19 December 2005 15:07, Peter Samuelson escreveu:
> [Helio Chissini de Castro]
> > With new libapr ( 1.2.2 ), bindings for perl native compilation breaks.
> > /usr/include/apr-1/apr.h:270: error: syntax error before ???apr_off_t???
> > /usr/include/apr-1/apr.h:270: warning: data definition has no type or
> > storage class
> I don't have an amd64 (or other 64-bit machine), so I can't verify how
> apr installs itself there, but here is my hypothesis:
> 1) Does line 270 of /usr/include/apr-1/apr.h say 'off64_t' (as opposed
> to 'off_t')?
> 2) Does 'apr-1-config --cppflags' mention '-D_LARGEFILE64_SOURCE'?
> If so, the subversion swig compile is somehow failing to use
> `apr-1-config --cppflags`. I do not understand the generated build
> system at all, so I don't know how to pursue this further.
Ok, i noted that new apr provides just "-pthread" on apr-1-config --cflags,
and the required flags to compile comes just on --cppflags, "-DLINUX=2
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE", which isn't available on
A small patch ( attached ) on Makefile.PL.in worked for me, but is hardcoded
locally, and i thnk there's better way to solve.
Thanks for hint
Helio Chissini de Castro
Research and development
Mandriva Brasil Labs
Received on Mon Dec 19 20:10:25 2005
- application/pgp-signature attachment: stored