NetBSD Problem Report #17781
Received: (qmail 5863 invoked by uid 605); 31 Jul 2002 13:57:44 -0000
Message-Id: <20020731135740.7041311124@narn.netbsd.org>
Date: Wed, 31 Jul 2002 06:57:40 -0700 (PDT)
From: julien.letessier@sun.com
Sender: gnats-bugs-owner@netbsd.org
Reply-To: julien.letessier@sun.com
To: gnats-bugs@gnats.netbsd.org
Subject: databases/postgresql-server Makefile fix for Solaris
X-Send-Pr-Version: www-1.0
>Number: 17781
>Category: pkg
>Synopsis: databases/postgresql-server Makefile fix for Solaris
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: jlam
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Jul 31 13:58:00 +0000 2002
>Closed-Date: Wed Aug 07 09:35:14 +0000 2002
>Last-Modified: Wed Aug 07 09:57:01 +0000 2002
>Originator: Julien T. Letessier
>Release: Zoularis/Solaris8
>Organization:
Sun Labs Europe
>Environment:
SunOS mikdemia 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-Enterprise
>Description:
databases/postgresql-server suffers from a include clash: openssl and /usr/include/crypt.h both define a des_encrypt function (among others).
>How-To-Repeat:
Build postgresql under Zoularis/Solaris8
>Fix:
Dirty but efficient:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/databases/postgresql-server/Makefile,v
retrieving revision 1.19
diff -u -r1.19 Makefile
--- Makefile 2002/04/04 07:41:05 1.19
+++ Makefile 2002/07/31 13:44:43
@@ -40,6 +40,15 @@
DEINSTALL_EXTRA_TMPL= ${PKGDIR}/DEINSTALL
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+post-configure:
+ ${ECHO} '#ifdef HAVE_CRYPT_H' >> ${WRKSRC}/src/include/pg_config.h ; \
+ ${ECHO} '#undef HAVE_CRYPT_H' >> ${WRKSRC}/src/include/pg_config.h ; \
+ ${ECHO} '#endif' >> ${WRKSRC}/src/include/pg_config.h
+.endif
+
do-build:
.for DIR in ${DIRS_TO_BUILD}
cd ${WRKSRC}/${DIR} && ${SETENV} ${MAKE_ENV} \
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->jlam
Responsible-Changed-By: jlam
Responsible-Changed-When: Wed Aug 7 00:31:53 PDT 2002
Responsible-Changed-Why:
I'll take care of this one.
State-Changed-From-To: open->feedback
State-Changed-By: jlam
State-Changed-When: Wed Aug 7 00:32:15 PDT 2002
State-Changed-Why:
A possible fix has been applied, but awaiting feedback from PR author.
From: "Johnny C. Lam" <jlam@netbsd.org>
To: julien.letessier@sun.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/17781: databases/postgresql-server Makefile fix for Solaris
Date: Wed, 7 Aug 2002 00:31:45 -0700
On Wed, Jul 31, 2002 at 06:57:40AM -0700, julien.letessier@sun.com wrote:
>
> databases/postgresql-server suffers from a include clash: openssl and
> /usr/include/crypt.h both define a des_encrypt function (among others).
I've taken a different approach to this problem by copying the solution
from the postgresql-lib package -- we generate an empty crypt.h file in
the buildlink directory to hide the system crypt.h. Could you please
test to see if this fixes your reported problem on Solaris?
Thanks,
-- Johnny Lam <jlam@netbsd.org>
State-Changed-From-To: feedback->closed
State-Changed-By: jlam
State-Changed-When: Wed Aug 7 02:34:34 PDT 2002
State-Changed-Why:
PR author confirms in private email that the problem is fixed. Thanks for
the PR!
From: Julien Letessier <julien.letessier@sun.com>
To: "Johnny C. Lam" <jlam@netbsd.org>
Cc:
Subject: Re: pkg/17781: databases/postgresql-server Makefile fix for Solaris
Date: Wed, 07 Aug 2002 10:19:23 +0200
Johnny C. Lam wrote:
> On Wed, Jul 31, 2002 at 06:57:40AM -0700, julien.letessier@sun.com wrote:
>
>>databases/postgresql-server suffers from a include clash: openssl and
>>/usr/include/crypt.h both define a des_encrypt function (among others).
>
> I've taken a different approach to this problem by copying the solution
> from the postgresql-lib package -- we generate an empty crypt.h file in
> the buildlink directory to hide the system crypt.h.
I probably missed that little (and effective) hack...
> Could you please
> test to see if this fixes your reported problem on Solaris?
It does :)
Thanks,
--
Julien T. Letessier
Sun Labs Europe, Meylan, France
julien.letessier@sun.com
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.