Problems compiling CVS on Solaris.
От | Keith Parks |
---|---|
Тема | Problems compiling CVS on Solaris. |
Дата | |
Msg-id | 200007142245.XAA02080@mtcc.middleton-top.co.uk обсуждение исходный текст |
Список | pgsql-hackers |
Hi All, Attempting to build with the current CVS I'm getting the following error for every file that includes config.h. gcc -I../../include -Wall -Wmissing-prototypes -Wmissing-declarations -g -O2 -Wno-error -c -o postgres.o postgres.c In file included from ../../include/c.h:47, from ../../include/postgres.h:40, from postgres.c:20: ../../include/config.h:420: warning: `struct in_addr' declared inside parameter list ../../include/config.h:420: warning: its scope is only this definition or declaration, which is probably not what you want. The build ends with the following error. In file included from postgres.c:34: /usr/include/arpa/inet.h:52: conflicting types for `inet_aton' ../../include/config.h:420: previous declaration of `inet_aton' It's all tied, I think, to the following segment of code. /* Set to 1 if you have inet_aton() */ /* #undef HAVE_INET_ATON */ #ifndef HAVE_INET_ATON # ifdef HAVE_ARPA_INET_H # ifdef HAVE_NETINET_IN_H # include <sys/types.h> # include <netinet/in.h> # endif # include <arpa/inet.h> # endif extern int inet_aton(const char *cp, struct in_addr * addr); #endif Where HAVE_ARPA_INET_H and HAVE_NETINET_IN_H are no longer set by configure. The platform is Solaris SPARC 2.7, compiler gcc. Keith.
В списке pgsql-hackers по дате отправления: