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

Compiling 8.0beta on mingw with openssl support

From: "G Reina" <reina_ga(at)hotmail(dot)com>
To: pgsql-hackers-win32(at)postgresql(dot)org
Subject: Compiling 8.0beta on mingw with openssl support
Date: 2004-08-24 14:18:20
Message-ID: (view raw or whole thread)
Lists: pgsql-hackers-win32
I've had no trouble compiling 8.0beta on a Windows XP box with mingw, but am 
having a devil of a time doing it with OpenSSL support. Specifically, the 
configure script is throwing an error when it attempts to use the SSL 
library. I've tried compiling OpenSSL 0.9.7d within mingw, from my MS Visual 
Studio compiler, and from a packaged binary. The mingw OpenSSL version seems 
to be the only usable one since it is the only one that seems to be 
installing libcrypto.a and libssl.a. The other two are just building DLLs 
(libeay32.dll and ssleay32.dll). The configure script error with the mingw 
openssl try is:

configure:5916: checking for inflate in -lz
configure:5949: gcc -o conftest.exe -O2 -fno-strict-aliasing  
-I./src/include/port/win32 -DEXEC_BACKEND  -I/usr/local/include 
-I/usr/local/ssl/include/openssl   -L/usr/local/lib -L/usr/local/ssl/lib 
conftest.c -lz  -lwsock32 -lm  >&5
configure:5952: $? = 0
configure:5955: test -s conftest.exe
configure:5958: $? = 0
configure:5969: result: yes
configure:6566: checking for CRYPTO_new_ex_data in -lcrypto
configure:6599: gcc -o conftest.exe -O2 -fno-strict-aliasing  
-I./src/include/port/win32 -DEXEC_BACKEND  -I/usr/local/include 
-I/usr/local/ssl/include/openssl   -L/usr/local/lib -L/usr/local/ssl/lib 
conftest.c -lcrypto  -lz -lwsock32 -lm  >&5
configure:6602: $? = 0
configure:6605: test -s conftest.exe
configure:6608: $? = 0
configure:6619: result: yes
configure:6635: checking for SSL_library_init in -lssl
configure:6668: gcc -o conftest.exe -O2 -fno-strict-aliasing  
-I./src/include/port/win32 -DEXEC_BACKEND  -I/usr/local/include 
-I/usr/local/ssl/include/openssl   -L/usr/local/lib -L/usr/local/ssl/lib 
conftest.c -lssl  -lcrypto -lz -lwsock32 -lm  >&5
undefined reference to `CreateDCA(at)16'
undefined reference to `CreateCompatibleDC(at)4'
undefined reference to `GetDeviceCaps(at)8'
undefined reference to `GetDeviceCaps(at)8'
undefined reference to `CreateCompatibleBitmap(at)12'
undefined reference to `SelectObject(at)8'
undefined reference to `GetObjectA(at)12'
undefined reference to `BitBlt(at)36'
undefined reference to `GetBitmapBits(at)12'
undefined reference to `SelectObject(at)8'
undefined reference to `DeleteObject(at)4'
undefined reference to `DeleteDC(at)4'
undefined reference to `DeleteDC(at)4'
configure:6671: $? = 1
configure: failed program was:
#line 6642 "configure"
//#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char SSL_library_init ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
main ()
SSL_library_init ();
  return 0;
configure:6688: result: no
configure:6698: error: library 'ssl' is required for OpenSSL

## ---------------- ##
## Cache variables. ##
## ---------------- ##



So it would seem that something is wrong with rand_win.c in my crypto 

Has anyone who's compiled on mingw with openssl support run into this? I 
think Magnus' download page has a nightly snapshot that is compiled with 
openssl support. Perhaps he knows the voodoo involved?


Express yourself instantly with MSN Messenger! Download today - it's FREE!

pgsql-hackers-win32 by date

Next:From: Tom LaneDate: 2004-08-24 14:37:54
Subject: Re: REPOST: InitDB Failure on install
Previous:From: Alvaro HerreraDate: 2004-08-24 14:09:32
Subject: Re: pgsql-server: Update that 8.0 will support MS Win

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