Re: Problems compiling CVS on Solaris.

From: Keith Parks <emkxp01(at)middleton-top(dot)co(dot)uk>
To: hackers(at)postgresql(dot)org, keith(dot)parks(at)btinternet(dot)com
Subject: Re: Problems compiling CVS on Solaris.
Date: 2000-07-14 22:56:35
Message-ID: 200007142256.XAA02503@mtcc.middleton-top.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)parks(at)middleton-top(dot)co(dot)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.
>
>

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-07-14 23:59:49 Latest parser changes
Previous Message Keith Parks 2000-07-14 22:45:43 Problems compiling CVS on Solaris.