Aaron Turner
2005-01-25 23:41:05 UTC
So I'm trying to build my code against libnet 1.1.3-RC-01 but I'm
getting a compile error:
In file included from /usr/include/libnet.h:120,
from defines.h:18,
from tcpreplay_opts.c:47:
/usr/include/libnet/libnet-types.h:36:23: ../config.h: No such file or directory
What seems to be happening as far as I can tell is that as part of my
autoconf/make scripts, I pass -DHAVE_CONFIG_H to gcc which causes
libnet-types.h to look for ../config.h (effectively
/usr/include/config.h) which doesn't exist and it blows up.
This would seem to be less then ideal behaviour :) Anyone know why
libnet-types.h wants to include config.h (none of the other libnet-*.h
seem to think they need it). For now I've just commented out the
appropriate lines in libnet-types.h and everything builds cleanly.
getting a compile error:
In file included from /usr/include/libnet.h:120,
from defines.h:18,
from tcpreplay_opts.c:47:
/usr/include/libnet/libnet-types.h:36:23: ../config.h: No such file or directory
What seems to be happening as far as I can tell is that as part of my
autoconf/make scripts, I pass -DHAVE_CONFIG_H to gcc which causes
libnet-types.h to look for ../config.h (effectively
/usr/include/config.h) which doesn't exist and it blows up.
This would seem to be less then ideal behaviour :) Anyone know why
libnet-types.h wants to include config.h (none of the other libnet-*.h
seem to think they need it). For now I've just commented out the
appropriate lines in libnet-types.h and everything builds cleanly.
--
Aaron Turner <aturner at pobox.com|synfin.net> http://synfin.net/
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -- Benjamin Franklin
All emails are PGP signed; a lack of a signature indicates a forgery.
Aaron Turner <aturner at pobox.com|synfin.net> http://synfin.net/
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -- Benjamin Franklin
All emails are PGP signed; a lack of a signature indicates a forgery.