Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33971 - dev-python/m2crypto-0.07_alpha3 emerge fails under Python 2.3 and openssl-0.9.7c-r1
Summary: dev-python/m2crypto-0.07_alpha3 emerge fails under Python 2.3 and openssl-0.9...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 33372
  Show dependency tree
 
Reported: 2003-11-20 15:30 UTC by Howard B. Golden
Modified: 2004-02-02 13:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Howard B. Golden 2003-11-20 15:30:12 UTC
Compiling dev-python/m2crypto-0.07_alpha3 swig wrapper, _m2crypto_wrap.c gets
errors. Not sure if errors are due to Python 2.3, openssl-0.9.7c-r1 or other
updated software.

NOTE: There are newer upstream releases of M2Crypto. See
http://sandbox.rulemaker.net/ngps/m2/

Reproducible: Always
Steps to Reproduce:
1. emerge m2crypto

Actual Results:  
Following compiler messages:

gcc -fno-strict-aliasing -DNDEBUG -mcpu=athlon-xp -O2 -pipe -fstack-protector
-fPIC -Iswig -I/usr/local/include -I/usr/include/python2.3 -c
swig/_m2crypto_wrap.c -o build/temp.linux-i686-2.3/swig/_m2crypto_wrap.o
In file included from /usr/include/python2.3/Python.h:8,
                 from swig/_m2crypto_wrap.c:177:
/usr/include/python2.3/pyconfig.h:847:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/string.h:26,
                 from swig/_m2crypto_wrap.c:27:
