From: | "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk> |
---|---|
To: | <pgsql-hackers(at)postgresql(dot)org> |
Cc: | <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Compile failure with SSL |
Date: | 2004-06-20 21:15:20 |
Message-ID: | E7F85A1B5FF8D44C8A1AF6885BC9A0E40C362C@ratbert.vale-housing.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
OK, looks like the error below is a Win32 thing. The patch attached
#ifdef'd out the permissions check on the private key file as it won't
work under Windows anyway (a similar check in postmaster.c has has
already been ifdef'd out for the same reason).
Incidently, the consts are also used in initdb.c where they work just
fine - can't seem to figure out where it gets them from though (must be
missing something). Normally they're in sys/stat.h, but not in mingw
(where they can only be found in glibc/sys/stat.h). Magnus also
mentioned to me that Merlin's snapshots are building fine without this
patch - dunno if he has a different version of sys/stat.h...
Anyway, regardless of that I think the patch is relevant.
Regards, Dave.
> -----Original Message-----
> From: pgsql-hackers-owner(at)postgresql(dot)org
> [mailto:pgsql-hackers-owner(at)postgresql(dot)org] On Behalf Of Dave Page
> Sent: 19 June 2004 23:24
> To: pgsql-hackers(at)postgresql(dot)org
> Subject: [HACKERS] Compile failure with SSL
>
> I think this is another on of those 'might be Win32 specific'
> problems.
> When building on XP, with OpenSSL 0.9.7c (from the bitWalk
> MinGW tools), I get the following failure:
>
> gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
> -Wmissing-declarations -I../../../src/include
> -I./src/include/port/win32 -DEXEC_BACKEND
> "-I../../../src/include/port/win32" -DBUILDING_DLL -c -o
> be-secure.o be-secure.c
> be-secure.c: In function `initialize_SSL':
> be-secure.c:653: `S_IRWXG' undeclared (first use in this function)
> be-secure.c:653: (Each undeclared identifier is reported only once
> be-secure.c:653: for each function it appears in.)
> be-secure.c:653: `S_IRWXO' undeclared (first use in this function)
> be-secure.c:654: warning: implicit declaration of function `getuid'
> make[3]: *** [be-secure.o] Error 1
> make[3]: Leaving directory `/cvs/pgsql/src/backend/libpq'
>
> I have run 'make distclean' and './configure --with-openssl'
> to make sure everything is consistent.
>
> Any ideas?
>
> Regards, Dave
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to
> majordomo(at)postgresql(dot)org
>
Attachment | Content-Type | Size |
---|---|---|
be_secure.diff | application/octet-stream | 1.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Gavin Sherry | 2004-06-20 21:17:20 | Re: [PATCHES] ALTER TABLE ... SET TABLESPACE |
Previous Message | Simon Riggs | 2004-06-20 21:11:03 | Re: Tablespaces |
From | Date | Subject | |
---|---|---|---|
Next Message | Gavin Sherry | 2004-06-20 21:17:20 | Re: [PATCHES] ALTER TABLE ... SET TABLESPACE |
Previous Message | Simon Riggs | 2004-06-20 21:11:03 | Re: Tablespaces |