Your name : Scott Burns
Your email address : Scott...@Netcontech.Com
Category : install: compile
Severity : serious
Summary: Cannot compile under this operating system version
System Configuration
--------------------
Operating System : NetBSD/i386 V1.2.1
PostgreSQL version : 6.3.2
Compiler used : gcc 2.7.2
Hardware:
---------
NetBSD
ncti40.ncti.com
1.2.1 NetBSD 1.2.1
(ncti40_intel) #0:
Fri Nov 28 10:15:22 EST 1997
ro...@netcontech.com:/usr2/src/sys/arch/i386/compile/ncti40_intel
i386
Versions of other tools:
------------------------
gmake - v3.75, flex - v2.5.2
--------------------------------------------------------------------------
Problem Description:
--------------------
When compiling on this operating system the following error
is reported.
gcc -I../../include -I../../backend -O2 -pipe -Wall -Wmissing-prototypes -I..
-c pqcomm.c -o pqcomm.o
In file included from ../../include/libpq/pqcomm.h:19,
from ../../include/libpq/libpq-be.h:20,
from ../../include/libpq/auth.h:16,
from pqcomm.c:66:
/usr/include/sys/un.h:41: redefinition of `struct sockaddr_un'
gmake: *** [pqcomm.o] Error 1
--------------------------------------------------------------------------
Test Case:
----------
Compile on this OS
--------------------------------------------------------------------------
Solution:
---------
--------------------------------------------------------------------------
You can comment out the #include statement that includes sys/un.h in
pqcomm.c. If you try to compile now, you'll get another about
interfaces/libpq/fe-connect.c. You can comment out that include statement
too. This error should be fixed in current CVS.
I had this error too on a BSDI 2.1 system. There's some error in the
system include-files. sys/un.h is not gaurded against multiple inclusion.
Maarten
_____________________________________________________________________________
| TU Delft, The Netherlands, Faculty of Information Technology and Systems |
| Department of Electrical Engineering |
| Computer Architecture and Digital Technique section |
| M.Boe...@et.tudelft.nl |
-----------------------------------------------------------------------------
----------
From: Maarten Boekhold
Sent: Wednesday, August 05, 1998 05:32
To: Scott Burns
Cc: pgsql...@postgreSQL.org
Subject: Re: [PORTS] Port Bug Report: Cannot compile under this operating system version