Date: Mon, 31 Jan 2011 20:12:19 -0600 From: Brandon Gooch <jamesbrandongooch@gmail.com> To: Axel Barnabas <axel@ucs.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Ettercap segmentation fault.... Message-ID: <AANLkTimNNTjPN3ZpejEo0WwepM%2BhJyu=hA2DowxQFJu4@mail.gmail.com> In-Reply-To: <D1B5BDD232C73949BE4BA430FC272A44298489A65E@exchange.ranch.com> References: <AQHLHYpRymvfgBsDE0G7hdGhYExXog==> <D1B5BDD232C73949BE4BA430FC272A44298489A65E@exchange.ranch.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 6, 2010 at 11:21 PM, Axel Barnabas <axel@ucs.com> wrote: > Hello, > > I have compiles ettercap from ports without incident. However, when I att= empt to run ettercap in any way, after a short while the program crashes an= d I am presented with an error message which is as follows: > > > Ooops ! This shouldn't happen... > Segmentation Fault... > > Please recompile in debug mode, reproduce the bug and send a bugreport > > > I have deinstalled and recompiled to program twice, yielding no results. > Some additional information which may be useful- > > #pkg_info | grep ettercap > ettercap-gtk2-0.7.3_10,1 A network sniffer/interceptor/injector/logger fo= r switched > > #uname -a > FreeBSD =A08.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 20= 09 =A0 =A0 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC =A0amd64 > > If anyone wishes me to recompile in debug mode, you will have to tell me = how; I am not familiar with the process. > > Axel Try this: Before building the port (if you're starting from scratch), run: Code: # cd /usr/ports/net-mgmt/ettercap # make fetch # make extract In the file "/usr/ports/net-mgmt/ettercap/work/ettercap-NG-0.7.3/src/protoc= ols/ec_tcp.c" on line 119, change the following line from: Code: opt_end =3D (u_char *)((int)tcp + tcp->off * 4); To: Code: opt_end =3D (u_char *)(tcp + tcp->off * 4); ...using your favorite text editor. Then, run the typical: Code: # make config # make build # make install After all of that, give the program a run or two, and see if it's working. Let us all know. -Brandon [Refer to FreeBSD Forum Thread: http://forums.freebsd.org/showthread.php?t=3D15719]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimNNTjPN3ZpejEo0WwepM%2BhJyu=hA2DowxQFJu4>