Snort mailing list archives

Re: Snort3 on FreeBSD - status?


From: Russ <rucombs () cisco com>
Date: Sun, 18 Sep 2016 09:09:48 -0400

That is a patch against 209. I just made a fresh clone and applied it cleanly.

On 9/18/16 12:04 AM, Dalten 22 wrote:

Might be doing something wrong, but I can't get it to accept the patch. I tried both github (209) and the latest on snort.org (206).


/usr/local/src/snort3 # patch -p1 < rpcent.diff
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/src/network_inspectors/appid/service_plugins/service_rpc.cc b/src/network_inspectors/appid/service_plugins/service_rpc.cc
|index b092490..b895ebd 100644
|--- a/src/network_inspectors/appid/service_plugins/service_rpc.cc
|+++ b/src/network_inspectors/appid/service_plugins/service_rpc.cc
--------------------------
Patching file src/network_inspectors/appid/service_plugins/service_rpc.cc using Plan A...
Hunk #1 failed at 24.
Hunk #2 failed at 236.
Hunk #3 failed at 257.
3 out of 3 hunks failed--saving rejects to src/network_inspectors/appid/service_plugins/service_rpc.cc.rej
done




------------------------------------------------------------------------
*From:* Russ <rucombs () cisco com>
*Sent:* Saturday, September 17, 2016 5:17 AM
*To:* Dalten 22; Shirkdog
*Cc:* snort-users mailinglist
*Subject:* Re: [Snort-users] Snort3 on FreeBSD - status?
Try the attached patch until we can get out a proper fix. Save the file and then do the following command from the top of the source tree:

    patch -p1 < rpcent.diff

This should get the build working but without RPC.

On 9/17/16 12:00 AM, Dalten 22 wrote:

Same errors with gmake:


service_plugins/service_rpc.cc:246:23: error: use of undeclared identifier 'getrpcent'; did you mean 'getnetent'?
        while ((rpc = getrpcent()))
                      ^~~~~~~~~
                      getnetent
/usr/include/netdb.h:226:16: note: 'getnetent' declared here
struct netent   *getnetent(void);
                 ^
service_plugins/service_rpc.cc:246:21: error: assigning to 'struct rpcent *' from incompatible type 'struct netent *'
        while ((rpc = getrpcent()))
                    ^ ~~~~~~~~~~~
service_plugins/service_rpc.cc:248:20: error: member access into incomplete type 'struct rpcent'
            if (rpc->r_name)
                   ^
service_plugins/service_rpc.cc:239:12: note: forward declaration of 'rpcent'
    struct rpcent* rpc;
           ^
service_plugins/service_rpc.cc:251:36: error: member access into incomplete type 'struct rpcent'
                prog->program = rpc->r_number;
                                   ^
service_plugins/service_rpc.cc:239:12: note: forward declaration of 'rpcent'
    struct rpcent* rpc;
           ^
service_plugins/service_rpc.cc:254:46: error: member access into incomplete type 'struct rpcent'
                prog->name = snort_strdup(rpc->r_name);
       ^
service_plugins/service_rpc.cc:239:12: note: forward declaration of 'rpcent'
    struct rpcent* rpc;
           ^
service_plugins/service_rpc.cc:257:9: error: use of undeclared identifier 'endrpcent'; did you mean 'endnetent'?



------------------------------------------------------------------------
*From:* Shirkdog <shirkdog () gmail com>
*Sent:* Friday, September 16, 2016 9:10 PM
*To:* Dalten 22
*Cc:* snort-users mailinglist
*Subject:* Re: [Snort-users] Snort3 on FreeBSD - status?

With FreeBSD, use gmake when compiling Snort and see if it works.


On Sep 16, 2016 21:38, "Dalten 22" <Dalten22 () hotmail com <mailto:Dalten22 () hotmail com>> wrote:

    Folks,


    Has anyone successfully built Snort3 build 200+ on FreeBSD 10.x ?
    I have all the listed dependencies installed and I get all the
    way through a ./configure but I make always fails about half way
    due to some missing functions.  Tried both automake and cmake paths.


    Thanks


    Aaron


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

    _______________________________________________
    Snort-users mailing list
    Snort-users () lists sourceforge net
    <mailto:Snort-users () lists sourceforge net>
    Go to this URL to change user options or unsubscribe:
    https://lists.sourceforge.net/lists/listinfo/snort-users
    <https://lists.sourceforge.net/lists/listinfo/snort-users>
    Snort-users list archive:
    http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users
    <http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users>

    Please visit http://blog.snort.org to stay current on all the
    latest Snort news!



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


_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

Please visithttp://blog.snort.org  to stay current on all the latest Snort news!


------------------------------------------------------------------------------
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

Current thread: