<DIV>Thank you very much with your suggestion. I installed the python intepreter from SUSE CD but downloaded the sources of python from the python website. It seems like it created the mismatches here. After I installed the python source rpm from SUSE CD, I was able to pass where I had errors. <BR><BR><B><I>Jeff Epler <jepler@unpythonic.net></I></B> wrote:
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">What does this command print?<BR>gcc -c -I/usr/Python-2.3.3/Include -x c -o /dev/null \<BR>/usr/Python-2.3.3/Include/pymem.h<BR>If it prints an error like the one you included in this message, then<BR>the set of header files in /usr/Python-2.3.3/Include is damaged,<BR>incomplete, or wrong for your compiler environment. If the files in<BR>/usr/Python-2.3.3 are from SUSE, then contact your vendor.<BR><BR>If it doesn't give an error, but the build of your "application RPM"<BR>does, then investigate the compiler defines that are present in the<BR>application that aren't on the above commandline. For instance, I was<BR>able to get errors like yours by using inappropriate compiler<BR>options:<BR>$ gcc -DPy_ENABLE_SHARED -DHAVE_DECLSPEC_DLL -c -x c -o /dev/null \<BR>/usr/include/python2.3/Python.h<BR>In file included from /usr/include/python2.3/Python.h:67:<BR>/usr/include/python2.3/pymem.h:
 In function `__declspec':<BR>/usr/include/python2.3/pymem.h:51: error: syntax error before "__declspec"<BR>....<BR><BR>You're right that __declspec has something to do with Windows DLLs.<BR>Normally, Python uses the macro 'PyAPI_FUNC' to declare all functions in<BR>its header files. For certain compilers (msvc, cygwin, mingw) it's<BR>appropriate to use the __declspec extension to make the Python shared<BR>library work properly. For other compilers, PyAPI_FUNC doesn't do<BR>anything special. It's through the presence of absence of defines like<BR>Py_ENABLE_SHARED and HAVE_DECLSPEC_DLL that Python decides how to define<BR>PyAPI_FUNC, and this little detail is usually below the radar.<BR><BR>Jeff<BR></BLOCKQUOTE></DIV><p>
                <hr size=1>Celebrate Yahoo!'s 10th Birthday! <br> 
<a href="http://birthday.yahoo.com/netrospective/">Yahoo! Netrospective: 100 Moments of the Web</a>