build Openvpn 2.1RC4 on Windows failure (Repost, no answer in openvpn.user group.
Hi,
I'm reposting this question in openvpn.devel because no one responded in openvpn.user to my question.
If the build procedure has changed between RC1 and RC4, can anybody explain how to build OpenVPN 2.1RC4 on Windows?
make -f makefile.w32 was the the way that worked until RC1...
Thanx in advance,
John
I'm trying to build Openvpn-2.1RC4 on Windows and it failed.
C:\msys\1.0\src\openvpn-2.1_rc4>make -f makefile.w32
gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin -I/c/msys /1.0/src/openssl-0.9.7l/include -I/c/msys/1.0/src/lzo-2.02/include -c base64.c -
o base64.o
In file included from base64.c:35:
config-win32.h:38:27: autodefs/defs.h: No such file or directory
make: *** [base64.o] Error 1
Config-win32.h is calling autodefs/defs.h. But autodefs/defs.h is not present in the source tree.
#include "autodefs/defs.h" was not present in RC1 which build successfully.
Removing the the offending line from Config-win32.h coursed the build to fail later on:
C:\msys\1.0\src\openvpn-2.1_rc4>make -f makefile.w32
gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin -I/c/msys /1.0/src/openssl-0.9.7l/include -I/c/msys/1.0/src/lzo-2.02/include -c base64.c -
o base64.o
gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin -I/c/msys /1.0/src/openssl-0.9.7l/include -I/c/msys/1.0/src/lzo-2.02/include -c buffer.c -
o buffer.o
gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin -I/c/msys /1.0/src/openssl-0.9.7l/include -I/c/msys/1.0/src/lzo-2.02/include -c crypto.c -
o crypto.ocrypto.c: In function `get_cipher':
crypto.c:418: error: syntax error before "PRODUCT_NAME" crypto.c:418: error: `PRODUCT_NAME' undeclared (first use in this function) crypto.c:418: error: (Each undeclared identifier is reported only once crypto.c:418: error: for each function it appears in.)crypto.c: In function `get_md':
crypto.c:434: error: syntax error before "PRODUCT_NAME" crypto.c:434: error: PRODUCT_NAME' undeclared (first use in this function) crypto.c: In function init_key_type':
crypto.c:529: error: syntax error before "PRODUCT_NAME" crypto.c:529: error: PRODUCT_NAME' undeclared (first use in this function) crypto.c: In function test_crypto':
crypto.c:867: error: syntax error before "PRODUCT_NAME" crypto.c:867: error: `PRODUCT_NAME' undeclared (first use in this function) crypto.c:903: error: syntax error before string constantcrypto.c: In function `get_tls_handshake_key':
crypto.c:947: error: syntax error before "PRODUCT_NAME" crypto.c:947: error: `PRODUCT_NAME' undeclared (first use in this function) crypto.c: At top level:
crypto.c:994: error: syntax error before "PRODUCT_NAME" crypto.c:995: error: syntax error before "PRODUCT_NAME"crypto.c: In function `write_key_file':
crypto.c:1301: error: syntax error before "PRODUCT_NAME"crypto.c: In function `must_have_n_keys':
crypto.c:1327: error: syntax error before "PRODUCT_UNIX_NAME" crypto.c:1327: error: `PRODUCT_UNIX_NAME' undeclared (first use in this function
)crypto.c: In function `show_available_ciphers':
crypto.c:1475: error: syntax error before "PRODUCT_NAME"crypto.c: In function `show_available_digests':
crypto.c:1510: error: syntax error before "PRODUCT_NAME"
make: *** [crypto.o] Error 1
Can anybody explain what I''m missing and what's why going wrong.
Regards,
John
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Re: [Openvpn-devel] build Openvpn 2.1RC4 on Windows failure (Repost, no answer in
Hi john,
You have to run 'winconfig' script from root folder
(openvpn-2.1_rc4/) before building openvpn. This will prepare all the files necessary for building openvpn. You can find this script inside 'openvpn-2.1_rc4/install-win32/' folder. Msys can be used to run this script on windows.
Regds,
Girish KS
Quoted 106 lines
From: "John" <[email protected]...>
To: [email protected]
Subject: [Openvpn-devel] build Openvpn 2.1RC4 on Windows failure (Repost,no answer in openvpn.user group.
Date: Fri, 6 Jul 2007 12:17:58 +0200Hi,
I'm reposting this question in openvpn.devel because no one responded in openvpn.user to my question.
If the build procedure has changed between RC1 and RC4, can anybody explain how to build OpenVPN 2.1RC4 on Windows?
make -f makefile.w32 was the the way that worked until RC1...Thanx in advance,
JohnI'm trying to build Openvpn-2.1RC4 on Windows and it failed.
C:\msys\1.0\src\openvpn-2.1_rc4>make -f makefile.w32
gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin -I/c/msys
/1.0/src/openssl-0.9.7l/include -I/c/msys/1.0/src/lzo-2.02/include -cbase64.c-
o base64.o
In file included from base64.c:35:
config-win32.h:38:27:autodefs/defs.h: No such file or directory
make: *** [base64.o] Error 1
Config-win32.his callingautodefs/defs.h. Butautodefs/defs.his not present in the source tree.
#include "autodefs/defs.h" was not present in RC1 which build successfully.Removing the the offending line from
Config-win32.hcoursed the build to fail later on:C:\msys\1.0\src\openvpn-2.1_rc4>make -f makefile.w32
gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin -I/c/msys
/1.0/src/openssl-0.9.7l/include -I/c/msys/1.0/src/lzo-2.02/include -cbase64.c-
o base64.o
gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin -I/c/msys
/1.0/src/openssl-0.9.7l/include -I/c/msys/1.0/src/lzo-2.02/include -cbuffer.c-
o buffer.o
gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin -I/c/msys
/1.0/src/openssl-0.9.7l/include -I/c/msys/1.0/src/lzo-2.02/include -ccrypto.c-
o crypto.ocrypto.c: In function `get_cipher':
crypto.c:418: error: syntax error before "PRODUCT_NAME" crypto.c:418: error: `PRODUCT_NAME' undeclared (first use in this function) crypto.c:418: error: (Each undeclared identifier is reported only once crypto.c:418: error: for each function it appears in.)crypto.c: In function `get_md':
crypto.c:434: error: syntax error before "PRODUCT_NAME" crypto.c:434: error:PRODUCT_NAME' undeclared (first use in this function) crypto.c: In functioninit_key_type':
crypto.c:529: error: syntax error before "PRODUCT_NAME" crypto.c:529: error:PRODUCT_NAME' undeclared (first use in this function) crypto.c: In functiontest_crypto':
crypto.c:867: error: syntax error before "PRODUCT_NAME" crypto.c:867: error:PRODUCT_NAME' undeclared (first use in this function) crypto.c:903: error: syntax error before string constant crypto.c: In functionget_tls_handshake_key':
crypto.c:947: error: syntax error before "PRODUCT_NAME" crypto.c:947: error: `PRODUCT_NAME' undeclared (first use in this function)crypto.c: At top level:
crypto.c:994: error: syntax error before "PRODUCT_NAME" crypto.c:995: error: syntax error before "PRODUCT_NAME"crypto.c: In function `write_key_file':
crypto.c:1301: error: syntax error before "PRODUCT_NAME"crypto.c: In function `must_have_n_keys':
crypto.c:1327: error: syntax error before "PRODUCT_UNIX_NAME" crypto.c:1327: error: `PRODUCT_UNIX_NAME' undeclared (first use in this function
)crypto.c: In function `show_available_ciphers':
crypto.c:1475: error: syntax error before "PRODUCT_NAME"crypto.c: In function `show_available_digests':
crypto.c:1510: error: syntax error before "PRODUCT_NAME"
make: *** [crypto.o] Error 1Can anybody explain what I''m missing and what's why going wrong.
Regards,
John
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Quoted 9 lines
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
_________________________________________________________________
Millions of profiles with photos. Search now @ Shaadi.com http://ss1.richmedia.in/recurl.asp?pid=108
Quoted 11 lines · John
Hi,
I'm reposting this question in openvpn.devel because no one responded in openvpn.user to my question. If the build procedure has changed between RC1 and RC4, can anybody explain how to build OpenVPN 2.1RC4 on Windows? make -f makefile.w32 was the the way that worked until RC1...
Thanx in advance,
JohnI'm trying to build Openvpn-2.1RC4 on Windows and it failed.
Quoted 10 lines
C:\msys\1.0\src\openvpn-2.1_rc4>make -f makefile.w32
gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin -I/c/msys /1.0/src/openssl-0.9.7l/include -I/c/msys/1.0/src/lzo-2.02/include -cbase64.c-
o base64.o
In file included from base64.c:35:
config-win32.h:38:27:autodefs/defs.h: No such file or directory
make: *** [base64.o] Error 1
[ more stuff deleted ]
John,
Yes, there have been some changes in the Windows build procedure for the 2.1 beta series.
The ./domake-win script is now used to build OpenVPN on Windows (in the MinGW/MSYS environment). This approach has a number of advantages, including the ability to build a signed Windows installer from source in a single step, and the consolidation of build-level configuration parameters in a single file: install-win32/settings.in
Changes such as these that are of interest to developers are always documented first in the subversion commit logs (use "svn log" to see them).
James