Am 2015-02-19 um 17:46 schrieb Enrique Artal:
>  4. Finally, the last problem appeared when compiling sage-6.5 with ssl.
>     I followed the standard instructions (which worked in the previous
>     versions) but the compilation of pyopenssl fails. It complains for
>     the compilation of crl.c because of the static definition of a
>     function already declared in a file x509.h of the package openssl.
>     This function is X509_REVOKED_dup. If one eliminates the word
>     "static" prior to the definition, it works but I do not know if it
>     could cause any issue.

Same problem on current Debian stable in a fresh Sage-installation:

git checkout 6.5
make
./sage -i openssl
./sage -i pyopenssl

This fails with the output given below.

Best wishes

Daniel


user@host:/local/data/krenn/sage/6.5.rc2$ ./sage -i pyopenssl
Attempting to download package pyopenssl
>>> Checking online list of optional packages.
[.]
>>> Found pyopenssl-0.13.p0
>>> Trying to download
http://www.sagemath.org/spkg/optional/pyopenssl-0.13.p0.spkg
[............................]
pyopenssl-0.13.p0
====================================================
Extracting package
/local/data/krenn/sage/6.5.rc2/upstream/pyopenssl-0.13.p0.spkg
-rw-rw-r-- 1 krenn krenn 226048 Feb 20 10:25
/local/data/krenn/sage/6.5.rc2/upstream/pyopenssl-0.13.p0.spkg
Finished extraction
****************************************************
Host system:
Linux host 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 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.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5'
--with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.7 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-gnu-unique-object --enable-plugin --enable-objc-gc
--with-arch-32=i586 --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.7.2 (Debian 4.7.2-5)
****************************************************
patching file OpenSSL/ssl/connection.c
patching file OpenSSL/ssl/context.c
/local/data/krenn/sage/6.5.rc2/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'/local/data/krenn/sage/6.5.rc2/local'/include
-I/local/data/krenn/sage/6.5.rc2/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'/local/data/krenn/sage/6.5.rc2/local'/include
-I/local/data/krenn/sage/6.5.rc2/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'/local/data/krenn/sage/6.5.rc2/local'/include
-I/local/data/krenn/sage/6.5.rc2/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'/local/data/krenn/sage/6.5.rc2/local'/include
-I/local/data/krenn/sage/6.5.rc2/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'/local/data/krenn/sage/6.5.rc2/local'/include
-I/local/data/krenn/sage/6.5.rc2/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'/local/data/krenn/sage/6.5.rc2/local'/include
-I/local/data/krenn/sage/6.5.rc2/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'/local/data/krenn/sage/6.5.rc2/local'/include
-I/local/data/krenn/sage/6.5.rc2/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'/local/data/krenn/sage/6.5.rc2/local'/include
-I/local/data/krenn/sage/6.5.rc2/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'/local/data/krenn/sage/6.5.rc2/local'/include
-I/local/data/krenn/sage/6.5.rc2/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'/local/data/krenn/sage/6.5.rc2/local'/include
-I/local/data/krenn/sage/6.5.rc2/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'/local/data/krenn/sage/6.5.rc2/local'/include
-I/local/data/krenn/sage/6.5.rc2/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'/local/data/krenn/sage/6.5.rc2/local'/include
-I/local/data/krenn/sage/6.5.rc2/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
In file included from
/local/data/krenn/sage/6.5.rc2/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:
/local/data/krenn/sage/6.5.rc2/local/include/openssl/x509.h:751:15:
note: previous declaration of 'X509_REVOKED_dup' was here
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    0m1.913s
user    0m1.412s
sys     0m0.196s
************************************************************************
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
  /local/data/krenn/sage/6.5.rc2/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
/local/data/krenn/sage/6.5.rc2/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
'/local/data/krenn/sage/6.5.rc2/local/var/tmp/sage/build/pyopenssl-0.13.p0'
&& '/local/data/krenn/sage/6.5.rc2/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to