Problems compiling CVS on Solaris.

From: Keith Parks <emkxp01(at)middleton-top(dot)co(dot)uk>
To: hackers(at)postgresql(dot)org
Subject: Problems compiling CVS on Solaris.
Date: 2000-07-14 22:45:43
Message-ID: 200007142245.XAA02080@mtcc.middleton-top.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Browse pgsql-hackers by date

  From Date Subject
Next Message Keith Parks 2000-07-14 22:56:35 Re: Problems compiling CVS on Solaris.
Previous Message Tom Lane 2000-07-14 21:22:12 Re: lost records !