[stunnel-users] Visual studio compilation errors

This is a discussion on [stunnel-users] Visual studio compilation errors within the Stunnel Users forums, part of the Networking and Network Related category; --===============0030751375== Content-Type: multipart/alternative; boundary="----=_Part_27990_5929890.1132083769665" ------=_Part_27990_5929890.1132083769665 Content-Type: text/plain; charset=ISO-8859-1 ...


Go Back   Usenet Forums > Networking and Network Related > Stunnel Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-16-2005
Jorge Abrines
 
Posts: n/a
Default [stunnel-users] Visual studio compilation errors

--===============0030751375==
Content-Type: multipart/alternative;
boundary="----=_Part_27990_5929890.1132083769665"

------=_Part_27990_5929890.1132083769665
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi,

After browsing all previous list messages I havent found information about
an error I get compiling stunnel with visual studio. The errors appear in
linking step with undefined symbol message: "undefined symbol: LNK2019
undefined symbol _exit_stunnel referenced in function _main_initialize".

I also attach the Makefile.w32 changed to work with visual studio.

Thanks in advance.

Regards,

Jorge.

Makefile.w32 follows:
# Simple Makefile.w32 for stunnel.exe by Michal Trojnara 1998-2000
#
# Modified by Brian Hatch (bri@stunnel.org)

# This makefile is only tested on the mingw compiler. Mingw
# can successfully compile both openssl and stunnel. If you want
# to use another compiler, give it a shot, and tell us how it went.

# Modify this to point to your actual openssl compile directory
# (You did already compile openssl, didn't you???)
SSLDIR=3D..\..\openssl-0.9.7g



DEFINES=3D-DUSE_WIN32 -DHAVE_OPENSSL

# You may want to add some of the following flags
# to the DEFINES definition above.

# Location of default certificate file for -v option
# -DCERT_FILE=3D\"/stunnel/certs/certs.pem\"

# Location of default certificate directory for -v option
# -DCERT_DIR=3D\"/stunnel/certs\"

# Default directory for stunnel.pem file
# -DPEM_DIR=3D\"/stunnel/private\"

# Use the default certificate sources from your ssl library? (0=3D=3Dno, 1=
=3D=3Dyes)
# -DSSLLIB_CS=3D0

CC=3Dcl
CFLAGS=3D $(DEFINES) /I"$(SSLDIR)inc32"
LDFLAGS=3D/LIBPATH:"$(SSLDIR)\out" /LIBPATH:"$(SSLDIR)\out32dll"

# LIBS=3D-L$(SSLDIR)/out -lssl -lcrypto -lwsock32 -lgdi32

# LIBS=3D-L$(SSLDIR)/out -leay32 -lssl32 -lwsock32 -lgdi32
LIBS=3D"$(SSLDIR)\out32dll\libeay32.lib" "$(SSLDIR)\out32dll\ssleay32.lib" =
"
wsock32.lib" "gdi32.lib"
OBJS=3Dstunnel.obj ssl.obj protocol.obj sthreads.obj log.obj

stunnel.exe: $(OBJS)
$(CC) $(LDFLAGS) -o stunnel.exe $(OBJS) $(LIBS)

..c.obj:
# {.}.c{_obj\}.obj::
$(CC) /c $(CFLAGS) $(INCPATH) @<<
$<
<<
clean:
del *.o
del stunnel.exe

------=_Part_27990_5929890.1132083769665
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi, <br>
<br>
After browsing all previous list messages I havent found information about =
<br>
an error I get compiling stunnel with visual studio. The errors appear in <=
br>
linking step with undefined symbol message: &quot;undefined symbol:&nbsp; L=
NK2019<br>
undefined symbol _exit_stunnel referenced in function _main_initialize&quot=
;. <br>
<br>
I also attach the Makefile.w32 changed to work with visual studio. <br>
<br>
Thanks in advance. <br>
<br>
Regards, <br>
<br>
Jorge. <br>
<br>
Makefile.w32 follows:<br>
# Simple Makefile.w32 for stunnel.exe by Michal Trojnara 1998-2000<br>
#<br>
# Modified by Brian Hatch&nbsp; (<a href=3D"mailto:bri@stunnel.org">bri@stu=
nnel.org</a>)<br>
<br>
# This makefile is only tested on the mingw compiler.&nbsp; Mingw<br>
# can successfully compile both openssl and stunnel.&nbsp; If you want<br>
# to use another compiler, give it a shot, and tell us how it went.<br>
<br>
# Modify this to point to your actual openssl compile directory<br>
# (You did already compile openssl, didn't you???)<br>
SSLDIR=3D..\..\openssl-0.9.7g<br>
<br>
<br>
<br>
DEFINES=3D-DUSE_WIN32 -DHAVE_OPENSSL<br>
<br>
# You may want to add some of the following flags<br>
# to the DEFINES definition above.<br>
<br>
# Location of default certificate file for -v option<br>
#&nbsp;&nbsp;&nbsp; -DCERT_FILE=3D\&quot;/stunnel/certs/certs.pem\&quot;<br=
>

<br>
# Location of default certificate directory for -v option<br>
#&nbsp;&nbsp;&nbsp; -DCERT_DIR=3D\&quot;/stunnel/certs\&quot;<br>
<br>
# Default directory for stunnel.pem file<br>
#&nbsp;&nbsp;&nbsp; -DPEM_DIR=3D\&quot;/stunnel/private\&quot;<br>
<br>
# Use the default certificate sources from your ssl library?&nbsp; (0=3D=3D=
no, 1=3D=3Dyes)<br>
#&nbsp;&nbsp;&nbsp; -DSSLLIB_CS=3D0<br>
<br>
CC=3Dcl<br>
CFLAGS=3D $(DEFINES) /I&quot;$(SSLDIR)inc32&quot;<br>
LDFLAGS=3D/LIBPATH:&quot;$(SSLDIR)\out&quot; /LIBPATH:&quot;$(SSLDIR)\out32=
dll&quot;<br>
<br>
# LIBS=3D-L$(SSLDIR)/out -lssl -lcrypto -lwsock32 -lgdi32<br>
<br>
# LIBS=3D-L$(SSLDIR)/out -leay32 -lssl32 -lwsock32 -lgdi32<br>
LIBS=3D&quot;$(SSLDIR)\out32dll\libeay32.lib&quot; &quot;$(SSLDIR)\out32dll=
\ssleay32.lib&quot; &quot;wsock32.lib&quot; &quot;gdi32.lib&quot;<br>
OBJS=3Dstunnel.obj ssl.obj protocol.obj sthreads.obj log.obj<br>
<br>
stunnel.exe: $(OBJS)<br>
&nbsp;&nbsp;&nbsp; $(CC) $(LDFLAGS) -o stunnel.exe $(OBJS) $(LIBS)<br>
<br>
..c.obj:<br>
# {.}.c{_obj\}.obj::<br>
&nbsp;&nbsp;&nbsp; $(CC) /c $(CFLAGS) $(INCPATH) @&lt;&lt;<br>
&nbsp;&nbsp;&nbsp; $&lt;<br>
&lt;&lt;<br>
clean:<br>
&nbsp;&nbsp;&nbsp; del *.o<br>
&nbsp;&nbsp;&nbsp; del stunnel.exe<br>
<br>
<br>

------=_Part_27990_5929890.1132083769665--

--===============0030751375==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
stunnel-users mailing list
stunnel-users@mirt.net
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

--===============0030751375==--
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:23 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0