BTW: You can skip pkcs11-helper if you don't use smartcards in OpenVPN, just use --disable-pkcs11 in OpenVPN configure script.
On Sun, Mar 28, 2010 at 1:13 PM, Alon Bar-Lev <alon.bar...@gmail.com> wrote: > Forget the build script, I never saw these errors, and I guess it is > because you do not checkout the complete project. > > Also, mingw host should be i686-w32-mingw32 or i686-w64-mingw32 for > 32bit, use crossdev to install these. > > But let's say you want to compile only pkcs11-helper without build script. > > Compile openssl and install it to ${OPENSSL_ROOT}, you must do this > for OpenVPN to be compiled anyway. > > Then compile pkcs11-helper: > > $ ./configure --host=i686-w32-mingw32 --disable-crypto-engine-gnutls > --disable-crypto-engine-nss OPENSSL_CFLAGS="-I${OPENSSL_ROOT}/openssl" > OPENSSL_LIBS="-L${OPENSSL_ROOT}/lib -lcrypto" > --prefix="${PKCS11H_ROOT}" > $ make install > > Good luck, > Alon. > > On Mon, Mar 22, 2010 at 9:36 PM, B. V. <phi...@gmail.com> wrote: >> >> Hi ! >> >> I don't want to disturb you, but it seems that I coudln't make my self >> understood. >> I want to manualy compile OpenVPN-2.1.1, step by step, using each of it's >> external libraries dependences. >> I don't want to use any external "build" scripts made especialy to build >> OpenVPN ( as I understood from you: >> http://www.opensc-project.org/build/browser/trunk/build & >> http://www.opensc-project.org/build/browser/trunk/build.vars ), because it >> fails on my linux distribution ( Gentoo x86_64 ) ! >> >> I just want to obtain pkcs11-helper's .dll & .h files to be able to manualy >> compile OpenVPN ! >> I managed to compile almost anything ele for OpenVPN-2.1.1, except this >> pkcs11-helper .... >> >> From your advice, using "build" script ( downloaded from >> http://www.opensc-project.org/build/browser/trunk/ ): >> >> $ CHOST=i686-mingw32 CBUILD=x86_64-pc-linux-gnu ./build >> ----- snip ----- >> Extract '/usr/local/src/openvpn/opensc/sources/zlib-1.2.4.tar.gz' >> Build zlib >> /bin/sh: -c: line 1: syntax error: unexpected end of file >> make: [install] Error 2 (ignored) >> /bin/sh: -c: line 1: syntax error: unexpected end of file >> make: [install] Error 2 (ignored) >> cp -fp zlib.h /usr/local/src/openvpn/opensc/image/opensc/include >> cp: cannot create regular file >> `/usr/local/src/openvpn/opensc/image/opensc/include': No such file or >> directory >> make: [install] Error 1 (ignored) >> cp -fp zconf.h /usr/local/src/openvpn/opensc/image/opensc/include >> cp: cannot create regular file >> `/usr/local/src/openvpn/opensc/image/opensc/include': No such file or >> directory >> make: [install] Error 1 (ignored) >> cp -fp libz.a /usr/local/src/openvpn/opensc/image/opensc/lib >> cp: cannot stat `libz.a': No such file or directory >> make: [install] Error 1 (ignored) >> cp -fp libzdll.a /usr/local/src/openvpn/opensc/image/opensc/lib >> cp: cannot stat `libzdll.a': No such file or directory >> make: [install] Error 1 (ignored) >> Build libtool >> ----- snip ----- >> i686-mingw32-strip: '/usr/local/src/openvpn/opensc/image/opensc/bin/iconv': >> No such file >> Fixup libtool files >> Build openssl >> Configuring for >> Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] >> [experimental-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] >> [no-hw-xxx|no-hw] [[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] >> [no-asm] [no-dso] [no-krb5] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] >> [--with-xxx[=vvv]] [--test-sanity] os/compiler[:flags] >> >> pick os/compiler from: >> BC-32 BS2000-OSD BSD-generic32 BSD-generic64 BSD-ia64 BSD-sparc64 BSD-sparcv8 >> BSD-x86 BSD-x86-elf BSD-x86_64 Cygwin Cygwin-pre1.3 DJGPP MPE/iX-gcc OS2-EMX >> OS390-Unix QNX6 QNX6-i386 ReliantUNIX SINIX SINIX-N UWIN VC-CE VC-WIN32 >> VC-WIN64A VC-WIN64I aix-cc aix-gcc aix3-cc aix64-cc aix64-gcc aux3-gcc >> beos-x86-bone beos-x86-r5 bsdi-elf-gcc cc cray-j90 cray-t3e darwin-i386-cc >> darwin-ppc-cc darwin64-ppc-cc darwin64-x86_64-cc dgux-R3-gcc dgux-R4-gcc >> dgux-R4-x86-gcc dist gcc hpux-cc hpux-gcc hpux-ia64-cc hpux-ia64-gcc >> hpux-parisc-cc hpux-parisc-cc-o4 hpux-parisc-gcc hpux-parisc1_0-cc >> hpux-parisc2-cc hpux-parisc2-gcc hpux64-ia64-cc hpux64-ia64-gcc >> hpux64-parisc2-cc hpux64-parisc2-gcc hurd-x86 irix-cc irix-gcc irix-mips3-cc >> irix-mips3-gcc irix64-mips4-cc irix64-mips4-gcc linux-alpha+bwx-ccc >> linux-alpha+bwx-gcc linux-alpha-ccc linux-alpha-gcc linux-aout linux-armv4 >> linux-elf linux-generic32 linux-generic64 linux-ia32-icc linux-ia64 >> linux-ia64-ecc linux-ia64-icc linux-ppc linux-ppc64 linux-s390x linux-sparcv8 >> linux-sparcv9 linux-x86_64 linux64-sparcv9 mingw mingw64 ncr-scde >> netware-clib >> netware-clib-bsdsock netware-clib-bsdsock-gcc netware-clib-gcc netware-libc >> netware-libc-bsdsock netware-libc-bsdsock-gcc netware-libc-gcc newsos4-gcc >> nextstep nextstep3.3 osf1-alpha-cc osf1-alpha-gcc purify qnx4 rhapsody-ppc-cc >> sco5-cc sco5-gcc solaris-sparcv7-cc solaris-sparcv7-gcc solaris-sparcv8-cc >> solaris-sparcv8-gcc solaris-sparcv9-cc solaris-sparcv9-gcc solaris-x86-cc >> solaris-x86-gcc solaris64-sparcv9-cc solaris64-sparcv9-gcc >> solaris64-x86_64-cc >> solaris64-x86_64-gcc sunos-gcc tandem-c89 tru64-alpha-cc uClinux-dist >> uClinux-dist64 ultrix-cc ultrix-gcc unixware-2.0 unixware-2.1 unixware-7 >> unixware-7-gcc vos-gcc vxworks-mipsle vxworks-ppc405 vxworks-ppc750 >> vxworks-ppc750-debug vxworks-ppc860 debug debug-BSD-x86-elf debug-Cygwin >> debug-VC-WIN32 debug-ben debug-ben-debug debug-ben-no-opt debug-ben-openbsd >> debug-ben-openbsd-debug debug-ben-strict debug-bodo debug-darwin-i386-cc >> debug-darwin-ppc-cc debug-geoff32 debug-geoff64 debug-levitte-linux-elf >> debug-levitte-linux-elf-extreme debug-levitte-linux-noasm >> debug-levitte-linux-noasm-extreme debug-linux-elf debug-linux-elf-noefence >> debug-linux-generic32 debug-linux-generic64 debug-linux-ia32-aes >> debug-linux-pentium debug-linux-ppro debug-linux-x86_64 debug-rse >> debug-solaris-sparcv8-cc debug-solaris-sparcv8-gcc debug-solaris-sparcv9-cc >> debug-solaris-sparcv9-gcc debug-steve-opt debug-steve32 debug-steve64 >> debug-ulf debug-vos-gcc >> >> NOTE: If in doubt, on Unix-ish systems use './config'. >> FATAL: Configure openssl >> >> >> P.S.: This script doesn't know to exit when encounters an error ( and there >> are a lot of errors returned by it ) !!! >> >> >> >> On Fri, Mar 19, 2010 at 7:24 PM, pkcs11-helper >> <webmas...@opensc-project.org> wrote: >>> >>> #1: Makefile for mingw32 (linux) >>> ----------------------+----------------------------------------------------- >>> Reporter: phil | Owner: alonbl >>> Type: defect | Status: closed >>> Priority: major | Milestone: >>> Component: core | Version: 1.05 >>> Resolution: invalid | Keywords: makefile mingw32 >>> ----------------------+----------------------------------------------------- >>> Changes (by alonbl): >>> >>> * status: reopened => closed >>> * resolution: => invalid >>> >>> >>> Comment: >>> >>> Again, look at the build script. >>> >>> {{{ >>> echo "Build pkcs11-helper" >>> cd "${BUILDROOT}/pkcs11-helper"* || die "cd pkcs11-helper" >>> ./configure ${CONFIGOPTS} ${EXTRA_PKCS11_HELPER_CONFIG} \ >>> --disable-crypto-engine-gnutls \ >>> --disable-crypto-engine-nss \ >>> || die "Configure pkcs11-helper" >>> ${MAKE} ${MAKEOPTS} ${MAKE_AUTOCONF_INSTALL_TARGET} >>> DESTDIR="${OPENVPN_ROOT}" || die "make pkcs11-helper" >>> }}} >>> >>> -- >>> Ticket URL: <http://www.opensc-project.org/pkcs11-helper/ticket/1#comment:3> >>> pkcs11-helper <http://www.opensc-project.org/pkcs11-helper> >>> PKCS#11 helper library >> >> >> >> -- >> The Roman Rule >> The one who says it cannot be done should never interrupt the >> one who is doing it. >> >> >> _______________________________________________ >> opensc-devel mailing list >> opensc-devel@lists.opensc-project.org >> http://www.opensc-project.org/mailman/listinfo/opensc-devel > _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel