# Can't build openssl(ruby-1.8.7-p17) with VC6

**URL:** <https://www.ruby-forum.com/t/cant-build-openssl-ruby-1-8-7-p17-with-vc6/140271>\
**Category:** Development\
**Created:** [June 12, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/cant-build-openssl-ruby-1-8-7-p17-with-vc6/140271 "2008-06-12T13:46:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arton](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/90db22/32.png) [@arton](https://www.ruby-forum.com/u/arton)\
**Post date:** [June 12, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/cant-build-openssl-ruby-1-8-7-p17-with-vc6/140271/1 "2008-06-12T13:46:35Z")

</div>

artone$B$G$9!#e(B

VC6e$B$rMxMQ$7$?e(Bruby-1.8.7-p17e$B$Ne(Bmakee$BCf$K!"e(Bopenssle$B$G%3%s%Q%$%k%(%i!\<$H$J$j$^e(B  
e$B$9!#e(B

```
    cl -nologo -I. -I../.. -I../.././.. -I../.././../ext/openssl -MD 

```

-Zi -O  
2b2xg- -G6 -DRUBY\_EXTCONF\_H="extconf.h" -c  
-Tc…/…/./…/ext/openssl/ossl.c  
ossl.c  
C:\Program Files (x86)\Microsoft Visual  
Studio\VC98\include\winsock2.h(99) : err  
or C2011: ‘fd\_set’ : ‘struct’  
e$B$G\<($5$l$k7?$H$7$F$9$G$KDj5A$5$l$F$$$^$9!#e(B  
C:\Program Files (x86)\Microsoft Visual  
Studio\VC98\include\winsock.h(49  
) : ‘fd\_set’ e$B$N@k8@$r3NG’$7$F$/$@$5$$!#e(B  
(snip)

e$BB?J,!"$3$N%Q%C%A$GNI$$$H;W$&$N$G$9$,!#e(B

c:\home\ruby\ruby-1.8.7-p17\ext\openssl\>diff -u -p ossl.h~ ossl.h  
diff: conflicting specifications of output style  
\*\*\* ossl.h~ Sun Jul 15 22:24:51 2007  
— ossl.h Thu Jun 12 20:43:57 2008  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* extern “C” {  
\*\*\* 46,52 \*\*\*\*

#if defined(\_WIN32)

# define OSSL\_NO\_CONF\_API 1

! # include \<winsock2.h\>  
#endif  
#include \<errno.h\>  
#include \<openssl/err.h\>  
— 46,56 ----

#if defined(\_WIN32)

# define OSSL\_NO\_CONF\_API 1

! #ifdef USE\_WINSOCK2  
! # include \<winsock2.h\>  
! #else  
! # include \<winsock.h\>  
! #endif  
#endif  
#include \<errno.h\>  
#include \<openssl/err.h\>

–  
arton [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![arton](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/90db22/32.png) [@arton](https://www.ruby-forum.com/u/arton)\
**Post date:** [June 12, 2008, 2:05pm UTC](https://www.ruby-forum.com/t/cant-build-openssl-ruby-1-8-7-p17-with-vc6/140271/2 "2008-06-12T14:05:30Z")

</div>

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:35078] can’t build openssl(ruby-1.8.7-p17) with  
VC6”  
on Jun.12,2008 20:45:39, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> VC6e$B$rMxMQ$7$?e(Bruby-1.8.7-p17e$B$Ne(Bmakee$BCf$K!"e(Bopenssle$B$G%3%s%Q%$%k%(%i!\<$H$J$j$^e(B  
> e$B$9!#e(B

openssle$B$Oe(B–with-winsock2e$B$8$c$J$$$H%3%s%Q%$%k$G$-$J$$$8$c$s%Pe(B  
e$B%+%P%+e(Bopenssle$B$J$s$+7y$$e(B! e$B$G;W9MDd;_$7$F$^$7$?!#e(B  
(e$B\>!\<j$Ke(B)e$B$H$j$3$_$^$9!#$I$&$b$"$j$,$H$&$4$6$$$^$9!#e(B

e$B$=$l$G$O!#e(B
