On 21 February 2015 at 12:06, Volker Braun <[email protected]> wrote:
> post the pyopenssl build log
Thanks, Volker -- when I looked at the log I saw that it had failed to
build, which I had not noticed (I was building Sage on several
machines at once during an otherwise busy day). Log is attached.
Since the previous build the machine had been upgraded from ubuntu
12.04 to 14.04. The package libssl-dev is installed. Given that
should I also have installed the Sage spkg called openssl as well as
pyopenssl? I can never remember which is which with those two, and
had been hoping that any dependencies between them would be sorted out
by "make". I seem to remember that "make ssl" does the same as I did,
namely make and then install pyopenssl.
John
>
>
> On Saturday, February 21, 2015 at 12:47:31 PM UTC+1, John Cremona wrote:
>>
>> Has something changed between 6.4 and 6.5 regarding running a notebook
>> server (default, not ipython) with secure=True? I repeatedly get the
>> message
>>
>> RuntimeError: HTTPS cannot be used without pyOpenSSL installed. See
>> the Sage README for more information.
>> sage@fermat:~$ cat start_sage_server
>> /usr/local/bin/sage --notebook default interface='' accounts=True
>> secure=True automatic_login=False
>> despite having explicitly installed pyopenssl (using ./sage -i
>> pyopenssl after building finished) followed by ./sage -g python and
>> then make (which rebuilt a whole lot of things previously built by
>> make).
>>
>> I am building from source on ubuntu 14.04 using a git repository which
>> is updated on each release.
>>
>> I have even done a "makedistclean" to start from scratch and releated
>> all the above, but the command line
>>
>> /usr/local/bin/sage --notebook default interface='' accounts=True
>> secure=True automatic_login=False
>>
>> still gives the quoted error.
>>
>> John Cremona
>>
>> PS yes, I know that I can tell all the users of the machine to switch
>> to the cloud, as most of them have. that is not really the point.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.
Found package pyopenssl in /usr/local/sage/sage-1/upstream/pyopenssl-0.13.p0.spkg
pyopenssl-0.13.p0
====================================================
Extracting package /usr/local/sage/sage-1/upstream/pyopenssl-0.13.p0.spkg
-rw-r--r-- 1 jec jec 226048 Feb 17 2014 /usr/local/sage/sage-1/upstream/pyopenssl-0.13.p0.spkg
Finished extraction
****************************************************
Host system:
Linux fermat 3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
****************************************************
patching file OpenSSL/ssl/connection.c
patching file OpenSSL/ssl/context.c
/usr/local/sage/sage-1/local/lib/python/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
warnings.warn(msg)
running build_ext
building 'OpenSSL.crypto' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/OpenSSL
creating build/temp.linux-x86_64-2.7/OpenSSL/crypto
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/sage/sage-1/local/include/python2.7 -c OpenSSL/crypto/crypto.c -o build/temp.linux-x86_64-2.7/OpenSSL/crypto/crypto.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/sage/sage-1/local/include/python2.7 -c OpenSSL/crypto/x509.c -o build/temp.linux-x86_64-2.7/OpenSSL/crypto/x509.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/sage/sage-1/local/include/python2.7 -c OpenSSL/crypto/x509name.c -o build/temp.linux-x86_64-2.7/OpenSSL/crypto/x509name.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/sage/sage-1/local/include/python2.7 -c OpenSSL/crypto/pkey.c -o build/temp.linux-x86_64-2.7/OpenSSL/crypto/pkey.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/sage/sage-1/local/include/python2.7 -c OpenSSL/crypto/x509store.c -o build/temp.linux-x86_64-2.7/OpenSSL/crypto/x509store.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/sage/sage-1/local/include/python2.7 -c OpenSSL/crypto/x509req.c -o build/temp.linux-x86_64-2.7/OpenSSL/crypto/x509req.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/sage/sage-1/local/include/python2.7 -c OpenSSL/crypto/x509ext.c -o build/temp.linux-x86_64-2.7/OpenSSL/crypto/x509ext.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/sage/sage-1/local/include/python2.7 -c OpenSSL/crypto/pkcs7.c -o build/temp.linux-x86_64-2.7/OpenSSL/crypto/pkcs7.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/sage/sage-1/local/include/python2.7 -c OpenSSL/crypto/pkcs12.c -o build/temp.linux-x86_64-2.7/OpenSSL/crypto/pkcs12.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/sage/sage-1/local/include/python2.7 -c OpenSSL/crypto/netscape_spki.c -o build/temp.linux-x86_64-2.7/OpenSSL/crypto/netscape_spki.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/sage/sage-1/local/include/python2.7 -c OpenSSL/crypto/revoked.c -o build/temp.linux-x86_64-2.7/OpenSSL/crypto/revoked.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/sage/sage-1/local/include/python2.7 -c OpenSSL/crypto/crl.c -o build/temp.linux-x86_64-2.7/OpenSSL/crypto/crl.o
OpenSSL/crypto/crl.c:6:23: error: static declaration of 'X509_REVOKED_dup' follows non-static declaration
static X509_REVOKED * X509_REVOKED_dup(X509_REVOKED *orig) {
^
In file included from /usr/local/sage/sage-1/local/include/openssl/ssl.h:156:0,
from OpenSSL/crypto/x509.h:17,
from OpenSSL/crypto/crypto.h:30,
from OpenSSL/crypto/crl.c:3:
/usr/local/sage/sage-1/local/include/openssl/x509.h:751:15: note: previous declaration of 'X509_REVOKED_dup' was here
X509_REVOKED *X509_REVOKED_dup(X509_REVOKED *rev);
^
error: command 'gcc' failed with exit status 1
Error building pyOpenSSL!
Check that OpenSSL development headers are installed,
or install the OpenSSL SPKG into your Sage installation.
real 0m3.744s
user 0m3.116s
sys 0m0.566s
************************************************************************
Error installing package pyopenssl-0.13.p0
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
/usr/local/sage/sage-1/logs/pkgs/pyopenssl-0.13.p0.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/usr/local/sage/sage-1/local/var/tmp/sage/build/pyopenssl-0.13.p0 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/usr/local/sage/sage-1/local/var/tmp/sage/build/pyopenssl-0.13.p0' && '/usr/local/sage/sage-1/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************