Messages in this thread | | | Date | Wed, 17 Mar 1999 02:25:04 -0500 (EST) | From | Alexander Viro <> | Subject | Re: bind 8.2 will not compile with Linux kernel 2.2.3 |
| |
On Tue, 16 Mar 1999, David Lang wrote:
> bind 8.2 complains about /usr/include/linux/un.h > (which maps to /usr/src/linux/include/linux/un.h which is why I am > sending it to the linux kernel list as well as the bind-bugs list) > the exact error is > > gcc -O -g -I../../port/linux/include -I../../include -c pathnames.c > In file included from /usr/include/sys/un.h:1, > from pathnames.c:25: > /usr/include/linux/un.h:7: parse error before `sa_family_t'
sa_family_t is used as type name (which it is) but gcc didn't see the corresponding typedef, so it stares at the body of struct definition and sees unknown identifier in the place where the type should be. For what gcc cares, it is not different from struct foo { undefined_name bar; } sa_family_t is defined in linux/socket.h *if* you insist on using the kernel headers at all. What's wrong with sys/un.h, BTW?
> /usr/include/linux/un.h:7: warning: no semicolon at end of struct or union > /usr/include/linux/un.h:9: parse error before `}' > make[2]: *** [pathnames.o] Error 1 > make[2]: Leaving directory `/home/dlang/bind/src/bin/named' > make[1]: *** [named] Error 2 > make[1]: Leaving directory `/home/dlang/bind/src/bin' > make: *** [all] Error 2 > > any suggestions? I am not seeing anything obviously wrong with un.h > > my system is slackware 3.5 > > David Lang
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |