From: Dmitriy I. B. <bry...@ms...> - 2005-10-10 19:46:36
|
I've tried to compile PyMol 0.99beta15 (one from CVS) using: python setup.py install it fails while comiling layer0/Crystal.c the problem in gcc "-Wp,-D_FORTIFY_SOURCE=2" parameter, which fails compilation of PRINTF macro inside of Crystal.c If I compile Crystal.c without this parameter everything is fine. The python is 2.4.1 which comes with Fedora Core 4. gcc version 4.0.1 20050727 (Red Hat 4.0.1-5) I can't find a nice way of getting rid of this "-Wp,-D_FORTIFY_SOURCE=2" parameter without getting inside python and killing it manually. If someone knows the way, it will be helpful. But the main question is WHY it does not compile. Is it somthing wrong with PyMol code? As much as I know, this parameter do additional code checks for things like buffer owerflow. Which itent to be useful. Thanks Dmitriy Bryndin it fails with this error: ---------------------------------------------------------------------- gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -D_PYMOL_MODULE -D_PYMOL_INLINE -D_HAVE_LIBPNG -Iov/src -Ilayer0 -Ilayer1 -Ilayer2 -Ilayer3 -Ilayer4 -Ilayer5 -I/usr/include/python2.4 -c layer0/Crystal.c -o build/temp.linux-i686-2.4/layer0/Crystal.o -ffast-math -funroll-loops -O3 In file included from /usr/include/python2.4/Python.h:8, from layer0/os_python.h:26, from layer1/Setting.h:19, from layer1/CGO.h:21, from layer0/Crystal.c:21: /usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined In file included from /usr/include/stdio.h:28, from layer0/os_std.h:23, from layer0/Crystal.c:18: /usr/include/features.h:150:1: warning: this is the location of the previous definition layer0/Crystal.c:314:1: error: unterminated argument list invoking macro "sprintf" layer0/Crystal.c: In function ‘CrystalDump’: layer0/Crystal.c:201: error: syntax error at end of input error: command 'gcc' failed with exit status 1 ---------------------------------------------------------------------- |