[Snort-users] Compiling snort on AIX.

Kramer, Scott sakramer at ...1577...
Wed Mar 14 11:00:35 EST 2001


I seem to have numerous difficulties compiling things on AIX.  Snort is one
of them -- can anyone help?

AIX Version 4.3.3
GNU GCC Version 2.95.2.1

Here is the output I get from the make command:

# make

        gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -Wall  -c snort.c

In file included from snort.h:44,

                 from snort.c:45:

/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.2.1/include/rpc/auth.h:20
9: w
arning: `struct sockaddr_in' declared inside parameter list

/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.2.1/include/rpc/auth.h:20
9: w
arning: its scope is only this definition or declaration, which is probably
not 
what you want.

In file included from snort.h:45,

                 from snort.c:45:

/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.2.1/include/rpc/clnt.h:31
8: w
arning: `struct sockaddr_in' declared inside parameter list

/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.2.1/include/rpc/clnt.h:34
2: w
arning: `struct sockaddr_in' declared inside parameter list

/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.2.1/include/rpc/clnt.h:34
4: w
arning: `struct sockaddr_in' declared inside parameter list

snort.c: In function `GetIfrMTU':                                  
snort.c:1471: storage size of `ifr' isn't known                    
snort.c:1486: sizeof applied to an incomplete type                 
snort.c:1471: warning: unused variable `ifr'                       
snort.c: In function `SetUidGid':                                  
snort.c:2324: warning: implicit declaration of function `initgroups
make: 1254-004 The error code from the last command is 1.          

This same code compiles just fine on my Red Hat Linux machine.  I need this
to run on my AIX box.  

Thanks in advance!

Scott Kramer
Anne Arundel Community College
(410) 541-2800  (V)
(410) 541-2816  (F)





More information about the Snort-users mailing list