/usr/include/features.h:171:1: warning: this is the location of the previous
definition
swig/_m2crypto_wrap.c:649:26: openssl/e_os.h: No such file or directory
swig/_m2crypto_wrap.c:721: error: syntax error before "ssl_verify_callback"
swig/_m2crypto_wrap.c:760: error: syntax error before "ssl_info_callback"
swig/_m2crypto_wrap.c:1090: error: conflicting types for `EVP_md5'
/usr/include/openssl/evp.h:620: error: previous declaration of `EVP_md5'
swig/_m2crypto_wrap.c:1091: error: conflicting types for `EVP_sha1'
/usr/include/openssl/evp.h:624: error: previous declaration of `EVP_sha1'
swig/_m2crypto_wrap.c:1092: error: conflicting types for `EVP_ripemd160'
/usr/include/openssl/evp.h:632: error: previous declaration of `EVP_ripemd160'
swig/_m2crypto_wrap.c:1093: error: conflicting types for `EVP_DigestInit'
/usr/include/openssl/evp.h:530: error: previous declaration of `EVP_DigestInit'
swig/_m2crypto_wrap.c:1094: error: conflicting types for `EVP_des_ecb'
/usr/include/openssl/evp.h:636: error: previous declaration of `EVP_des_ecb'
swig/_m2crypto_wrap.c:1095: error: conflicting types for `EVP_des_ede'
/usr/include/openssl/evp.h:637: error: previous declaration of `EVP_des_ede'
swig/_m2crypto_wrap.c:1096: error: conflicting types for `EVP_des_ede3'
/usr/include/openssl/evp.h:638: error: previous declaration of `EVP_des_ede3'
swig/_m2crypto_wrap.c:1097: error: conflicting types for `EVP_des_cbc'
/usr/include/openssl/evp.h:647: error: previous declaration of `EVP_des_cbc'
swig/_m2crypto_wrap.c:1098: error: conflicting types for `EVP_des_ede_cbc'
/usr/include/openssl/evp.h:648: error: previous declaration of `EVP_des_ede_cbc'
swig/_m2crypto_wrap.c:1099: error: conflicting types for `EVP_des_ede3_cbc'
/usr/include/openssl/evp.h:649: error: previous declaration of `EVP_des_ede3_cbc'
swig/_m2crypto_wrap.c:1100: error: conflicting types for `EVP_des_cfb'
/usr/include/openssl/evp.h:641: error: previous declaration of `EVP_des_cfb'
swig/_m2crypto_wrap.c:1101: error: conflicting types for `EVP_des_ede_cfb'
/usr/include/openssl/evp.h:642: error: previous declaration of `EVP_des_ede_cfb'
swig/_m2crypto_wrap.c:1102: error: conflicting types for `EVP_des_ede3_cfb'
/usr/include/openssl/evp.h:643: error: previous declaration of `EVP_des_ede3_cfb'
swig/_m2crypto_wrap.c:1103: error: conflicting types for `EVP_des_ofb'
/usr/include/openssl/evp.h:644: error: previous declaration of `EVP_des_ofb'
swig/_m2crypto_wrap.c:1104: error: conflicting types for `EVP_des_ede_ofb'
/usr/include/openssl/evp.h:645: error: previous declaration of `EVP_des_ede_ofb'
swig/_m2crypto_wrap.c:1105: error: conflicting types for `EVP_des_ede3_ofb'
/usr/include/openssl/evp.h:646: error: previous declaration of `EVP_des_ede3_ofb'
swig/_m2crypto_wrap.c:1106: error: conflicting types for `EVP_bf_ecb'
/usr/include/openssl/evp.h:680: error: previous declaration of `EVP_bf_ecb'
swig/_m2crypto_wrap.c:1107: error: conflicting types for `EVP_bf_cbc'
/usr/include/openssl/evp.h:681: error: previous declaration of `EVP_bf_cbc'
swig/_m2crypto_wrap.c:1108: error: conflicting types for `EVP_bf_cfb'
/usr/include/openssl/evp.h:682: error: previous declaration of `EVP_bf_cfb'
swig/_m2crypto_wrap.c:1109: error: conflicting types for `EVP_bf_ofb'
/usr/include/openssl/evp.h:683: error: previous declaration of `EVP_bf_ofb'
swig/_m2crypto_wrap.c:1110: error: conflicting types for `EVP_idea_ecb'
/usr/include/openssl/evp.h:666: error: previous declaration of `EVP_idea_ecb'
swig/_m2crypto_wrap.c:1111: error: conflicting types for `EVP_idea_cbc'
/usr/include/openssl/evp.h:669: error: previous declaration of `EVP_idea_cbc'
swig/_m2crypto_wrap.c:1112: error: conflicting types for `EVP_idea_cfb'
/usr/include/openssl/evp.h:667: error: previous declaration of `EVP_idea_cfb'
swig/_m2crypto_wrap.c:1113: error: conflicting types for `EVP_idea_ofb'
/usr/include/openssl/evp.h:668: error: previous declaration of `EVP_idea_ofb'
swig/_m2crypto_wrap.c:1114: error: conflicting types for `EVP_cast5_ecb'
/usr/include/openssl/evp.h:686: error: previous declaration of `EVP_cast5_ecb'
swig/_m2crypto_wrap.c:1115: error: conflicting types for `EVP_cast5_cbc'
/usr/include/openssl/evp.h:687: error: previous declaration of `EVP_cast5_cbc'
swig/_m2crypto_wrap.c:1116: error: conflicting types for `EVP_cast5_cfb'
/usr/include/openssl/evp.h:688: error: previous declaration of `EVP_cast5_cfb'
swig/_m2crypto_wrap.c:1117: error: conflicting types for `EVP_cast5_ofb'
/usr/include/openssl/evp.h:689: error: previous declaration of `EVP_cast5_ofb'
swig/_m2crypto_wrap.c:1118: error: conflicting types for `EVP_rc5_32_12_16_ecb'
/usr/include/openssl/evp.h:693: error: previous declaration of
`EVP_rc5_32_12_16_ecb'
swig/_m2crypto_wrap.c:1119: error: conflicting types for `EVP_rc5_32_12_16_cbc'
/usr/include/openssl/evp.h:692: error: previous declaration of
`EVP_rc5_32_12_16_cbc'
swig/_m2crypto_wrap.c:1120: error: conflicting types for `EVP_rc5_32_12_16_cfb'
/usr/include/openssl/evp.h:694: error: previous declaration of
`EVP_rc5_32_12_16_cfb'
swig/_m2crypto_wrap.c:1121: error: conflicting types for `EVP_rc5_32_12_16_ofb'
/usr/include/openssl/evp.h:695: error: previous declaration of
`EVP_rc5_32_12_16_ofb'
swig/_m2crypto_wrap.c:1122: error: conflicting types for `EVP_rc4'
/usr/include/openssl/evp.h:662: error: previous declaration of `EVP_rc4'
swig/_m2crypto_wrap.c:1123: error: conflicting types for `EVP_rc2_40_cbc'
/usr/include/openssl/evp.h:674: error: previous declaration of `EVP_rc2_40_cbc'
swig/_m2crypto_wrap.c:1631: error: conflicting types for `DH_size'
/usr/include/openssl/dh.h:163: error: previous declaration of `DH_size'
swig/_m2crypto_wrap.c:1633: error: conflicting types for `DHparams_print'
/usr/include/openssl/dh.h:179: error: previous declaration of `DHparams_print'
swig/_m2crypto_wrap.c:1812: error: conflicting types for `RSA_size'
/usr/include/openssl/rsa.h:191: error: previous declaration of `RSA_size'
swig/_m2crypto_wrap.c:1813: error: conflicting types for `RSA_check_key'
/usr/include/openssl/rsa.h:194: error: previous declaration of `RSA_check_key'
swig/_m2crypto_wrap.c:2157: error: conflicting types for `DSA_size'
/usr/include/openssl/dsa.h:174: error: previous declaration of `DSA_size'
swig/_m2crypto_wrap.c:2527: error: conflicting types for `SSL_state_string'
/usr/include/openssl/ssl.h:1242: error: previous declaration of `SSL_state_string'
swig/_m2crypto_wrap.c:2528: error: conflicting types for `SSL_state_string_long'
/usr/include/openssl/ssl.h:1244: error: previous declaration of
`SSL_state_string_long'
swig/_m2crypto_wrap.c:2529: error: conflicting types for `SSL_alert_type_string'
/usr/include/openssl/ssl.h:1356: error: previous declaration of
`SSL_alert_type_string'
swig/_m2crypto_wrap.c:2530: error: conflicting types for
`SSL_alert_type_string_long'
/usr/include/openssl/ssl.h:1355: error: previous declaration of
`SSL_alert_type_string_long'
swig/_m2crypto_wrap.c:2531: error: conflicting types for `SSL_alert_desc_string'
/usr/include/openssl/ssl.h:1358: error: previous declaration of
`SSL_alert_desc_string'
swig/_m2crypto_wrap.c:2532: error: conflicting types for
`SSL_alert_desc_string_long'
/usr/include/openssl/ssl.h:1357: error: previous declaration of
`SSL_alert_desc_string_long'
swig/_m2crypto_wrap.c: In function `ssl_ctx_set_info_callback':
swig/_m2crypto_wrap.c:2656: warning: assignment from incompatible pointer type
error: command 'gcc' failed with exit status 1

!!! ERROR: dev-python/m2crypto-0.07_alpha3 failed.
!!! Function distutils_src_compile, Line 38, Exitcode 1
!!! compilation failed

Expected Results:  
Should have compiled successfully.

Portage 2.0.49-r16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test9-gentoo)
=================================================================
System uname: 2.6.0-test9-gentoo i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O2 -pipe -fstack-protector"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /opt/tomcat/conf
/usr/kde/3.2/share/config /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/xdvi/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O2 -pipe -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache autoaddcvs sandbox usersandbox"
GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo/
http://gentoo.seren.com/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb
gtkhtml alsa gdbm berkdb slang readline arts tetex bonobo svga tcltk java guile
ruby mysql postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib
oggvorbis gnome gtk qt kde motif opengl mozilla ldap cdr 3dnow acl acpi
acpi4linux amd antlr apache2 dnd doc dvd ethereal evo fbcon fbdev
foreign-package foreign-sysvinit freetds gb gd gd-external ginac gnomedb
gstreamer gtk2 imap innodb ipv6 jikes junit kerberos libgda maildir mbox mdb mmx
moznoirc moznomail nptl oci8 odbc ofx pda pg-hier pic plotutils radeon samba
sasl slp snmp sse tiff type1 usb wmf wxwindows Xaw3d xml zeo"
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2003-11-23 04:00:30 UTC
i've bumped the version in portage to 0.12, this should work well with openssl-0.9.7 and python-2.3.

thanks for your report.
Comment 2 Chris Bainbridge (RETIRED) gentoo-dev 2004-02-02 12:39:18 UTC
0.12 is still ~x86 so now that python-2.3 is stable m2crypto no longer compiles and this bug again rears its ugly head. Please mark m2crypto-0.12 stable as well.
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2004-02-02 13:11:37 UTC
thanks, this is also done now. i really have to mark these bugs properly