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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============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: "undefined symbol: L= NK2019<br> undefined symbol _exit_stunnel referenced in function _main_initialize"= ;. <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 (<a href=3D"mailto:bri@stunnel.org">bri@stu= nnel.org</a>)<br> <br> # This makefile is only tested on the mingw compiler. Mingw<br> # can successfully compile both openssl and stunnel. 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> # -DCERT_FILE=3D\"/stunnel/certs/certs.pem\"<br= > <br> # Location of default certificate directory for -v option<br> # -DCERT_DIR=3D\"/stunnel/certs\"<br> <br> # Default directory for stunnel.pem file<br> # -DPEM_DIR=3D\"/stunnel/private\"<br> <br> # Use the default certificate sources from your ssl library? (0=3D=3D= no, 1=3D=3Dyes)<br> # -DSSLLIB_CS=3D0<br> <br> CC=3Dcl<br> CFLAGS=3D $(DEFINES) /I"$(SSLDIR)inc32"<br> LDFLAGS=3D/LIBPATH:"$(SSLDIR)\out" /LIBPATH:"$(SSLDIR)\out32= dll"<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"$(SSLDIR)\out32dll\libeay32.lib" "$(SSLDIR)\out32dll= \ssleay32.lib" "wsock32.lib" "gdi32.lib"<br> OBJS=3Dstunnel.obj ssl.obj protocol.obj sthreads.obj log.obj<br> <br> stunnel.exe: $(OBJS)<br> $(CC) $(LDFLAGS) -o stunnel.exe $(OBJS) $(LIBS)<br> <br> ..c.obj:<br> # {.}.c{_obj\}.obj::<br> $(CC) /c $(CFLAGS) $(INCPATH) @<<<br> $<<br> <<<br> clean:<br> del *.o<br> 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==-- |