<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I installed gcc and the latest version of openssl on my aix 5.3 server.<br>
I did the ./configure and all went well.<br>
When I did the make I recieved the following error.<br>
<br>
<br>
        if gcc -DPACKAGE_NAME=\"stunnel\"
-DPACKAGE_TARNAME=\"stunnel\" -DPACKAGE_VERSION=\"4.28\" <br>
-DPACKAGE_STRING=\"stunnel\ 4.28\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"stunnel\" -DVERSION=\"4.28\" <br>
-DHOST=\"powerpc-ibm-aix5.3.0.0\" -DCPU_POWERPC=1 -DVENDOR_IBM=1
-DOS_AIX5_3_0_0=1 -DSTDC_HEADERS=1 <br>
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 <br>
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 <br>
-DSIZEOF_UNSIGNED_CHAR=1 -DSIZEOF_UNSIGNED_SHORT=2 -DSIZEOF_UNSIGNED_INT=4
-DSIZEOF_UNSIGNED_LONG=4 <br>
-DHAVE_DEV_PTS_AND_PTC=1 -DRANDOM_FILE=\"/dev/urandom\"
-DHAVE_UCONTEXT_H=1 -DHAVE_PTHREAD_H=1 <br>
-DHAVE_SYS_SELECT_H=1 -DHAVE_POLL_H=1 -DHAVE_SYS_POLL_H=1 -DHAVE_SYS_IOCTL_H=1
-DHAVE_STROPTS_H=1 <br>
-DHAVE_GRP_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_SYS_SOCKET_H=1 <br>
-DHAVE_STRUCT_MSGHDR_MSG_CONTROL=1 -DHAVE_MSGHDR_MSG_CONTROL=1 -DHAVE_LIBDL=1 <br>
-DHAVE_LIBZ=1 -DHAVE_LIBPTHREAD=1 -DUSE_PTHREAD=1 -DHAVE_SNPRINTF=1
-DHAVE_VSNPRINTF=1 -DHAVE_WAITPID=1 <br>
-DHAVE_WAIT4=1 -DHAVE_SETSID=1 -DHAVE_SETGROUPS=1 -DHAVE_CHROOT=1
-DHAVE_SYSCONF=1 -DHAVE_GETRLIMIT=1 <br>
-DHAVE_PTHREAD_SIGMASK=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GETCONTEXT=1 -DHAVE_POLL=1
-DHAVE_ENDHOSTENT=1 <br>
-DHAVE_GETNAMEINFO=1 -DHAVE_GETADDRINFO=1 -DHAVE_OPENSSL=1 -Dssldir=\"/usr\"
-DHAVE_OSSL_ENGINE_H=1 <br>
-DUSE_IPv6=1 -I. -I. -I/usr/kerberos/include -DLIBDIR='"/usr/local/lib/stunnel"'
<br>
-DCONFDIR='"/usr/local/etc/stunnel"' -DPIDFILE='"/usr/local/var/run/stunnel/stunnel.pid"'   
<br>
-g -O2 -Wall -Wshadow -Wcast-align -Wpointer-arith -I/usr/include -MT options.o
-MD -MP -MF ".deps/options.<br>
Tpo" -c -o options.o options.c;  then mv -f ".deps/options.Tpo"
".deps/options.Po"; <br>
else rm -f ".deps/options.Tpo"; exit 1; fi<br>
<br>
options.c:1773: error: 'SOL_TCP' undeclared here (not in a function)<br>
make: 1254-004 The error code from the last command is 1.<br>
 <br>
 <br>
Stop.<br>
make: 1254-004 The error code from the last command is 1.<br>
<br>
<br>
The SOL_TCP option is not defined on AIX. <br>
I am hoping this can be applied to SOL_SOCKET which is defined.<br>
<br>
So...<br>
I changed the following lines in the options.c program<br>
<br>
#ifdef TCP_KEEPCNT<br>
/*    {"TCP_KEEPCNT",    
SOL_TCP,     TCP_KEEPCNT,    
TYPE_INT,     DEF_VALS}, */<br>
    {"TCP_KEEPCNT",    
SOL_SOCKET,  TCP_KEEPCNT,    
TYPE_INT,     DEF_VALS}, <br>
#endif<br>
#ifdef TCP_KEEPIDLE<br>
/*    {"TCP_KEEPIDLE",   
SOL_TCP,     TCP_KEEPIDLE,   
TYPE_INT,     DEF_VALS}, */<br>
    {"TCP_KEEPIDLE",    SOL_SOCKET, 
TCP_KEEPIDLE,    TYPE_INT,     DEF_VALS}, <br>
#endif<br>
#ifdef TCP_KEEPINTVL<br>
/*    {"TCP_KEEPINTVL",  
SOL_TCP,     TCP_KEEPINTVL,  
TYPE_INT,     DEF_VALS},*/<br>
    {"TCP_KEEPINTVL",   SOL_SOCKET, 
TCP_KEEPINTVL,   TYPE_INT,     DEF_VALS}, <br>
<br>
I can compile the code without error at this point.<br>
So... my question is has anyone else made a similar change to get the code to
compile on AIX 5.3?<br>
<br>
If not, can you please tell me what configuration options you used to make stunnel
work.<br>
<br>
Thanks for any help you can provide.<br>
I am at my wits end here and pretty much my capability in compiling code.<br>
<br>
Thanks in advance,<br>
<br>
</span></font>Geoff</p>

</div>

</body>

</html>