Re: Problem building m2crypto on RHEL 3

Charles Riley <[email protected]>
Newsgroups gmane.comp.python.cryptography
Message-ID <001401c53c43$9de19810$7a19a8c0@attilla>
Thanks for the tip!  I thought for sure the paths in setup.py would be
the problem, but alas no luck =(

As it turns out, there are actually two versions of openssl installed on
this machine:

openssl096b-0.9.6b-16
openssl-perl-0.9.7a-33.12
openssl-0.9.7a-33.12
pyOpenSSL-0.5.1-8
openssl-devel-0.9.7a-33.12

The older version's libs are named differently though:
[root@criley m2crypto-0.13]# rpm -ql openssl096b-0.9.6b-16
/lib/libcrypto.so.0.9.6b
/lib/libssl.so.0.9.6b

versus (in the 0.9.7a package)

/usr/lib/libcrypto.a
/usr/lib/libcrypto.so
/usr/lib/libssl.a
/usr/lib/libssl.so

Given that it's been renamed, the older lib shouldn't cause a conflict
should it?

openssl-devel-0.9.7a-33.12 is the only package that contains headers,
and it puts it's stuff in /usr/lib and /usr/include/openssl, which
setup.py seems to find (but just doesn't like).

Maybe I will try backing out the rpm and installing openssl from source
as you did.

Charles
> -----Original Message-----
> From: Guido van Rossum [mailto:[email protected]] 
> Sent: Thursday, April 07, 2005 6:01 PM
> To: Charles Riley
> Cc: [email protected]
> Subject: Re: Problem building m2crypto on RHEL 3
> 
> 
> I had similar issues (but I'm not sure if they are the same). 
> I found that RHE 3 comes with a different version of openssl 
> (0.9.6?) pre-installed, and compiling with it gave compilation errors.
> 
> I installed openssl 0.9.7 from source in /usr/local/ssl, so I 
> had to edit the lines in M2crypto's setup.py that point to 
> /usr/include and /usr/lib to /usr/local/ssl/include and 
> /usr/local/ssl/lib. Do you know where the openssl RPMs you 
> mention below install their stuff?
> 
> On Apr 7, 2005 1:41 PM, Charles Riley 
> <[email protected]> wrote:
> > Hi,
> > 
> > I'm having a problem building m2crypto on RHEL 3.  I think 
> I have all 
> > the prerequisite stuff installed, as described on the m2crypto page:
> > 
> > openssl-devel-0.9.7a-33.12
> > openssl-0.9.7a-33.12
> > python 2.3.5
> > SWIG-1.3.21
> > 
> > Any help would be greatly appreciated.  I'd like to access zope via 
> > SSL, and running a webserver in front of zope just seems 
> like such an 
> > ugly solution.
> > 
> > Build output follows:
> > 
> > [root@criley m2crypto-0.13]# python2.3 setup.py build
> > running build
> > running build_py
> > running build_ext
> > building '__m2crypto' extension
> > swig -python -ISWIG -o SWIG/_m2crypto.c SWIG/_m2crypto.i
> > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict- 
> > prototypes -fPIC -I/home/zope/m2crypto-0.13/SWIG -I/usr/include - 
> > I/usr/include/python2.3 -c SWIG/_m2crypto.c -o 
> build/temp.linux-i686- 
> > 2.3/SWIG/_m2crypto.o -DTHREADING In file included from 
> > /usr/include/openssl/ssl.h:179,
> >                  from SWIG/_m2crypto.c:863:
> > /usr/include/openssl/kssl.h:72:18: krb5.h: No such file or 
> directory 
> > In file included from /usr/include/openssl/ssl.h:179,
> >                  from SWIG/_m2crypto.c:863:
> > /usr/include/openssl/kssl.h:134: syntax error before "krb5_enctype"
> > /usr/include/openssl/kssl.h:136: syntax error before '*' token
> > /usr/include/openssl/kssl.h:137: syntax error before '}' token
> > /usr/include/openssl/kssl.h:149: syntax error before 
> > "kssl_ctx_setstring"
> > /usr/include/openssl/kssl.h:149: syntax error before '*' token
> > /usr/include/openssl/kssl.h:150: syntax error before '*' token
> > /usr/include/openssl/kssl.h:151: syntax error before '*' token
> > /usr/include/openssl/kssl.h:151: syntax error before '*' token
> > /usr/include/openssl/kssl.h:152: syntax error before '*' token
> > /usr/include/openssl/kssl.h:153: syntax error before 
> "kssl_ctx_setprinc"
> > /usr/include/openssl/kssl.h:153: syntax error before '*' token
> > /usr/include/openssl/kssl.h:155: syntax error before "kssl_cget_tkt"
> > /usr/include/openssl/kssl.h:155: syntax error before '*' token
> > /usr/include/openssl/kssl.h:157: syntax error before "kssl_sget_tkt"
> > /usr/include/openssl/kssl.h:157: syntax error before '*' token
> > /usr/include/openssl/kssl.h:159: syntax error before 
> "kssl_ctx_setkey"
> > /usr/include/openssl/kssl.h:159: syntax error before '*' token
> > /usr/include/openssl/kssl.h:161: syntax error before "context"
> > /usr/include/openssl/kssl.h:162: syntax error
> > before "kssl_build_principal_2"
> > /usr/include/openssl/kssl.h:162: syntax error before "context"
> > /usr/include/openssl/kssl.h:165: syntax error before 
> "kssl_validate_times"
> > /usr/include/openssl/kssl.h:165: syntax error before "atime"
> > /usr/include/openssl/kssl.h:167: syntax error before 
> "kssl_check_authent"
> > /usr/include/openssl/kssl.h:167: syntax error before '*' token
> > /usr/include/openssl/kssl.h:169: syntax error before "enctype"
> > In file included from SWIG/_m2crypto.c:863:
> > /usr/include/openssl/ssl.h:909: syntax error before "KSSL_CTX"
> > /usr/include/openssl/ssl.h:931: syntax error before '}' token
> > SWIG/_m2crypto.c: In function `sign_final':
> > SWIG/_m2crypto.c:1925: warning: unused variable `ret'
> > SWIG/_m2crypto.c: In function `ssl_session_read_pem':
> > SWIG/_m2crypto.c:3443: warning: function declaration isn't 
> a prototype
> > SWIG/_m2crypto.c: In function `ssl_session_write_pem':
> > SWIG/_m2crypto.c:3447: warning: function declaration isn't 
> a prototype
> > SWIG/_m2crypto.c: At top level:
> > SWIG/_m2crypto.c:3497: warning: function declaration isn't 
> a prototype
> > SWIG/_m2crypto.c:4450: warning: function declaration isn't 
> a prototype
> > SWIG/_m2crypto.c:4898: warning: function declaration isn't 
> a prototype
> > SWIG/_m2crypto.c:5660: warning: function declaration isn't 
> a prototype
> > SWIG/_m2crypto.c:6481: warning: function declaration isn't 
> a prototype
> > SWIG/_m2crypto.c:6903: warning: function declaration isn't 
> a prototype
> > SWIG/_m2crypto.c:7638: warning: function declaration isn't 
> a prototype
> > SWIG/_m2crypto.c:9327: warning: function declaration isn't 
> a prototype
> > SWIG/_m2crypto.c:11392: warning: function declaration isn't 
> a prototype
> > SWIG/_m2crypto.c:12497: warning: function declaration isn't 
> a prototype
> > SWIG/_m2crypto.c:12518: warning: function declaration isn't 
> a prototype
> > SWIG/_m2crypto.c:13142: warning: function declaration isn't 
> a prototype
> > SWIG/_m2crypto.c:734: warning: `RCS_id' defined but not used
> > error: command 'gcc' failed with exit status 1
> > 
> 
> 
> -- 
> --Guido van Rossum (home page: http://www.python.org/~guido/)
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.