Skip site navigation (1) Skip section navigation (2)

Re: Compiling beta2 with openssl on XP Pro

From: "Tony and Bryn Reina" <reina_ga(at)hotmail(dot)com>
To: "Magnus Hagander" <mha(at)sollentuna(dot)net>
Cc: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: Compiling beta2 with openssl on XP Pro
Date: 2004-09-04 12:41:19
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers-win32
The gdi32 library seems to be the trick for the openssl fix. Note that the 
order of the libraries seems to be critical: -lssl -lcrypto -lgdi32. Any 
other order seems to throw an error for gcc.

 I changed the configure file as follows:

<   LIBS="-lcrypto $LIBS"
< LIBS="-lssl  $LIBS"
> LIBS="-lssl -lcrypto -lgdi32 $LIBS"
<   LIBS="-lssl $LIBS"
>   LIBS="-lssl -lcrypto -lgdi32 $LIBS"

and the src/Makefile.shlib to:

<  $(DLLWRAP) -o $(shlib) --dllname $(shlib) $(DLLWRAP_FLAGS) --def 
>  $(DLLWRAP) -o $(shlib) --dllname $(shlib) $(DLLWRAP_FLAGS) --def 
> $(NAME).def $(OBJS) $(SHLIB_LINK) -lgdi32

The Makefile wasn't picking up the -lgdi32 flag from configure (or wherever 
it should get it from).

In any case, with these simple changes OpenSSL doesn't have to be tweaked to 
incorporate it into the Mingw build of PostgreSQL. I was able to compile and 
install the CVS tip from last night with these minor changes. Having trouble 
doing an initdb, but still working on it.


----- Original Message ----- 
From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Tony and Bryn Reina" <reina_ga(at)hotmail(dot)com>; "Tom Lane" 
Cc: <pgsql-hackers-win32(at)postgresql(dot)org>
Sent: Thursday, September 02, 2004 8:09 PM
Subject: SV: [pgsql-hackers-win32] Compiling beta2 with openssl on XP Pro

This is the known issue that's on the open items list as "fix SSL compiles".

The way to get it done now is to edit the source to openssl and remove the 
references to those functions. Yes, it's ugly and yes it needs a proper fix.


In response to

pgsql-hackers-win32 by date

Next:From: Christopher BrowneDate: 2004-09-04 13:07:38
Subject: Re: Developers page is down
Previous:From: Gaetano MendolaDate: 2004-09-04 08:48:01
Subject: Re: Developers page is down

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group