Closed GoogleCodeExporter closed 8 years ago
[deleted comment]
???? linux/rtnetlink.h 只有 linux 才有的。 BSD, Mac 都没有的
Original comment by microcai...@gmail.com
on 12 Jun 2009 at 11:21
checking linux/rtnetlink.h usability... no
checking linux/rtnetlink.h presence... yes
config.log:
...........
configure:4846: checking linux/rtnetlink.h usability
configure:4863: gcc -c -g -O2 conftest.c >&5
In file included from /usr/include/linux/rtnetlink.h:4,
from conftest.c:64:
/usr/include/linux/netlink.h:34: error: expected specifier-qualifier-list before
'sa_family_t'
configure:4870: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "ruijieclient"
| #define PACKAGE_TARNAME "ruijieclient"
| #define PACKAGE_VERSION "0.1.4"
| #define PACKAGE_STRING "ruijieclient 0.1.4"
| #define PACKAGE_BUGREPORT "gong@fedoraproject.org"
| #define PACKAGE "ruijieclient"
| #define VERSION "0.1.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_MEMSET 1
| #define HAVE_STRERROR 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_NET_ETHERNET_H 1
| #define HAVE_NET_IF_H 1
| #define HAVE_LIBPCAP 1
| #define HAVE_PCAP_H 1
| /* end confdefs.h. */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <linux/rtnetlink.h>
configure:4884: result: no
configure:4888: checking linux/rtnetlink.h presence
configure:4903: gcc -E conftest.c
configure:4910: $? = 0
configure:4924: result: yes
configure:4937: WARNING: linux/rtnetlink.h: present but cannot be compiled
configure:4939: WARNING: linux/rtnetlink.h: check for missing prerequisite
headers?
configure:4941: WARNING: linux/rtnetlink.h: see the Autoconf documentation
configure:4943: WARNING: linux/rtnetlink.h: section "Present But Cannot Be
Compiled"
configure:4945: WARNING: linux/rtnetlink.h: proceeding with the preprocessor's
result
configure:4947: WARNING: linux/rtnetlink.h: in the future, the compiler will
take
precedence
configure:4957: checking for linux/rtnetlink.h
configure:4966: result: yes
..........
不过不影响编译。。可能是我的问题。。没测试
Original comment by sthots
on 12 Jun 2009 at 11:52
不影响的啦
Original comment by microcai...@gmail.com
on 12 Jun 2009 at 12:57
Original comment by sthots
on 14 Jun 2009 at 4:31
ok
Original comment by microcai...@gmail.com
on 14 Jun 2009 at 4:34
Original issue reported on code.google.com by
sthots
on 12 Jun 2009 at 10:34