On Thu, Feb 28, 2008 at 10:56:37AM -0500, Alexander Hansen wrote: > Till Backhaus wrote: > > Hi Jeremy, > > > > installation of ettercap fails on my 10.5.2 macbook. my system is > > pretty much a standard installation. > > feel free to get back to me in case you need more detailed information. > > > > cheers > > till backhaus > > > > the first errors are: > > Making all in widgets > > gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -I/sw/include -O2 - > > funroll-loops -fomit-frame-pointer -Wall -I/sw/include -I/sw/include - > > I/sw/include -I/sw/include -g -O2 -c -o libwdg_a-wdg.o `test -f > > 'wdg.c' || echo './'`wdg.c > > In file included from wdg.c:23: > > ./wdg.h:189: error: syntax error before 'u_char' > > > Unfortunately, Jeremy hasn't been active in a while. This error was > first reported last October (though without providing OS and arch > information). > I get the same thing on 10.5.2/PowerPC. > > I would suspect that the issue due to changes in the headers on > Leopard--we've seen issues that looked a bit similar.
ettercap uses platform detection to guess which headers to use, rather than looking at which headers are actually present, so it needs special hand-holding every time it gets ported to an "unexpected" platform. I think the bug here is that sys/types.h is needed, but wdg.h includes stdint.h instead because we're not Solaris. Could try patching src/interfaces/curses/widgets/wdg.h starting at line 24: -#if defined HAVE_STDINT_H && !defined OS_SOLARIS +#if defined HAVE_STDINT_H #include <stdint.h> -#elif !defined OS_SOLARIS +#endif +#if defined HAVE_SYS_TYPES_H #include <sys/types.h> -#elif defined OS_SOLARIS - #include <sys/inttypes.h> #endif dan -- Daniel Macks [EMAIL PROTECTED] http://www.netspace.org/~dmacks ------------------------------------------------------------------------- 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/ _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users