Re: Compiling beta2 with openssl on XP Pro

"Tony and Bryn Reina" <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
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:

6626,6627d6625
<   LIBS="-lcrypto $LIBS"
<
6634d6631
<
6641c6638
< LIBS="-lssl  $LIBS"
---
> LIBS="-lssl -lcrypto -lgdi32 $LIBS"
6695c6692
<   LIBS="-lssl $LIBS"
---
>   LIBS="-lssl -lcrypto -lgdi32 $LIBS"


and the src/Makefile.shlib to:

327c327
<  $(DLLWRAP) -o $(shlib) --dllname $(shlib) $(DLLWRAP_FLAGS) --def 
$(NAME).def $(OBJS) $(SHLIB_LINK)
---
>  $(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.

-Tony




----- Original Message ----- 
From: "Magnus Hagander" <[email protected]>
To: "Tony and Bryn Reina" <[email protected]>; "Tom Lane" 
<[email protected]>
Cc: <[email protected]>
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.

//Magnus



---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [email protected])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.