Snort mailing list archives
Re: Snort on HPUX
From: James Hoagland <hoagland () SiliconDefense com>
Date: Thu, 18 Apr 2002 08:30:28 -0700
At 9:57 AM -0500 4/18/02, Taylor Lewick wrote:
Okay, I am trying to compile sonrt on hp-ux 11. First with gcc, but was told it couldnt handle bit streams, so I swithced to cc, HP's complier, and I am getting an error in spp_anomsensor.c. The problem I was told is it is declaring variables (array) in a non-ansi fashion. So I either need a fix for the variable declaration, or I need a way of removing spp_anomsensor.c .h and .o from the makefile. I tried this, but when I run make it errors with a formatting error. I cant vi the file because of a line too long error.The code that is erring out is the last line of the following code segment.. double calc_anom(valtype val[]) { double prob; if (!parts) { features fl[]= {DIP,DPORT,SIP,SPORT}; features vl[]= {val[DIP],val[DPORT],val[SIP],val[SPORT]}; How can I rewrite that so it works with the ansi c compiler?
This should make your compiler happy: features vl[4]; vl[0]= val[DIP]; vl[1]= val[DPORT]; vl[2]= val[SIP]; vl[3]= val[SPORT];But, you might have other things to worry about if vi is complaining about a line too long in spp_anomsensor.c. The lines aren't that long.
Hope this helps, Jim -- |* Jim Hoagland, Associate Researcher, Silicon Defense *| |* --- Silicon Defense: IDS Solutions --- *| |* hoagland () SiliconDefense com, http://www.silicondefense.com/ *| |* Voice: (530) 756-7317 Fax: (530) 756-7297 *| _______________________________________________ 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://www.geocrawler.com/redir-sf.php3?list=snort-users
Current thread:
- Snort on HPUX Taylor Lewick (Apr 18)
- Re: Snort on HPUX James Hoagland (Apr 18)