I had run into a problem which resulted in the following error on "make":
This seems to be a programmatic error. I fixed this by doing the following.
attribute error: open with O_CREAT in second argument needs 3 arguments
You must be root to perform the following procedure. You may also open the file below and save it in your home folder, then copy it (as root) to its original directory (../snort2.8.*/src/preprocessors/flow/portscan/).
After "./configure --with-mysql --enable-dynamicplugin", locate the file "server_stats.c" in "../snort-2.8.*/src/preprocessors/flow/portscan/" and open it in a text editor or IDE. Identify the following section:
In this section, identify the line:
int server_stats_save(SERVER_STATS *ssp, char *filename)
and change it to:
fd = open(filename, O_CREAT|O_TRUNC|O_SYNC|O_WRONLY);
Then you may run "make && make install".
fd = open(filename, O_CREAT|O_TRUNC|O_SYNC|O_WRONLY, 0600);
This resulted in other problems related to MySQL using Snort-2.8.3. I then attempted to use the current Snort-188.8.131.52 and it compiled and installed beautifully on my Intrepid server.