Code Monkey home page Code Monkey logo

pyflowtools's People

Contributors

keszybz avatar theraphim avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

keszybz ricosr

pyflowtools's Issues

gcc warning about a bug

flowtools.c: In function ‘FlowPDU_IsAdjacent_Helper’:
flowtools.c:667:21: warning: self-comparison always evaluates to true [-Wtautological-compare]
     (o2->unix_nsecs <= o2->unix_nsecs);
                     ^~

Build error on 2.6.32-22 Ubuntu SMPx86_64

What steps will reproduce the problem?
1. Download, untar
2. python setup.py build_ext -I /usr/include/ -L /usr/lib/
3.
running build_ext
building 'flowtools' extension
creating build
creating build/temp.linux-x86_64-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/ -I/usr/include/python2.6 -c
flowtools.c -o build/temp.linux-x86_64-2.6/flowtools.o
flowtools.c:3:20: error: Python.h: No such file or directory
flowtools.c:4:26: error: structmember.h: No such file or directory
flowtools.c:13: error: expected specifier-qualifier-list before 
‘PyObject_HEAD’
flowtools.c:27: error: expected specifier-qualifier-list before 
‘PyObject_HEAD’
flowtools.c:35: error: expected specifier-qualifier-list before 
‘PyObject_HEAD’
flowtools.c:46: error: expected specifier-qualifier-list before 
‘PyObject_HEAD’
flowtools.c:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘FlowPDUType’
flowtools.c:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:71: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘FlowObjectGS’
flowtools.c:120: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:121: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:126: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:127: error: expected declaration specifiers or ‘...’ before
‘PyObject’
flowtools.c:127: error: expected declaration specifiers or ‘...’ before
‘PyObject’
flowtools.c:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:130: error: array type has incomplete element type
flowtools.c:131: error: ‘PyCFunction’ undeclared here (not in a function)
flowtools.c:131: error: expected ‘}’ before ‘FlowSetObject_write’
flowtools.c:136: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘FlowSetType’
flowtools.c:177: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:179: error: array type has incomplete element type
flowtools.c:180: error: expected ‘}’ before ‘FlowObjectGetID’
flowtools.c:184: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘FlowType’
flowtools.c:228: error: expected declaration specifiers or ‘...’ before
‘PyObject’
flowtools.c:228: error: expected declaration specifiers or ‘...’ before
‘PyObject’
flowtools.c: In function ‘FlowSet_init’:
flowtools.c:235: error: ‘PyObject’ undeclared (first use in this function)
flowtools.c:235: error: (Each undeclared identifier is reported only once
flowtools.c:235: error: for each function it appears in.)
flowtools.c:235: error: ‘for_writing’ undeclared (first use in this 
function)
flowtools.c:242: warning: implicit declaration of function
‘PyArg_ParseTupleAndKeywords’
flowtools.c:242: error: ‘args’ undeclared (first use in this function)
flowtools.c:242: error: ‘kwds’ undeclared (first use in this function)
flowtools.c:245: warning: implicit declaration of function ‘PyBool_Check’
flowtools.c:245: error: ‘Py_True’ undeclared (first use in this function)
flowtools.c:248: warning: implicit declaration of function ‘strcmp’
flowtools.c:250: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in
this function)
flowtools.c:251: error: expected ‘;’ before ‘self’
flowtools.c:252: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in
this function)
flowtools.c:254: error: expected ‘;’ before ‘if’
flowtools.c:261: error: expected ‘;’ before ‘res’
flowtools.c:265: error: expected ‘;’ before ‘if’
flowtools.c:274: error: expected ‘;’ before ‘if’
flowtools.c:238: warning: unused variable ‘res’
flowtools.c:237: warning: unused variable ‘version’
flowtools.c: In function ‘FlowSetObjectDelete’:
flowtools.c:297: error: ‘FlowSetObject’ has no member named
‘ftio_init_complete’
flowtools.c:298: error: ‘FlowSetObject’ has no member named ‘io’
flowtools.c:303: error: ‘FlowSetObject’ has no member named ‘io’
flowtools.c:303: error: ‘FlowSetObject’ has no member named ‘nflows’
flowtools.c:306: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in
this function)
flowtools.c:307: error: expected ‘;’ before ‘ftio_write_header’
flowtools.c:308: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in
this function)
flowtools.c:309: error: expected ‘;’ before ‘}’ token
flowtools.c:312: error: expected ‘;’ before ‘ftio_close’
flowtools.c:314: error: expected ‘;’ before ‘}’ token
flowtools.c:316: error: ‘FlowSetObject’ has no member named ‘fd’
flowtools.c:318: error: expected ‘;’ before ‘close’
flowtools.c:320: error: expected ‘;’ before ‘}’ token
flowtools.c:322: error: ‘FlowSetObject’ has no member named ‘ob_type’
flowtools.c: At top level:
flowtools.c:325: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:336: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:368: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c: In function ‘FlowObjectDelete’:
flowtools.c:409: warning: implicit declaration of function ‘Py_XDECREF’
flowtools.c:409: error: ‘FlowObject’ has no member named ‘parent’
flowtools.c:410: error: ‘FlowObject’ has no member named ‘ob_type’
flowtools.c: At top level:
flowtools.c:415: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:451: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:494: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:500: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c: In function ‘FlowPDUIter_Delete’:
flowtools.c:527: error: ‘FlowPDUIterObject’ has no member named ‘pdu’
flowtools.c:528: error: ‘FlowPDUIterObject’ has no member named 
‘ob_type’
flowtools.c: At top level:
flowtools.c:532: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘FlowPDUIterType’
flowtools.c:573: error: expected declaration specifiers or ‘...’ before
‘PyObject’
flowtools.c:573: error: expected declaration specifiers or ‘...’ before
‘PyObject’
flowtools.c: In function ‘FlowPDU_init’:
flowtools.c:586: error: ‘args’ undeclared (first use in this function)
flowtools.c:586: error: ‘kwds’ undeclared (first use in this function)
flowtools.c:589: warning: implicit declaration of function ‘bzero’
flowtools.c:589: warning: incompatible implicit declaration of built-in
function ‘bzero’
flowtools.c:589: error: ‘FlowPDUObject’ has no member named ‘ftpdu’
flowtools.c:589: error: ‘FlowPDUObject’ has no member named ‘ftpdu’
flowtools.c:590: warning: implicit declaration of function ‘memcpy’
flowtools.c:590: warning: incompatible implicit declaration of built-in
function ‘memcpy’
flowtools.c:590: error: ‘FlowPDUObject’ has no member named ‘ftpdu’
flowtools.c:592: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in
this function)
flowtools.c:594: error: expected ‘;’ before ‘self’
flowtools.c:595: error: ‘FlowPDUObject’ has no member named ‘ftpdu’
flowtools.c:596: error: ‘FlowPDUObject’ has no member named ‘ftpdu’
flowtools.c:598: error: ‘FlowPDUObject’ has no member named ‘ftpdu’
flowtools.c:601: error: ‘FlowPDUObject’ has no member named ‘ftpdu’
flowtools.c:603: error: ‘FlowPDUObject’ has no member named ‘version’
flowtools.c:605: error: ‘FlowPDUObject’ has no member named ‘sequence’
flowtools.c:606: error: ‘FlowPDUObject’ has no member named ‘count’
flowtools.c:608: error: ‘FlowPDUObject’ has no member named ‘sysUpTime’
flowtools.c:609: error: ‘FlowPDUObject’ has no member named ‘unix_secs’
flowtools.c:610: error: ‘FlowPDUObject’ has no member named ‘unix_nsecs’
flowtools.c:613: error: ‘FlowPDUObject’ has no member named ‘sequence’
flowtools.c:613: error: ‘FlowPDUObject’ has no member named ‘sequence’
flowtools.c:613: error: ‘FlowPDUObject’ has no member named ‘sequence’
flowtools.c:613: error: ‘FlowPDUObject’ has no member named ‘sequence’
flowtools.c:613: error: ‘FlowPDUObject’ has no member named ‘sequence’
flowtools.c:614: error: ‘FlowPDUObject’ has no member named ‘count’
flowtools.c:614: error: ‘FlowPDUObject’ has no member named ‘count’
flowtools.c:614: error: ‘FlowPDUObject’ has no member named ‘count’
flowtools.c:615: error: ‘FlowPDUObject’ has no member named ‘version’
flowtools.c:615: error: ‘FlowPDUObject’ has no member named ‘version’
flowtools.c:615: error: ‘FlowPDUObject’ has no member named ‘version’
flowtools.c:617: error: ‘FlowPDUObject’ has no member named ‘sysUpTime’
flowtools.c:617: error: ‘FlowPDUObject’ has no member named ‘sysUpTime’
flowtools.c:617: error: ‘FlowPDUObject’ has no member named ‘sysUpTime’
flowtools.c:617: error: ‘FlowPDUObject’ has no member named ‘sysUpTime’
flowtools.c:617: error: ‘FlowPDUObject’ has no member named ‘sysUpTime’
flowtools.c:618: error: ‘FlowPDUObject’ has no member named ‘unix_secs’
flowtools.c:618: error: ‘FlowPDUObject’ has no member named ‘unix_secs’
flowtools.c:618: error: ‘FlowPDUObject’ has no member named ‘unix_secs’
flowtools.c:618: error: ‘FlowPDUObject’ has no member named ‘unix_secs’
flowtools.c:618: error: ‘FlowPDUObject’ has no member named ‘unix_secs’
flowtools.c:619: error: ‘FlowPDUObject’ has no member named ‘unix_nsecs’
flowtools.c:619: error: ‘FlowPDUObject’ has no member named ‘unix_nsecs’
flowtools.c:619: error: ‘FlowPDUObject’ has no member named ‘unix_nsecs’
flowtools.c:619: error: ‘FlowPDUObject’ has no member named ‘unix_nsecs’
flowtools.c:619: error: ‘FlowPDUObject’ has no member named ‘unix_nsecs’
flowtools.c:622: error: ‘FlowPDUObject’ has no member named ‘length’
flowtools.c:622: error: ‘FlowPDUObject’ has no member named ‘ftpdu’
flowtools.c:624: error: ‘FlowPDUObject’ has no member named ‘xfield’
flowtools.c:624: error: ‘FlowPDUObject’ has no member named ‘ftpdu’
flowtools.c:625: error: ‘FlowPDUObject’ has no member named ‘offsets’
flowtools.c:625: error: ‘FlowPDUObject’ has no member named ‘ftpdu’
flowtools.c:628: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in
this function)
flowtools.c:630: error: expected ‘;’ before ‘if’
flowtools.c: At top level:
flowtools.c:636: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:648: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c: In function ‘FlowPDU_IsAdjacent_Helper’:
flowtools.c:654: error: ‘FlowPDUObject’ has no member named ‘sequence’
flowtools.c:654: error: ‘FlowPDUObject’ has no member named ‘count’
flowtools.c:654: error: ‘FlowPDUObject’ has no member named ‘sequence’
flowtools.c:655: error: ‘FlowPDUObject’ has no member named ‘sysUpTime’
flowtools.c:655: error: ‘FlowPDUObject’ has no member named ‘sysUpTime’
flowtools.c:655: error: ‘FlowPDUObject’ has no member named ‘unix_secs’
flowtools.c:655: error: ‘FlowPDUObject’ has no member named ‘unix_secs’
flowtools.c:656: error: ‘FlowPDUObject’ has no member named ‘unix_nsecs’
flowtools.c:656: error: ‘FlowPDUObject’ has no member named ‘unix_nsecs’
flowtools.c: At top level:
flowtools.c:659: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:687: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c:718: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘*’ token
flowtools.c: In function ‘FlowPDU_Delete’:
flowtools.c:729: error: ‘FlowPDUObject’ has no member named ‘ob_type’
flowtools.c: At top level:
flowtools.c:732: error: array type has incomplete element type
flowtools.c:733: error: ‘T_INT’ undeclared here (not in a function)
flowtools.c:733: error: ‘FlowPDUObject’ has no member named ‘version’
flowtools.c:733: error: ‘RO’ undeclared here (not in a function)
flowtools.c:735: error: ‘T_UINT’ undeclared here (not in a function)
flowtools.c:735: error: ‘FlowPDUObject’ has no member named ‘sequence’
flowtools.c:737: error: ‘FlowPDUObject’ has no member named ‘count’
flowtools.c:739: error: ‘FlowPDUObject’ has no member named ‘sysUpTime’
flowtools.c:741: error: ‘FlowPDUObject’ has no member named ‘unix_secs’
flowtools.c:743: error: ‘FlowPDUObject’ has no member named ‘unix_nsecs’
flowtools.c:747: error: array type has incomplete element type
flowtools.c:748: error: expected ‘}’ before ‘FlowPDU_IsNext’
flowtools.c:755: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’
before ‘FlowPDUType’
flowtools.c:798: error: array type has incomplete element type
flowtools.c:806: error: expected ‘)’ before ‘*’ token
flowtools.c:824: warning: function declaration isn’t a prototype
flowtools.c: In function ‘initflowtools’:
flowtools.c:825: error: ‘PyObject’ undeclared (first use in this function)
flowtools.c:825: error: ‘d’ undeclared (first use in this function)
flowtools.c:825: error: ‘m’ undeclared (first use in this function)
flowtools.c:825: warning: left-hand operand of comma expression has no effect
flowtools.c:827: error: ‘FlowSetType’ undeclared (first use in this 
function)
flowtools.c:827: error: ‘PyType_GenericNew’ undeclared (first use in this
function)
flowtools.c:828: error: ‘FlowType’ undeclared (first use in this function)
flowtools.c:829: error: ‘FlowPDUType’ undeclared (first use in this 
function)
flowtools.c:830: error: ‘FlowPDUIterType’ undeclared (first use in this
function)
flowtools.c:832: warning: implicit declaration of function ‘PyType_Ready’
flowtools.c:838: warning: implicit declaration of function ‘Py_InitModule3’
flowtools.c:840: warning: implicit declaration of function ‘Py_INCREF’
flowtools.c:844: warning: implicit declaration of function 
‘PyModule_AddObject’
flowtools.c:844: error: expected expression before ‘)’ token
flowtools.c:845: error: expected expression before ‘)’ token
flowtools.c:846: error: expected expression before ‘)’ token
flowtools.c:848: warning: implicit declaration of function 
‘PyModule_GetDict’
flowtools.c:849: warning: implicit declaration of function ‘InitExceptions’
error: command 'gcc' failed with exit status 1

This builds fine on a 32bit system. Anything I am missing? Thanks.

Original issue reported on code.google.com by [email protected] on 12 May 2010 at 4:51

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.