[openmamba-devel-it] Python.h: No such file or directory...

gil puntogil a libero.it
Lun 3 Nov 2008 13:12:18 CET


ciao
ho un "problemino" (mi sono perso..) con l'impostazione di alcune
variabili...
grazie
make
-j2                                                                  
g++ -g -fPIC -fno-inline   -c -o aptmodule.o
aptmodule.cc                            
In file included from
aptmodule.cc:7:                                                
aptmodule.h:10:27: error: python/Python.h: No such file or
directory                 
aptmodule.cc:1179:5: warning: missing terminating "
character                        
aptmodule.cc:1179: error: missing terminating "
character                            
aptmodule.cc:1180:39: warning: missing terminating "
character                       
aptmodule.cc:1180: error: missing terminating "
character                            
In file included from
aptmodule.cc:7:                                                
aptmodule.h:22: error: ISO C++ forbids declaration of 'PyObject_HEAD'
with no type   
aptmodule.h:29: error: ISO C++ forbids declaration of 'PyObject_HEAD'
with no type   
aptmodule.h:36: error: ISO C++ forbids declaration of 'PyObject_HEAD'
with no type   
aptmodule.h:43: error: ISO C++ forbids declaration of 'PyObject_HEAD'
with no type   
aptmodule.h:49: error: ISO C++ forbids declaration of 'PyObject_HEAD'
with no type   
aptmodule.h:51: error: ISO C++ forbids declaration of 'PyObject' with no
type        
aptmodule.h:51: error: expected ';' before '*'
token                                 
aptmodule.h:57: error: ISO C++ forbids declaration of 'PyObject_HEAD'
with no type   
aptmodule.h:59: error: ISO C++ forbids declaration of 'PyObject' with no
type        
aptmodule.h:59: error: expected ';' before '*'
token                                 
aptmodule.h:65: error: ISO C++ forbids declaration of 'PyObject_HEAD'
with no type
aptmodule.h:72: error: ISO C++ forbids declaration of 'PyObject_HEAD'
with no type
In file included from aptmodule.cc:10:
/usr/include/apt-pkg/strutl.h: In function 'int
stringcmp(__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
>, __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >, const char*)':
/usr/include/apt-pkg/strutl.h:93: error: 'strlen' was not declared in
this scope
/usr/include/apt-pkg/strutl.h: In function 'int
stringcasecmp(__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
>, __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >, const char*)':
/usr/include/apt-pkg/strutl.h:94: error: 'strlen' was not declared in
this scope
/usr/include/apt-pkg/strutl.h: In function 'int stringcmp(const char*,
const char*, const char*)':
/usr/include/apt-pkg/strutl.h:97: error: 'strlen' was not declared in
this scope
/usr/include/apt-pkg/strutl.h: In function 'int stringcmp(std::string,
const char*)':
/usr/include/apt-pkg/strutl.h:97: error: 'strlen' was not declared in
this scope
/usr/include/apt-pkg/strutl.h: In function 'int stringcasecmp(const
char*, const char*, const char*)':
/usr/include/apt-pkg/strutl.h:98: error: 'strlen' was not declared in
this scope
/usr/include/apt-pkg/strutl.h: In function 'int
stringcasecmp(std::string, const char*)':
/usr/include/apt-pkg/strutl.h:98: error: 'strlen' was not declared in
this scope
aptmodule.cc: At global scope:
aptmodule.cc:14: error: expected initializer before '*' token
aptmodule.cc:16: error: expected initializer before '*' token
aptmodule.cc:27: error: expected initializer before '*' token
aptmodule.cc:46: error: expected initializer before '*' token
aptmodule.cc: In function 'void
AptPyConfigItem_dealloc(AptPyConfigItem*)':
aptmodule.cc:50: error: 'PyMem_DEL' was not declared in this scope
aptmodule.cc: At global scope:
aptmodule.cc:53: error: expected initializer before '*' token
aptmodule.cc:58: error: expected initializer before '*' token
aptmodule.cc:86: error: expected initializer before '*' token
make: *** [aptmodule.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.16916 (%build)

-------------- parte successiva --------------
Un allegato non testuale è stato rimosso....
Nome:        python-apt.spec
Tipo:        text/x-rpm-spec
Dimensione:  964 bytes
Descrizione: non disponibile
URL:         <http://tao/pipermail/openmamba-devel-it/attachments/20081103/b02cdf29/attachment.bin>


Maggiori informazioni sulla lista openmamba-devel-it