Problem with mkmf, have_header, and windows

D

Daniel Berger

Hi all,

Ruby 1.8.1-13
Windows 2000

I installed the OpenSSL package for Windows (from
http://www.slproweb.com/products/Win32OpenSSL.html if you're
interested) under C:\Program Files\OpenSSL.

I then downloaded Jamis Buck's openssl patch. However, no matter what
I specify to --with-openssl-dir, it doesn't seem to see the ssl.h
file. At first I thought this was a bug in Jamis' extconf.rb file,
but now I think it's a bug in mkmf. Consider the following test:

# sample extconf.rb
require "mkmf"

header = 'C:\Program Files\OpenSSL\include\openssl\ssl.h'

# I also tried these strings with no luck
#header = '/program files/openssl/include/openssl/ssl.h'
#header = "C:\\Program Files\\OpenSSL\\include\\openssl\\ssl.h"

p File.exists?(header) # true (to verify that file exists)

have_header(header) # Always comes back 'no'

I also tried setting %INCLUDE% to the appropriate directory and trying
a plain 'have_header("ssl.h")', but no luck with that either.

On the theory that it might be the space in 'Program Files' causing
the problem, i tried re-installing SSL to just "C:\OpenSSL" but that
didn't help either. Any ideas?

Thanks.

Dan
 
N

nobu.nokada

Hi,

At Mon, 21 Jun 2004 10:48:15 +0900,
Daniel Berger wrote in [ruby-talk:104215]:
have_header(header) # Always comes back 'no'

I also tried setting %INCLUDE% to the appropriate directory and trying
a plain 'have_header("ssl.h")', but no luck with that either.

Show us the mkmf.logs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top