[Bro] Bro 1.3 available for pre-testing (esp. OpenBSD)
Stephan
Stephan at rheoli.net
Mon Jul 23 03:30:32 PDT 2007
Hi Christian
Had the same problem with Solaris 8 and gcc 4.1.2. Solved this by
commenting out the #include:
------------
--- src/ARP.h.orig 2007-07-23 10:52:13.107942000 +0200
+++ src/ARP.h 2007-07-23 10:52:23.717930000 +0200
@@ -26,7 +26,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
-#include <net/if.h>
+//#include <net/if.h>
#include <net/if_arp.h>
#ifdef HAVE_NET_ETHERNET_H
#include <net/ethernet.h>
------------
GDB output from Solaris 8 backtrace:
------------
Program received signal SIGSEGV, Segmentation fault.
0x00018e5c in TransientID (this=0xa48d8c) at SerialObj.h:56
56 SerialObj.h: No such file or directory.
in SerialObj.h
(gdb) bt
#0 0x00018e5c in TransientID (this=0xa48d8c) at SerialObj.h:56
#1 0x000702e0 in Connection (this=0xa48d7c, s=0xa47620, k=0x4336e8,
t=1165532761.666986, id=0xffbef220) at Conn.cc:152
#2 0x0021962c in NetSessions::NewConn (this=0xa47620, k=0x4336e8,
t=1165532761.666986, id=0xffbef220, data=0xa4700c "\215¼", proto=6)
at Sessions.cc:1110
#3 0x00077f94 in ConnCompressor::Instantiate (this=0xa30718,
t=1165532761.666986, key=0x4336e8, ip=0xffbef560) at ConnCompressor.cc:504
#4 0x00078d3c in ConnCompressor::FirstFromOrig (this=0xa30718,
t=1165532761.666986, key=0x4336e8, ip=0xffbef560, tp=0xa4700c)
at ConnCompressor.cc:225
#5 0x000796a8 in ConnCompressor::NextPacket (this=0xa30718,
t=1165532761.666986, key=0x4336e8, ip=0xffbef560, hdr=0xa44b40,
pkt=0xa46fea "") at ConnCompressor.cc:188
#6 0x0021c42c in NetSessions::DoNextPacket (this=0xa47620,
t=1165532761.666986, hdr=0xa44b40, ip_hdr=0xffbef560, pkt=0xa46fea "",
hdr_size=14) at Sessions.cc:544
#7 0x0021cddc in NetSessions::NextPacket (this=0xa47620, t=1165532761.666986,
hdr=0xa44b40, pkt=0xa46fea "", hdr_size=14, pkt_elem=0x0)
at Sessions.cc:294
#8 0x0021d21c in NetSessions::DispatchPacket (this=0xa47620,
t=1165532761.666986, hdr=0xa44b40, pkt=0xa46fea "", hdr_size=14,
src_ps=0xa44b08, pkt_elem=0x0) at Sessions.cc:246
---Type <return> to continue, or q <return> to quit---
#9 0x00190dfc in net_packet_dispatch (t=1165532761.666986, hdr=0xa44b40,
pkt=0xa46fea "", hdr_size=14, src_ps=0xa44b08, pkt_elem=0x0) at Net.cc:402
#10 0x001916f0 in net_packet_arrival (t=1165532761.666986, hdr=0xa44b40,
pkt=0xa46fea "", hdr_size=14, src_ps=0xa44b08) at Net.cc:464
#11 0x001ae388 in PktSrc::Process (this=0xa44b08) at PktSrc.cc:216
#12 0x00191210 in net_run () at Net.cc:491
#13 0x00018998 in main (argc=4, argv=0xffbefca4) at main.cc:1009
(gdb)
------------
Best regards,
Stephan
On Mon, Jul 16, 2007 at 06:29:12PM +0200, Christian Kreibich wrote:
> Hi Stephan,
>
> On Fri, 2007-07-13 at 12:18 +0200, Stephan wrote:
> > Hi Christian
> >
> > I've compiled bro 1.2.20 an run the test again with the same
> > bus error. At the moment I'm using a pcap file to run the
> > test.
>
> Thanks. I'd like to try to reproduce the error, but I can't seem to get
> a build on the sole Solaris box I have access to, which is a
> "SunOS 5.9 Generic_122300-06 sun4u sparc SUNW,Sun-Fire-880 Solaris".
>
> I see two gccs on that box, 3.4.2 and 4.1.2. With both, I get clashes
> between C header files and STL types, ? la
>
> /usr/include/net/if.h:87: error: template argument required for `struct map'
>
> With gcc4, I also had to add -lstdc++ to LDFLAGS. Are there any
> additional Solaris tricks one has to apply to work around these
> problems, or did the build Just Work for you? What compiler are you
> using?
>
> Cheers,
> Christian
> --
> ________________________________________________________________________
> http://www.icir.org/christian
> http://www.whoop.org
>
More information about the Bro
mailing list