Git Product home page Git Product logo

Comments (5)

kevinmkane avatar kevinmkane commented on July 28, 2024

I'm surprised the two forward slashes ends up being a problem. This doesn't happen on my Ubuntu 18.04 build VM. #8 fixes the build problem there with the OQS-OpenSSL repo and I get a successful build, so I'm going to merge that fix.

I'll then look at reproducing your error in a container per your instructions to see what's causing those problems. Depending on the cause and how much work will be required to do a fix will determine if I can put a fix up sooner, or if it'll have to wait and get done with our next release.

Thanks again for the reports!

from pqcrypto-vpn.

ReverseControl avatar ReverseControl commented on July 28, 2024

I tested with Docker base image ubuntu:18.04 and the issue is the same:

Cloning openvpn ...
***** Running command: git clone -q --branch pqcrypto https://github.com/Microsoft/openvpn openvpn-pq
***** Running command: autoreconf -i -f -v
Traceback (most recent call last):
  File "build.py", line 270, in <module>
    build_openvpn_linux()
  File "build.py", line 185, in build_openvpn_linux
    shutil.copy('../oqs-openssl-output/openssl/lib/libcrypto.so.1.0.0', stagepath + '/' + OPENVPN_LINUX_PREFIX + '/lib')
  File "/usr/lib/python2.7/shutil.py", line 139, in copy
    copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 97, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 2] No such file or directory: '/opt/PQCrypto-VPN/openvpn/build/scratch/stage//usr/local/openvpn/lib'
The command '/bin/sh -c cd /opt/PQCrypto-VPN/openvpn/build && python build.py' returned a non-zero code: 1

Dockerfile:

FROM ubuntu:18.04

RUN apt update && apt install -y \
        liblz4-dev               \
        liblzo2-dev              \
        libpam-dev               \
        libssl-dev               \
        libtool                  \
        libtool-bin              \
        cmake                    \
        make                     \
        autoconf                 \
        python                   \
        git

#Note: oqsrepo merge into master commit: 1d35894
RUN cd /opt && \
        git clone https://github.com/microsoft/PQCrypto-VPN.git && \
        cd PQCrypto-VPN                                        && \
        git checkout 1d35894    

RUN cd /opt/PQCrypto-VPN/openvpn/build && python build.py

from pqcrypto-vpn.

kevinmkane avatar kevinmkane commented on July 28, 2024

Very curious. I'll check it out.

from pqcrypto-vpn.

kevinmkane avatar kevinmkane commented on July 28, 2024

The double forward slash wasn't actually an issue. The issue there was not all of the needed directories were being created ahead of time, so file operations to place files in them were failing.

It turns out we also rely on a few other command line utilities that are standard on typical Ubuntu installs but are not present in the Docker image.

The script will now skip the Windows build without failure if the Windows-built OQS-OpenSSL DLL's aren't present. At the point where we snapped their tree, OQS-OpenSSL for Windows couldn't be cross-compiled on Linux.

See #10.

from pqcrypto-vpn.

ReverseControl avatar ReverseControl commented on July 28, 2024

Great. That works! ( That is, #10 fixes all the issues for building.)

from pqcrypto-vpn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.