[Pyxmlsec-devel] Fw: RE: Pyxmlsec-devel post from ed.shallow@rogers.com requires approval

Valéry Febvre vfebvre at easter-eggs.com
Fri Apr 9 11:46:11 CEST 2004

Begin forwarded message:

Date: Fri, 9 Apr 2004 01:51:35 -0400
From: "Edward Shallow" <ed.shallow at rogers.com>
To: 'Valéry Febvre' <vfebvre at easter-eggs.com>
Subject: RE: Pyxmlsec-devel post from ed.shallow at rogers.com requires approval

Yes, that was it !!! I had small problems with the location of the openssl
header files, but after moving some things around everything looks good now.

I have successfully run most of your examples, and am now changing the sign
(and decrypt) to load keys from Pkcs12 using cryptoAppPkcs12Load. It works
fine also. Good work !!!

After some more template testing I was going to put the verify call behind
an HTTP daemon in Python. Any suggestions on good non-blocking and threaded
HTTP modules in Python ?

Thanks again,

-----Original Message-----
From: Valéry Febvre [mailto:vfebvre at easter-eggs.com] 
Sent: April 8, 2004 12:23 PM
To: ed.shallow at rogers.com
Subject: Re: Pyxmlsec-devel post from ed.shallow at rogers.com requires


Are you sure you installed the xmlsec-devel package? 
> Error : cannot get XMLSec1 pre-processor and compiler flags
> Error : cannot get XMLSec1 linker flags
Those 2 errors mean that setup.py can't execute commands:
'pkg-config xmlsec1-openssl --cflags' and 'pkg-config xmlsec1-openssl
'xmlsec1-config --cflags --crypto=openssl' and 'xmlsec1-config --libs

Try to run those 4 commands, you must get something like that:
1) for cflags : -DXMLSEC_LIBXML_260=1 -D__XMLSEC_FUNCTION__=__FUNCTION__
-DXMLSEC_NO_XKMS=1 -I/usr/local/include/xmlsec1 -I/usr/include/libxml2
2) for libs : -L/usr/local/lib -L/usr/lib -lxmlsec1-openssl -lxmlsec1 -lxslt
-lxml2 -lz -lpthread -lm -lssl -lcrypto -ldl

If you got:
sh: line 1: xmlsec1-config: command not found
sh: line 1: pkg-config: command not found
you must install xmlsec-devel
package or xmlsec-devel package is bad (xmlsec1.pc is missing?).

> From: Ed Shallow <ed.shallow at rogers.com>
> To: pyxmlsec-devel at lists.labs.libre-entreprise.org,  
> vfebvre at easter-eggs.com
> Subject: Unable to Build ?
> Date: Thu, 08 Apr 2004 01:53:21 -0400
> Hi,
>      I am running on RH9 and have installed all the pre-requisite RPMs 
> (the -devel ones too). I can successfully run the xmlsec1 command line 
> tool to sign, verify, encrypt, and decrypt. After installing all the 
> -devel RPMs, and fixing all the header file locations, I receive the 
> following from the setup.py
>       What should I be looking for ? I installed the libxml2 Python 
> bindings from RPM, would this cause the problem below ?
> Any help would be appreciated,
> Thanks,
> Ed from Canada
> [root at inspiron pyxmlsec-0.2.0]# ./setup.py Choose an action :
>     1. Build
>     2. Install
>     3. Clean
>     4. Exit
> Your choice : 1
> Choose a crypto engine :
>     1. OpenSSL
>     2. GnuTLS
>     3. NSS
> Your choice : 1
> Error : cannot get XMLSec1 pre-processor and compiler flags Error : 
> cannot get XMLSec1 linker flags Warning : cflag sh: skipped Warning : 
> cflag line skipped Warning : cflag 1: skipped Warning : cflag 
> xmlsec1-config: skipped Warning : cflag command skipped Warning : 
> cflag not skipped Warning : cflag found skipped Warning : linker flag 
> sh: skipped Warning : linker flag line skipped Warning : linker flag 
> 1: skipped Warning : linker flag xmlsec1-config: skipped Warning : 
> linker flag command skipped Warning : linker flag not skipped Warning 
> : linker flag found skipped running build running build_py not copying 
> xmlsec.py (output up-to-date) not copying xmlsec_strings.py (output 
> up-to-date) running build_ext building 'xmlsecmod' extension skipping 
> utils.c (build/temp.linux-i686-2.2/utils.o up-to-date) gcc -DNDEBUG 
> -O2 -g -pipe -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC -fPIC 
> -I/usr/include/libxml2 -I/usr/include/python2.2 -c wrap_objs.c -o 
> build/temp.linux-i686-2.2/wrap_objs.o
> In file included from wrap_objs.c:1:
> wrap_objs.h:34: parse error before "xmlSecPtr"
> wrap_objs.h:34: warning: no semicolon at end of struct or union
> wrap_objs.h:35: warning: data definition has no type or storage class
> wrap_objs.h:61: parse error before "ptr"
> wrap_objs.h:62: parse error before '*' token
> wrap_objs.h:63: parse error before '*' token
> wrap_objs.c:132: parse error before "ptr"
> wrap_objs.c: In function `wrap_xmlSecPtr':
> wrap_objs.c:135: `ptr' undeclared (first use in this function)
> wrap_objs.c:135: (Each undeclared identifier is reported only once
> wrap_objs.c:135: for each function it appears in.)
> wrap_objs.c: At top level:
> wrap_objs.c:143: parse error before '*' token
> wrap_objs.c: In function `wrap_xmlSecBytePtr':
> wrap_objs.c:146: `str' undeclared (first use in this function)
> wrap_objs.c: At top level:
> wrap_objs.c:155: parse error before '*' token
> wrap_objs.c: In function `wrap_xmlSecBytePtrConst':
> wrap_objs.c:158: `str' undeclared (first use in this function)
> error: command 'gcc' failed with exit status 1 [root at inspiron 
> pyxmlsec-0.2.0]#

Valéry Febvre

E a s t e r - E g g s                  Spécialiste GNU/Linux
44-46 rue de l'Ouest    75014 Paris    France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37      Fax: +33 (0) 1 43 35 00 76
mailto:vfebvre at easter-eggs.com    http://www.easter-eggs.com
9E9C2B24 - 91EB 2878 A4BF D149 90C7 4090 9415 8B9F 9E9C 2B24

More information about the Pyxmlsec-devel mailing list