Actions
Bug #189
closedEngine fails to build with ./configure --enable-profiling
Affected Versions:
Effort:
Difficulty:
Label:
Description
Looks like match definition needs to be moved outside of if{} block...
detect-engine-state.c: In function ‘DeStateDetectContinueDetection’:
detect-engine-state.c:514: error: ‘match’ undeclared (first use in this function)
detect-engine-state.c:514: error: (Each undeclared identifier is reported only once
detect-engine-state.c:514: error: for each function it appears in.)
make2: * [detect-engine-state.o] Error 1
make2: Leaving directory `/home/coz/downloads/oisfnew062510/src'
make1: [all-recursive] Error 1
make1: Leaving directory `/home/coz/downloads/oisfnew062510'
make: ** [all] Error 2
if (item->nm != NULL) {
SigMatch sm;
int match = 0;
for (sm = item->nm; sm != NULL; sm = sm->next) {
match = sigmatch_table[sm->type].AppLayerMatch(tv,
det_ctx, f, flags, alstate, s, sm);
/ no match, break out */
if (match == 0) {
item->nm = sm;
det_ctx->de_state_sig_array[item->sid] = DE_STATE_MATCH_PARTIAL;
SCLogDebug("state set to %s", DeStateMatchResultToString(DE_STATE_MATCH_PARTIAL));
break;
/* match, and no more sm's /
} else if (sm->next == NULL) {
/ mark the sig as matched */
item->nm = NULL;
if (!appinspect || (appinspect == appmatch)) {
det_ctx->de_state_sig_array[item->sid] = DE_STATE_MATCH_NEW;
SCLogDebug("state set to s", DeStateMatchResultToString(DE_STATE_MATCH_NEW));
} else {
det_ctx->de_state_sig_array[item->sid] = DE_STATE_MATCH_PARTIAL;
SCLogDebug("state set to %s", DeStateMatchResultToString(DE_STATE_MATCH_PARTIAL));
}
}
}
} else {
if (appinspect > 0 &x%x (appinspect == appmatch)) {
det_ctx->de_state_sig_array[item->sid] = DE_STATE_MATCH_NEW;
SCLogDebug("state set to s", DeStateMatchResultToString(DE_STATE_MATCH_NEW));
} else if (uinspect &x%x !umatch) {
det_ctx->de_state_sig_array[item->sid] = DE_STATE_MATCH_PARTIAL;
SCLogDebug("state set to %s", DeStateMatchResultToString(DE_STATE_MATCH_PARTIAL));
}
}
SCLogDebug("signature %"PRIu32" match state %s",
s->id, DeStateMatchResultToString(det_ctx->de_state_sig_array[item->sid]));
RULE_PROFILING_END(s, match);
Files
Updated by Gurvinder Singh over 14 years ago
- File 0001-fixed-the-build-failure-with-profiling-enabled.patch 0001-fixed-the-build-failure-with-profiling-enabled.patch added
- Status changed from New to Resolved
- Assignee changed from OISF Dev to Gurvinder Singh
- % Done changed from 0 to 90
Attached patch fixes the issue.
Updated by Victor Julien over 14 years ago
- Status changed from Resolved to Closed
- % Done changed from 90 to 100
Applied, thanks Gurvinder!
Actions