Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PORTS] Port Bug Report: Cannot compile under this operating system version

1 view
Skip to first unread message

Unprivileged user

unread,
Aug 5, 1998, 3:00:00 AM8/5/98
to pgsql...@postgresql.org

============================================================================
POSTGRESQL BUG REPORT TEMPLATE
============================================================================


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:
---------


--------------------------------------------------------------------------

Maarten Boekhold

unread,
Aug 5, 1998, 3:00:00 AM8/5/98
to Scott Burns
> 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

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 |
-----------------------------------------------------------------------------

Scott R. Burns

unread,
Aug 5, 1998, 3:00:00 AM8/5/98
to M.Boe...@et.tudelft.nl
Thanks. I found the problem later after some hunting and added the appropriate #ifndef statement in the un.h file. Checking the latest NetBSD current tree this has already been corrected by them. I was able to keep on compiling but the yacc version on V1.2.1 complained of exceeding some limit when it attempted to complete. I don't have the exact details in front of me right now. Has anyone seen this on NetBSD V1.2.1 when compiling V6.3.2 ?

----------
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

0 new messages