Subject: pkg/13021: postgresql-lib does not build on Solaris 8
To: None <>
From: Jeff Rizzo <>
List: netbsd-bugs
Date: 05/23/2001 16:28:23
>Number:         13021
>Category:       pkg
>Synopsis:       postgresql-lib does not build on Solaris 8
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 23 16:27:03 PDT 2001
>Originator:     Jeff Rizzo
>Release:        pkgsrc as of 20010523
Jeff Rizzo                               
System: SunOS butthead 5.8 Generic_108528-03 sun4u sparc SUNW,UltraAX-i2
Architecture: sun4u
Machine: sparc

	The attempt to build postgresql fails in postgresql-lib.  There
seems to be a conflict between the "des.h" include file installed by
openssl, and the "crypt.h" file which comes with Solaris:

gmake[2]: Entering directory `/usr/pkgsrc/databases/postgresql-lib/work/postgresql-7.1.1/src/interfaces/libpq'
gcc -O2 -I/usr/pkgsrc/databases/postgresql-lib/work/include -L/usr/pkgsrc/databases/postgresql-lib/work/lib -I/usr/pkgsrc/databases/postgresql-lib/work/include -L/usr/pkgsrc/databases/postgresql-lib/work/lib -Wall -Wmissing-prototypes -Wmissing-declarations -O2 -I/usr/pkgsrc/databases/postgresql-lib/work/include -L/usr/pkgsrc/databases/postgresql-lib/work/lib -I/usr/pkgsrc/databases/postgresql-lib/work/include -L/usr/pkgsrc/databases/postgresql-lib/work/lib -fPIC -I. -I../../../src/include -I/usr/pkgsrc/databases/postgresql-lib/work/include  -I/usr/pkg/include -DFRONTEND -DSYSCONFDIR='"/usr/pkg/etc/postgresql"'  -c -o fe-auth.o fe-auth.c
In file included from fe-auth.c:50:
/usr/include/crypt.h:23: conflicting types for `des_encrypt'
/usr/pkg/include/openssl/des.h:150: previous declaration of `des_encrypt'
gmake[2]: *** [fe-auth.o] Error 1

I am unsure how to resolve this.

	Attempt to compile the postgresql-lib package using Zoularis on
a Solaris 8 box.  (Unknown whether this affects other solaris versions)

	Unknown at this time.