Results 1 to 10 of 11

Thread: error compiling snort

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Beans
    32

    error compiling snort

    hi i am trying to install and compile snort per the tutorial above. and when i went to compile snort i got errors.

    http://ubuntuforums.org/showthread.php?t=919472

    and i think i did everything correctly and i compiled this application snort and received a error message i am at a loss of what to do now can you help out some of it compiled but thier was this error at the end

    terminal code in tutorial:

    cd /usr/src/snort-2.8.3
    ./configure -enable-dynamicplugin --with-mysql
    make
    make install

    error:

    In function ‘open’,
    inlined from ‘server_stats_save’ at server_stats.c:349:
    /usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
    make[4]: *** [server_stats.o] Error 1
    make[4]: Leaving directory `/usr/src/snort-2.8.3.1/src/preprocessors/flow/portscan'
    make[3]: *** [install-recursive] Error 1
    make[3]: Leaving directory `/usr/src/snort-2.8.3.1/src/preprocessors/flow'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory `/usr/src/snort-2.8.3.1/src/preprocessors'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/usr/src/snort-2.8.3.1/src'
    make: *** [install-recursive] Error 1

    ive posted in upper big OP but with no luck thanks

  2. #2
    Join Date
    Nov 2007
    Beans
    2

    Re: error compiling snort

    On your
    Code:
    <path_to_snort_source>/src/preprocessors/flow/portscan/server_stats.c
    change this line:
    Code:
    fd = open(filename, O_CREAT|O_TRUNC|O_SYNC|O_WRONLY);
    with this one:
    Code:
    fd = open(filename, O_CREAT, S_IRUSR|S_IWUSR|O_TRUNC|O_SYNC|O_WRONLY);
    Source of this information:
    Code:
    http://www.snort.org/reg-bin/forums.cgi?forum_id=4&topic_id=6119
    After this change, the compilation works.

    Hope it help you!
    Regards,
    G0rt3k

  3. #3
    Join Date
    Aug 2008
    Beans
    1

    Re: error compiling snort

    G0rt3k

    Thank you. The fix worked.

  4. #4
    Join Date
    Jul 2006
    Location
    Prince Edward Island
    Beans
    Hidden!
    Distro
    Ubuntu Studio 9.04 Jaunty Jackalope

    Re: error compiling snort

    About

    Code:
    <path_to_snort_source>/src/preprocessors/flow/portscan/server_stats.c
    For me the trail ends at <path_to_snort_source>/src/preprocessors there isn't any 'flow' folder, there are lots of other folders, which I looked into, but no flow. No portscan folder and I when I grepped for "server_stats.c" in the snort directory it didn't find it, I'll keep looking.

    The Snort link you submitted is dead as well, no redirect.

    Thanks for the effort, but I'm at a dead end.

    edit: ignore all that, I re-ran 'make install' again only I used 'sudo make install' , the guide I followed didn't mention using sudo before 'make install', I had a bad feeling about that and should have followed my instincts! There weren't any errors after using sudo for 'make install'.
    Last edited by dhughes; September 8th, 2009 at 04:08 PM. Reason: doh!
    Hardware: Intel Core 2 Quad 2.4GHz/ 4GB DDR2 800MHz RAM/ nVidia 9600GT 512MB/ Gigabyte GA-P35-S3G
    That fuzzy feeling in your head is your brain working, thanks to Linux!

  5. #5
    Join Date
    Jan 2010
    Location
    Pa
    Beans
    9
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: error compiling snort

    hi i am new to ubuntu and linux in general and when i am trying to compile snort i get an error.

    i am in /usr/share/doc/snort i could not find my plugins so i have swrx-snort-plugin-pack-0.2.0.tar.gz

    well when i type in ./configure -enable-dynamicplugin --with-mysql i get the error
    bash: ./configure: No such file or directory

    thank you for the help

  6. #6
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: error compiling snort

    If you there isn't a file called configure in the directory you're in, the command won't work.

    Is there a reason why you are trying to compile from source, instead of installing snort from the repositories?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •