Snort mailing list archives

Unable to Compile DPX.C (original file) (dpx-1.6 version)


From: Amtul Saboor <saboor.amtul () gmail com>
Date: Mon, 17 Feb 2014 23:10:22 +0500

Hello

I am starting new thread, i already successfully configured and ran DPX-1.6
with snort-2.9.4.6 version. but I am slightly confused , since i am unable
to compile even the original DPX.C file (without any changes ) .

I am afraid how can i make changes in dpx.c if the original file has so
many errors.
*NOTE: With all these errors in the dpx.c file,  ./test.sh command runs
fine, seems that DPX.C file has been deliberately left with some errors. *


*Here is the list of errors, (i have configured snort with enable dynamic
examples option) :*
/usr/src/dpx-new/src# gcc -c dpx.c
In file included from dpx.c:33:
/snort-2.9.6.0/src/snort_debug.h:81: error: expected ')' before 'dbg'
dpx.c:36:48: error: /snort-2.9.6.0/src/sf_snort_packet.h: No such file or
directory
dpx.c:37:55: error: /snort-2.9.6.0/src/sf_dynamic_preproc_lib.h: No such
file or directory
dpx.c:38:56: error: /snort-2.9.6.0/src/sf_dynamic_preprocessor.h: No such
file or directory
dpx.c:39:41: error: /snort-2.9.6.0/src/sfPolicy.h: No such file or directory
dpx.c:40:49: error: /snort-2.9.6.0/src/sfPolicyUserData.h: No such file or
directory
dpx.c:62: error: expected specifier-qualifier-list before 'uint16_t'
dpx.c:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'curr_data'
dpx.c:69: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'_dpd'
dpx.c:71: warning: 'struct _SnortConfig' declared inside parameter list
dpx.c:71: warning: its scope is only this definition or declaration, which
is probably not what you want
dpx.c:85: error: expected ')' before 'pid'
dpx.c:131: error: expected ')' before 'config'
dpx.c:146: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'DPX_New'
dpx.c: In function 'DPX_Delete':
dpx.c:176: error: 'tSfPolicyUserContextId' undeclared (first use in this
function)
dpx.c:176: error: (Each undeclared identifier is reported only once
dpx.c:176: error: for each function it appears in.)
dpx.c:176: error: expected ';' before 'config'
dpx.c:181: error: 'config' undeclared (first use in this function)
dpx.c:181: error: 'DPX_Free' undeclared (first use in this function)
dpx.c: In function 'DPX_Setup':
dpx.c:194: error: '_dpd' undeclared (first use in this function)
dpx.c: At top level:
dpx.c:205: warning: 'struct _SnortConfig' declared inside parameter list
dpx.c:205: error: conflicting types for 'DPX_Init'
dpx.c:71: note: previous declaration of 'DPX_Init' was here
dpx.c: In function 'DPX_Init':
dpx.c:207: error: 'curr_data' undeclared (first use in this function)
dpx.c:209: error: '_dpd' undeclared (first use in this function)
dpx.c:210: error: 'PROTO_BIT__TCP' undeclared (first use in this function)
dpx.c:210: error: 'PROTO_BIT__UDP' undeclared (first use in this function)
dpx.c: In function 'DPX_Term':
dpx.c:217: error: 'curr_data' undeclared (first use in this function)
dpx.c: In function 'DPX_Process':
dpx.c:259: error: 'SFSnortPacket' undeclared (first use in this function)
dpx.c:259: error: 'p' undeclared (first use in this function)
dpx.c:259: error: expected expression before ')' token
dpx.c:260: error: 'tSfPolicyId' undeclared (first use in this function)
dpx.c:260: error: expected ';' before 'pid'
dpx.c:263: error: 'curr_data' undeclared (first use in this function)
dpx.c:263: error: 'pid' undeclared (first use in this function)
dpx.c:266: warning: incompatible implicit declaration of built-in function
'printf'
dpx.c:280: error: 'DPX_Config' has no member named 'portToCheck'
dpx.c:283: error: '_dpd' undeclared (first use in this function)
dpx.c:288: error: 'DPX_Config' has no member named 'portToCheck'





Kindly help.


Thanks.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Snort-devel mailing list
Snort-devel () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-devel
Archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-devel

Please visit http://blog.snort.org for the latest news about Snort!

Current thread: