Compilation Problem of openvpn-2.0_beta11
Hi,
I am trying to compile the OpenVpn in windows but no success,
i have installed Mingw,Msys i have opensssl and lzo libraries source also but
i have set path for openssl and lzo in makefile.w32 as
OPENSSL = /f/openssl-0.9.7d
LZO = /f/lzo-1.08
because both are at f:/openssl-0.9.7d and f:/lzo-1.08
when i try to compile the source through mingw by applying command
Make -f makefile.w32
i get errors as
gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin - If:/openssl-0.9.7d/include -If:/lzo-1.08/include -c crypto.c -o crypto.o In file included from crypto.c:36:
crypto.h:102: parse error before '*' tokencrypto.h: In function `EVP_CipherInit_ov':
crypto.h:104: warning: implicit declaration of function EVP_CipherInit' crypto.h:104: ctx' undeclared (first use in this function) crypto.h:104: (Each undeclared identifier is reported only once crypto.h:104: for each function it appears in.)
crypto.h:104: type' undeclared (first use in this function) crypto.h:104: key' undeclared (first use in this function) crypto.h:104: iv' undeclared (first use in this function) crypto.h:104: enc' undeclared (first use in this function) crypto.h: At top level:
crypto.h:109: parse error before '*' tokencrypto.h: In function `EVP_CipherUpdate_ov':
crypto.h:111: warning: implicit declaration of function EVP_CipherUpdate' crypto.h:111: ctx' undeclared (first use in this function) crypto.h:111: out' undeclared (first use in this function) crypto.h:111: outl' undeclared (first use in this function) crypto.h:111: in' undeclared (first use in this function) crypto.h:111: inl' undeclared (first use in this function) crypto.h: At top level:
crypto.h:190: warning: type defaults to int' in declaration of EVP_CIPHER' crypto.h:190: warning: no semicolon at end of struct or union
........
..........
.......
do anybody know wat is the problem?
looking for a quick response..
Regards,
ZEE
Make sure you have a tap-win32 subdirectory below your make directory with appropriate files in it.
James
Quoted 72 lines · zeeshaan
Hi,
I am trying to compile the OpenVpn in windows but no success,
i have installed Mingw,Msys i have opensssl and lzo libraries source also but
i have set path for openssl and lzo in makefile.w32 as
OPENSSL = /f/openssl-0.9.7d
LZO = /f/lzo-1.08because both are at f:/openssl-0.9.7d and f:/lzo-1.08
when i try to compile the source through mingw by applying command
Make -f makefile.w32
i get errors as
gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin - If:/openssl-0.9.7d/include -If:/lzo-1.08/include -c
crypto.c-o crypto.o In file included from crypto.c:36:
crypto.h:102: parse error before '*' tokencrypto.h: In function `EVP_CipherInit_ov':
crypto.h:104: warning: implicit declaration of functionEVP_CipherInit' crypto.h:104:ctx' undeclared (first use in this function) crypto.h:104: (Each undeclared identifier is reported only once crypto.h:104: for each function it appears in.)
crypto.h:104:type' undeclared (first use in this function) crypto.h:104:key' undeclared (first use in this function) crypto.h:104:iv' undeclared (first use in this function) crypto.h:104:enc' undeclared (first use in this function)crypto.h: At top level:
crypto.h:109: parse error before '*' tokencrypto.h: In function `EVP_CipherUpdate_ov':
crypto.h:111: warning: implicit declaration of functionEVP_CipherUpdate' crypto.h:111:ctx' undeclared (first use in this function) crypto.h:111:out' undeclared (first use in this function) crypto.h:111:outl' undeclared (first use in this function) crypto.h:111:in' undeclared (first use in this function) crypto.h:111:inl' undeclared (first use in this function)crypto.h: At top level:
crypto.h:190: warning: type defaults toint' in declaration ofEVP_CIPHER' crypto.h:190: warning: no semicolon at end of struct or union
........
..........
.......do anybody know wat is the problem?
looking for a quick response..
Regards,
ZEE-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Quoted 23 lines · zeeshaan
Hi,
I am trying to compile the OpenVpn in windows but no success,
i have installed Mingw,Msys i have opensssl and lzo libraries source also but
when i try to compile the source through mingw by applying command
Make -f makefile.w32
i get errors as
gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin - If:/openssl-0.9.7d/include -If:/lzo-1.08/include -c
crypto.c-o crypto.o In file included from crypto.c:36:
crypto.h:102: parse error before '*' tokencrypto.h: In function `EVP_CipherInit_ov':
crypto.h:104: warning: implicit declaration of functionEVP_CipherInit' crypto.h:104:ctx' undeclared (first use in this function) crypto.h:104: (Each undeclared identifier is reported only once crypto.h:104: for each function it appears in.)
.......
Quoted 1 line
do anybody know wat is the problem?
I think I found your problem!
When you extract the openssl tar-ball the include files in include/openssl is all empty, and then you get exactly the above errors when trying to build openvpn.
Run "./Configure mingw" to make it copy the include files into the right place.
You build it like this: (Big thanks to James for helping me first time I had todo this!)
(1) Make sure you have mingw, msys, and perl installed.
(2) From the top level openssl-0.9.x directory, edit ms/mw.bat.
(3) Find the line that says:
make -f ms/mingw32.mak
Change to:
make --win32 -f ms/mingw32.mak
(4) From a command prompt window (not msys bash), cd to top-level openssl directory.
(5) Type "ms\mw" to start build.
(6) When build is finished, the .DLLs will be in the top level openssl directory and the .a and .exe files will be in the "out" subdirectory.
--
_____________________________________________________________
Mathias Sundman (^) ASCII Ribbon Campaign OpenVPN GUI for Windows X NO HTML/RTF in e-mail http://www.nilings.se/openvpn / \ NO Word docs in e-mail
Quoted 7 lines · James Yonan <jim <at> yonan.net> writes:
Make sure you have a tap-win32 subdirectory below your make directory with appropriate files in it.
James
i do have tap-win32 as
openvpn-2.0_beta11\tap-win32
\i386 \OemWin2k.inf \tap.cat \common.h \constants.h \dhcp.h \dhcp.c \endian.h \error.c \error.h \hexdump.c \hexdump.h \interface.c \lock.h \macinfo.c \macinfo.h \mem.c \prot.h \prototypes.h \resource.rc \Source \tapdrv.c \types.h
is there anything missing?
i am still confused about the path i supplied for openssl and lzo wats the way to write that?
thanx for the reply.
hoping for the same quick response.
Zeeshaan
thanx Mathew actually i was doing wrong that i was not running ms/mw.bat first
but now i am having problem with openssl as
as it says
f:/djgpp/bin/make.exe: unrecognized option `--win32'
wats up now i think its something wrong with make now.
wat to do? again thanx for the help, and I hope for the helping reply soon.
Zeeshaan
Quoted 10 lines · zeeshaan
thanx Mathew actually i was doing wrong that i was not running ms/mw.bat first
but now i am having problem with openssl as
as it says
f:/djgpp/bin/make.exe: unrecognized option `--win32'
wats up now i think its something wrong with make now.
Well, djgpp isn't msys/mingw :-)
Try to remove djgpp from your system path, or just make sure msys and mingw is listed BEFORE djgpp.
Signature · 4 lines
_________________________________________________________ Mathias Sundman (^) ASCII Ribbon Campaign NILINGS AB X NO HTML/RTF in e-mail Tel: +46-(0)8-666 32 28 / \ NO Word docs in e-mail