Hi Bjarne,
After investigating a bit, the problem is definitly not related to
"warc-tools" at all.
The issue is due to incompatible values for the constant
"_POSIX_C_SOURCE"
in two diffrents C header files on your system.
* The first definition is in file "/usr/include/features.h" (line 190):
# define _POSIX_SOURCE 1
# if defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) < 500
# define _POSIX_C_SOURCE 2
# else
# define _POSIX_C_SOURCE 199506L
# endif
#endif
* The second one is in file "/usr/include/python2.4/pyconfig.h" (line
942).
/* Define to activate features from IEEE Stds 1003.1-2001 */
#define _POSIX_C_SOURCE 200112L
So a quick fix is to set "_POSIX_C_SOURCE" in "/usr/include/python2.4/
pyconfig.h"
to be exactly the same as in your "/usr/include/features.h".
Really simple !!!
Anyway, It's Python bug which needs to be reported to the Python's
mailinglist. But It seems
that this affect only some Python versions.
cheers
Younès
Le 10 oct. 08 à 23:17, Bjarne Andersen a écrit :
> Hi there.
>
> I upgraded to svn version 203 - now I can't compile the warc-tools
> project
>
> make goes fine
> make install goes:
>
> gcc -I. -Ilib/private -Ilib/public -Ilib/private/plugin/gzip -Ilib/
> private/plugin/cunit -Ilib/private/pl
> b/private/plugin/event -Ilib/private/plugin/event/compat -Ilib/
> private/plugin/regex -Ilib/private/plugin
> rivate/os -Ilib/private/plugin/event/os/linux -Ilib/private/plugin/
> cunit/os/linux -Wall -W -Wunused -ans
> rror -Wno-long-long -Wunused-function -std=gnu89 -
> D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FI
> c-errors -Wextra -fPIC -DPIC -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -
> DHAVE_ALLOCA_H=1 -DEBUG=1 -I/usr/includ
> lib/private/plugin/python/wrapper_wbloc.c -o lib/private/plugin/
> python/wrapper_wbloc.o