From: Doug M. <dma...@vm...> - 2010-03-11 21:33:58
|
Hi Warren, That file is not under revision control, it is generated as part of the build process. We've made some fixes since 1.6.3 to the python build, try checking out via: svn co http://svn.hyperic.org/projects/sigar_mirror/trunk sigar or git clone git://github.com/hyperic/sigar.git sigar.git cd bindings/python python setup.py build -Doug On Mar 10, 2010, at 5:51 PM, Warren Eggly wrote: > When trying to build sigar library for python the file _sigar_generated.c is missing. The c program _sigar.c is looking for it on line 79. > _sigar_generated.c is not listed in the Index of /trunk/bindings/python > > http://svn.hyperic.org/trunk/bindings/python/?root=Hyperic+SIGAR+Git+mirror > > > $ grep -n _sigar_generated.c _sigar.c > 79:#include "_sigar_generated.c" > > > $pwd > … hyperic-sigar-1.6.3/bindings/python > $ python setup.py install > running install > running build > running build_py > running build_ext > building '_sigar' extension > gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -I../../sigar-bin/include -I/usr/include/python2.4 -c _sigar.c -o build/temp.linux-x86_64-2.4/_sigar.o > gcc: : No such file or directory > _sigar.c:79:30: error: _sigar_generated.c: No such file or directory > _sigar.c: In function âpysigar_file_system_listâ: > _sigar.c:168: error: âpysigar_PySigarFileSystemTypeâ undeclared (first use in this function) > _sigar.c:168: error: (Each undeclared identifier is reported only once > _sigar.c:168: error: for each function it appears in.) > _sigar.c: At top level: > _sigar.c:212: error: âPY_SIGAR_METHODSâ undeclared here (not in a function) > _sigar.c:213: error: expected â}â before â{â token > _sigar.c: In function âinit_sigarâ: > _sigar.c:299: error: âPY_SIGAR_ADD_TYPESâ undeclared (first use in this function) > _sigar.c:299: warning: statement with no effect > error: command 'gcc' failed with exit status 1 > [weggly@pdsc9monx1012 python]$ |