Snort mailing list archives

Re: Snort-devel Digest, Vol 91, Issue 13


From: Nicolae Paladi <n.paladi () gmail com>
Date: Tue, 18 Feb 2014 12:16:43 +0100

unsubscribe



On 18 February 2014 10:18, <snort-devel-request () lists sourceforge net>wrote:

Send Snort-devel mailing list submissions to
        snort-devel () lists sourceforge net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/snort-devel
or, via email, send a message with subject or body 'help' to
        snort-devel-request () lists sourceforge net

You can reach the person managing the list at
        snort-devel-owner () lists sourceforge net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Snort-devel digest..."


Today's Topics:

   1. Re: [PATCH]: daq-2.0.2 doesn't build shared libs on FreeBSD
      10.x (Joshua Kinard)
   2. Re: [PATCH]: Fix build on DragonFlyBSD 3.x (Joshua Kinard)
   3. Re: Unable to Compile DPX.C (original file) (dpx-1.6      version)
      (Amtul Saboor)


----------------------------------------------------------------------

Message: 1
Date: Tue, 18 Feb 2014 01:28:55 -0500
From: Joshua Kinard <kumba () gentoo org>
Subject: Re: [Snort-devel] [PATCH]: daq-2.0.2 doesn't build shared
        libs on FreeBSD 10.x
To: snort-devel mailinglist <snort-devel () lists sourceforge net>
Message-ID: <5302FDA7.7030901 () gentoo org>
Content-Type: text/plain; charset=ISO-8859-1

On 02/09/2014 8:59 PM, Joshua Kinard wrote:

In daq-2.0.2 (and likely earlier), the shipped 'configure' script has
this
case statement in it:

    freebsd1*)
      dynamic_linker=no
      ;;

Along with one other.  This causes shared libraries to not get built or
installed under FreeBSD 10.x.

The attached patch fixes this by removing the offending lines from
m4/libtool.m4.  The configure script will need to be regenerated after
applying to fix daq.

I used these commands regenerate the configure script (taken from
snort/doc/INSTALL, under the "FreeBSD 6.x section"):

    libtoolize --automake --copy
    aclocal -I m4 -I /usr/local/share/aclocal
    autoheader
    automake --add-missing --copy
    autoconf

Didn't see any feedback on this.  Did you guys open an internal bug or is
this a non-issue?

--
Joshua Kinard
Gentoo/MIPS
kumba () gentoo org
4096R/D25D95E3 2011-03-28

"The past tempts us, the present confuses us, the future frightens us.  And
our lives slip away, moment by moment, lost in that vast, terrible
in-between."

--Emperor Turhan, Centauri Republic



------------------------------

Message: 2
Date: Tue, 18 Feb 2014 01:30:44 -0500
From: Joshua Kinard <kumba () gentoo org>
Subject: Re: [Snort-devel] [PATCH]: Fix build on DragonFlyBSD 3.x
To: snort-devel mailinglist <snort-devel () lists sourceforge net>
Message-ID: <5302FE14.5050708 () gentoo org>
Content-Type: text/plain; charset=ISO-8859-1

On 02/09/2014 9:51 PM, Joshua Kinard wrote:

Hi snort-devel,

Experimenting w/ DragonFlyBSD, I ran into a build issue in
src/dynamic-plugins/sf_dynamic_plugins.c in which 'struct direct' has no
member 'd_reclen'.  This is apparently because DragonFlyBSD supports
64-bit
inodes and does not need this variable.  I found a fix on Mozilla Bug
#787588 that uses the '_DIRENT_DIRSIZ' macro from DFBSD's 'dirent.h'
header
and adapted it into a simple patch.  Builds and runs a simple test now :)

Refs:
1. https://hg.mozilla.org/mozilla-central/rev/186b0a9bd97b
2. https://bugzilla.mozilla.org/show_bug.cgi?id=787588
3. http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/01f31ab

Didn't see any feedback on this.  Did you guys open an internal bug or is
this a non-issue?

--
Joshua Kinard
Gentoo/MIPS
kumba () gentoo org
4096R/D25D95E3 2011-03-28

"The past tempts us, the present confuses us, the future frightens us.  And
our lives slip away, moment by moment, lost in that vast, terrible
in-between."

--Emperor Turhan, Centauri Republic



------------------------------

Message: 3
Date: Tue, 18 Feb 2014 14:18:15 +0500
From: Amtul Saboor <saboor.amtul () gmail com>
Subject: Re: [Snort-devel] Unable to Compile DPX.C (original file)
        (dpx-1.6        version)
To: "Russ Combs (rucombs)" <rucombs () cisco com>
Cc: "<snort-devel () lists sourceforge net>"
        <snort-devel () lists sourceforge net>
Message-ID:
        <
CAK-HsB22Pb_2vXLLFn2GpC2MNeiPi-Tq+RA8Wrhd0uLzCsExgQ () mail gmail com>
Content-Type: text/plain; charset="iso-8859-1"

Hello

Starting over in a new directory did not help. , facing same issues :


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'




On Tue, Feb 18, 2014 at 1:41 AM, Amtul Saboor <saboor.amtul () gmail com
wrote:

Thanks Russ

Here are the answers:

2. Nothing changed from #1, i am successfully running ./test.sh
command, at the same time, unable to compile dpx.c with gcc command.
gives the mentioned errors. That is confusing.

3.  Ok i am starting over in a new directory . Will let you know the
results.

Thanks again


On 2/17/14, Russ Combs (rucombs) <rucombs () cisco com> wrote:
I'm not clear on the issue here:

1.  You configured and ran successfully dpx 1.6 with Snort 2.9.4.6;
good.

2.  You can't compile dxp.c.  With what version?  What changed from #1?

3.  You can run test.sh with the errors from #2?? That means you still
have
an old lib you are running.

You need to start over in a new directory and see what you get.  Also,
what
version is now failing?

________________________________
From: Amtul Saboor [saboor.amtul () gmail com]
Sent: Monday, February 17, 2014 1:10 PM
To: <snort-devel () lists sourceforge net>
Subject: [Snort-devel] Unable to Compile DPX.C (original file) (dpx-1.6
version)

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.




--
*Amtul Saboor*

*

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------


------------------------------------------------------------------------------
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


End of Snort-devel Digest, Vol 91, Issue 13
*******************************************

------------------------------------------------------------------------------
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: