DataSoft / Honeyd

virtual honeypots
GNU General Public License v2.0
349 stars 103 forks source link

pydataprocessing.c Error on Compiling #65

Closed nextrevision closed 11 years ago

nextrevision commented 11 years ago

During compilation, the build fails with errors related to pydataprocessing.c: pydataprocessing.c:400: error: expected expression before ‘.’ token

Removing the '.' from the end of line 400 and adding a ';' to the end of line 402 solved the issue for me.

Before:

if (pValue == NULL) {
    PyErr_Print();.
    syslog(LOG_ERR,"%s: failed to build argument list",__func__)
}

After:

if (pValue == NULL) {
    PyErr_Print();
    syslog(LOG_ERR,"%s: failed to build argument list",__func__);
}
PherricOxide commented 11 years ago

@nextrevision Thanks for the ticket! We don't usually compile with the python support, so we missed this one

@Romstar looks like it was when we changed more of the logging to syslog (https://github.com/DataSoft/Honeyd/commit/023459e513121aad5569e01af543625ae8af42d9#L24R400)

Go ahead and rebuild with python support enabled with,

 ./configure --with-python; make clean; make

And you should see this error (and be able to tell when it's fixed).