Re: Problems compiling CVS on Solaris.
От | Keith Parks |
---|---|
Тема | Re: Problems compiling CVS on Solaris. |
Дата | |
Msg-id | 200007142256.XAA02503@mtcc.middleton-top.co.uk обсуждение исходный текст |
Ответ на | Problems compiling CVS on Solaris. (Keith Parks <emkxp01@middleton-top.co.uk>) |
Ответы |
Re: Problems compiling CVS on Solaris.
|
Список | pgsql-hackers |
I take it all back. I see, from my latest update, that config.h.in has changed. I'll do a build with the *very* latest CVS and hopefully that will be OK. Sorry for raising the alarm too soon. Keith. Keith Parks <keith.parks@middleton-top.co.uk> > > 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 по дате отправления: