[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: present but cannot be compiled
From: |
Akim Demaille |
Subject: |
Re: Fwd: present but cannot be compiled |
Date: |
Mon, 25 Aug 2003 08:31:48 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
| Hi,
| I'm using Mac OS X 10.2.6 (Darwin / Jaguar) and got an error from
| autoconf. Nmap actually compiles and works ok, so this is just a
| cosmetic problem..(?)
|
| Akim: Looks like netinet/if_ether.h requires stdio.h and sys/socket.h:
|
| bash-2.05a$ cat s.c
| #include <stdio.h>
| #include <sys/socket.h>
| #include <netinet/if_ether.h>
|
| int main () {}
| bash-2.05a$ gcc s.c ; rm a.out
| bash-2.05a$
|
| (Sorry about spamming a bit)
Thanks a lot, I'm including the following in Autoconf's documentation.
Index: ChangeLog
from Akim Demaille <address@hidden>
* doc/autoconf.texi (Header Portability): netinet/if_ether.h.
From Ville Karaila.
Index: THANKS
===================================================================
RCS file: /cvsroot/autoconf/autoconf/THANKS,v
retrieving revision 1.113
diff -u -u -r1.113 THANKS
--- THANKS 25 Jun 2003 10:05:42 -0000 1.113
+++ THANKS 25 Aug 2003 06:28:38 -0000
@@ -194,6 +194,7 @@
Tony Leneis address@hidden
Uwe Seimet address@hidden
Vance Shipley address@hidden
+Ville Karaila address@hidden
Viktor Dukhovni address@hidden
Vladimir Volovich address@hidden
Volker Borchert address@hidden
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.753
diff -u -u -r1.753 autoconf.texi
--- doc/autoconf.texi 19 Aug 2003 07:56:58 -0000 1.753
+++ doc/autoconf.texi 25 Aug 2003 06:28:39 -0000
@@ -4332,6 +4332,29 @@
])
@end example
address@hidden @file{netinet/if_ether.h}
address@hidden netinet/if_ether.h
+On Darwin, this file requires that @file{stdio.h} and
address@hidden/socket.h} be included beforehand. One should run:
+
address@hidden
+AC_CHECK_HEADERS([sys/socket.h])
+AC_CHECK_HEADERS([netinet/if_ether.h], [], [],
+[#include <stdio.h>
+#if STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# if HAVE_STDLIB_H
+# include <stdlib.h>
+# endif
+#endif
+#if HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+])
address@hidden example
+
@item @file{stdint.h}
See above, item @file{inttypes.h} vs.@: @file{stdint.h}.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Fwd: present but cannot be compiled,
Akim Demaille <=