[Snort-devel] getting errors while building snort-2.8.1 on hpux 11.23 ia (itanium) machine.

Steven Sturges steve.sturges at ...402...
Tue May 13 09:23:34 EDT 2008


It looks like your system is Intel based (or at least the compiler
thinks so and is using the i386/i64/amd64 version of the macros).
However, it doesn't appear the compiler supports the related assembly
language to read the RDTSC register.

Can you use GCC instead?

If not, you'll need to find out how to get the equivalent assembly
instructions compiled with that compiler -- the macro that is being
used is around line 59 of cpuclock.h.

Cheers.
-steve

jaya raj wrote:
> Hi All,
> 
> I am trying to build snort-2.8.1 on hpux machine (OS: 11.23 ia) but i am facing 
> errors in doing so.
> I have used the following options to compile
> ------------------------------------------------------------------------------------------------------------
> export CC="/opt/aCC/bin/aCC -AC99"
> export LDFLAGS="-Wl,+nodefaultrpath -L/usr/lib/hpux32 
> -L/opt/iexpress/postgresql/lib/hpux32 -L/opt/iexpress/libnet.acc/lib"
> export CFLAGS=" -g -fno-strict-aliasing"
> ./configure --prefix=/opt/iexpress/snort \
>               --enable-perfmonitor \
>               --enable-dynamicplugin \
>               --with-mysql=/opt/iexpress/mysql \
>               --with-postgresql=/opt/iexpress/postgresql \
>               --with-libnet-includes=/usr/local/include \
>               --with-libnet-libraries=/usr/local/lib \
>                 --with-libpcre-libraries=/usr/local/lib \
>               --with-libpcre-includes=/usr/local/include \
>               --with-libpcap-libraries=/usr/lib/hpux32 \
>               --with-libpcap-includes=/usr/include 2>&1 | tee log.run
> ------------------------------------------------------------------------------------------------------------
> 
> And while doing gmake i am getting the following errors
> ---------------------------------------------------------------------------------------------------------------
> "cpuclock.h", line 108: error #2020: identifier "__asm__" is undefined
>       get_clockticks(start);
>       ^
> 
> "cpuclock.h", line 108: error #2079: expected a type specifier
>       get_clockticks(start);
>       ^
> 
> "cpuclock.h", line 108: error #2079: expected a type specifier
>       get_clockticks(start);
>       ^
> 
> "cpuclock.h", line 108: error #2075: operand of "*" must be a pointer
>       get_clockticks(start);
>       ^
> 
> "cpuclock.h", line 108: warning #2549-D: variable "a" is used before its value
>           is set
>       get_clockticks(start);
>       ^
> 
> "cpuclock.h", line 108: warning #2549-D: variable "d" is used before its value
>           is set
>       get_clockticks(start);
>       ^
> 
> "cpuclock.h", line 108: warning #2549-D: variable "start" is used before its
>           value is set
>       get_clockticks(start);
>       ^
> 
> "cpuclock.h", line 115: error #2020: identifier "__asm__" is undefined
>       get_clockticks(end);
>       ^
> 
> "cpuclock.h", line 115: error #2079: expected a type specifier
>       get_clockticks(end);
>       ^
> 
> "cpuclock.h", line 115: error #2079: expected a type specifier
>       get_clockticks(end);
>       ^
> 
> "cpuclock.h", line 115: error #2075: operand of "*" must be a pointer
>       get_clockticks(end);
>       ^
> 
> "cpuclock.h", line 115: warning #2549-D: variable "a" is used before its value
>           is set
>       get_clockticks(end);
>       ^
> 
> "cpuclock.h", line 115: warning #2549-D: variable "d" is used before its value
>           is set
>       get_clockticks(end);
>       ^
> 
> "cpuclock.h", line 115: warning #2549-D: variable "end" is used before its
>           value is set
>       get_clockticks(end);
>       ^
> 
> "snort.c", line 1363: error #2020: identifier "__asm__" is undefined
>       get_clockticks(exitTime);
>       ^
> 
> "snort.c", line 1363: error #2079: expected a type specifier
>       get_clockticks(exitTime);
>       ^
> 
> "snort.c", line 1363: error #2079: expected a type specifier
>       get_clockticks(exitTime);
>       ^
> 
> "snort.c", line 1363: error #2075: operand of "*" must be a pointer
>       get_clockticks(exitTime);
>       ^
> 
> "snort.c", line 1363: warning #2549-D: variable "a" is used before its value
>           is set
>       get_clockticks(exitTime);
>       ^
> 
> "snort.c", line 1363: warning #2549-D: variable "d" is used before its value
>           is set
>       get_clockticks(exitTime);
>       ^
> 
> "snort.c", line 1384: error #2020: identifier "__asm__" is undefined
>       get_clockticks(now);
>       ^
> 
> "snort.c", line 1384: error #2079: expected a type specifier
>       get_clockticks(now);
>       ^
> 
> "snort.c", line 1384: error #2079: expected a type specifier
>       get_clockticks(now);
>       ^
> 
> "snort.c", line 1384: error #2075: operand of "*" must be a pointer
>       get_clockticks(now);
>       ^
> 
> "snort.c", line 1384: warning #2549-D: variable "a" is used before its value
>           is set
>       get_clockticks(now);
>       ^
> 
> "snort.c", line 1384: warning #2549-D: variable "d" is used before its value
>           is set
>       get_clockticks(now);
>       ^
> 
> "snort.c", line 1384: warning #2549-D: variable "now" is used before its value
>           is set
>       get_clockticks(now);
>       ^
> 
> 16 errors detected in the compilation of "snort.c".
> ---------------------------------------------------------------------------------------------------------------
> 
> i tried to build the previous version of snort and it is building fine.
> i think the function get_clockticks has some problem which is defined in 
> $HOME/src/cpuclock..h and used in $HOME/src/snort.c.
> 
> can any one help me out in this .
> thanks in advance.
> 
> Regards,
> Pavan raj.
> 
> 
> --------------------------------------------------------------------------------
> Share files, take polls, and make new friends - all under one roof. Click here. 
> <http://in.rd.yahoo.com/tagline_groups_8/*http://in.promos.yahoo.com/groups/>
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft 
> Defy all challenges. Microsoft(R) Visual Studio 2008. 
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Snort-devel mailing list
> Snort-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/snort-devel




More information about the Snort-devel mailing list