[Pyxmlsec-devel] Unable to Build ?

Ed Shallow ed.shallow at rogers.com
Thu Apr 8 07:53:21 CEST 2004


     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,

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 
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]#

More information about the Pyxmlsec-devel mailing list