hsiehsh168168 / warc-tools

Automatically exported from code.google.com/p/warc-tools
0 stars 0 forks source link

lib/private/plugin/python/wrapper_wbloc.c - error: "_POSIX_C_SOURCE" redefined #107

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
make python ends with:
error: "_POSIX_C_SOURCE" redefined 
(i'm not exactly sure what the 'dependencies' are for this error; python2.6, 
x86_64, ...?)

--- 8< ---
In file included from /usr/include/python2.6/Python.h:8,
                 from lib/private/plugin/python/wrapper_wbloc.h:43,
                 from lib/private/plugin/python/wrapper_wbloc.c:39:
/usr/include/python2.6/pyconfig.h:1031:1: error: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/assert.h:37,
                 from lib/private/os/wcsafe.h:49,
                 from lib/public/wmisc.h:41,
                 from lib/private/plugin/python/wrapper_wbloc.c:36:
/usr/include/features.h:210:1: error: this is the location of the previous 
definition
--- 8< ---

What steps will reproduce the problem?
1. svn co source 
2. make python

What is the expected output? What do you see instead?
make should finish successfully

What version of the product are you using? On what operating system?
r245

Original issue reported on code.google.com by e.w.ste...@gmail.com on 18 Feb 2011 at 11:45

GoogleCodeExporter commented 8 years ago
following 
http://bytes.com/topic/python/answers/30009-warning-_posix_c_source-redefined 
the attached patch solves the problem. 

Original comment by e.w.ste...@gmail.com on 18 Feb 2011 at 11:47

Attachments: