[Snort-users] Error compiling Snort

Gary_Portnoy at ...11307... Gary_Portnoy at ...11307...
Fri Apr 30 06:39:12 EDT 2004


I figured this one out, with help from George.  Posting it so that I can 
find it again once I run into this issue a year from now.

The only place in the code where I saw IXDR_GET_LONG being referenced was 
in detection-plugins/sp_rpc_check.c
As far as the includes, this symbol was only defined in rpc/xdr.h (which 
George pointed out), but this file wasn't included in the snort source. 
After trying (unsuccessfully) to "#include <rpc/xdr.h>" at the top of 
sp_rpc_check.c, I just took the part where this symbol is defined in xdr.h 
and threw it into sp_rpc_check.c: "#define IXDR_GET_LONG(buf) 
((long)ntohl((ulong_t)*(buf)++))".  After that, no issues...

-G-

> Date: Wed, 28 Apr 2004 10:31:11 -0400
> From: George Theall <theall at ...9247...>
> To: snort-users at lists.sourceforge.net
> Subject: Re: [Snort-users] Error compiling Snort
> 
> On Wed, Apr 28, 2004 at 08:39:24AM -0400, Gary_Portnoy at ...11307... wrote:
> 
> > a 2.x.  Specifically, I tried 2.1.3RC1 and 2.1.2.  Both times 
compile=20
> > failed with the same message: "Undefined symbol IXDR_GET_LONG first=20
> > referenced in file detection-plugins/lbspd.a(sp_rpc_check.o)"
> 
> That symbol is generally defined in rpc/xdr.h, I think.  The comments in
> my copy of that file (from glibc-devel 2.3.2 rpm on Red Hat 9) claim
> that IXDR_*_LONG defines shouldn't be used any longer and will not work
> on 64bit Solaris platforms.  Is that by chance what you're using?
> 
> 
> George






-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
This message is for the named person's use only. This communication is for 
informational purposes only and has been obtained from sources believed to 
be reliable, but it is not necessarily complete and its accuracy cannot be 
guaranteed. It is not intended as an offer or solicitation for the purchase
or sale of any financial instrument or as an official confirmation of any
transaction. Moreover, this material should not be construed to contain any
recommendation regarding, or opinion concerning, any security. It may
contain confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender. You must not, directly or indirectly, use, disclose, distribute, 
print, or copy any part of this message if you are not the intended 
recipient.  Any views expressed in this message are those of the individual
sender, except where the message states otherwise and the sender is 
authorized to state them to be the views of any such entity.

ITG Inc. reserves the right to monitor and archive all electronic 
communications through its network. 

ITG Inc. Member NASD, SIPC
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-





More information about the Snort-users mailing list