I am attempting to get octopress going and having trouble installing the required package posix-spawn.
Here this is the error output:
ERROR: Error installing posix-spawn:
ERROR: Failed to build gem native extension.
/home/private/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
creating Makefile
make
compiling posix-spawn.c
posix-spawn.c:9:19: error: spawn.h: No such file or directory
In file included from /home/private/.rvm/rubies/ruby-1.9.3-p392/include/ruby- 1.9.1/ruby/ruby.h:24,
from /home/private/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from posix-spawn.c:14:
/home/private/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/i386- freebsd8.3/ruby/config.h:17:1: warning: "_GNU_SOURCE" redefined
posix-spawn.c:3:1: warning: this is the location of the previous definition
posix-spawn.c:103: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_addclose':
posix-spawn.c:113: warning: implicit declaration of function 'posix_spawn_file_actions_addclose'
posix-spawn.c:113: error: 'fops' undeclared (first use in this function)
posix-spawn.c:113: error: (Each undeclared identifier is reported only once
posix-spawn.c:113: error: for each function it appears in.)
posix-spawn.c: At top level:
posix-spawn.c:129: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_adddup2':
posix-spawn.c:141: warning: implicit declaration of function 'posix_spawn_file_actions_adddup2'
posix-spawn.c:141: error: 'fops' undeclared (first use in this function)
posix-spawn.c: At top level:
posix-spawn.c:155: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_addopen':
posix-spawn.c:173: warning: implicit declaration of function 'posix_spawn_file_actions_addopen'
posix-spawn.c:173: error: 'fops' undeclared (first use in this function)
posix-spawn.c: At top level:
posix-spawn.c:186: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_operations_iter':
posix-spawn.c:190: error: 'fops' undeclared (first use in this function)
posix-spawn.c:190: error: too many arguments to function 'posixspawn_file_actions_addclose'
posix-spawn.c:193: error: too many arguments to function 'posixspawn_file_actions_adddup2'
posix-spawn.c:196: error: too many arguments to function 'posixspawn_file_actions_addopen'
posix-spawn.c: At top level:
posix-spawn.c:210: error: expected ')' before '*' token
posix-spawn.c:230: error: expected declaration specifiers or '...' before 'posix_spawnattr_t'
posix-spawn.c: In function 'posixspawn_set_pgroup':
posix-spawn.c:237: error: 'POSIX_SPAWN_SETPGROUP' undeclared (first use in this function)
posix-spawn.c:238: warning: implicit declaration of function 'posix_spawnattr_setpgroup'
posix-spawn.c:238: error: 'pattr' undeclared (first use in this function)
posix-spawn.c: In function 'each_env_check_i':
posix-spawn.c:253: warning: unused parameter 'arg'
posix-spawn.c: In function 'rb_posixspawn_pspawn':
posix-spawn.c:330: error: 'posix_spawn_file_actions_t' undeclared (first use in this function)
posix-spawn.c:330: error: expected ';' before 'fops'
posix-spawn.c:331: error: 'posix_spawnattr_t' undeclared (first use in this function)
posix-spawn.c:331: error: expected ';' before 'attr'
posix-spawn.c:332: warning: ISO C90 forbids mixed declarations and code
posix-spawn.c:341: warning: ISO C90 forbids mixed declarations and code
posix-spawn.c:381: warning: ISO C90 forbids mixed declarations and code
posix-spawn.c:391: warning: implicit declaration of function 'posixspawn_file_actions_init'
posix-spawn.c:391: error: 'fops' undeclared (first use in this function)
posix-spawn.c:392: warning: implicit declaration of function 'posix_spawnattr_init'
posix-spawn.c:392: error: 'attr' undeclared (first use in this function)
posix-spawn.c:395: error: 'POSIX_SPAWN_SETSIGMASK' undeclared (first use in this function)
posix-spawn.c:397: warning: implicit declaration of function 'posix_spawnattr_setsigmask'
posix-spawn.c:407: error: too many arguments to function 'posixspawn_set_pgroup'
posix-spawn.c:409: warning: implicit declaration of function 'posix_spawnattr_setflags'
posix-spawn.c:418: warning: implicit declaration of function 'posix_spawnp'
posix-spawn.c:427: warning: implicit declaration of function 'posix_spawn_file_actions_destroy'
posix-spawn.c:428: warning: implicit declaration of function 'posix_spawnattr_destroy'
posix-spawn.c:320: warning: unused parameter 'self'
*** Error code 1
I found this comment in Github that says to make sure spawn.h is in my /usr/include/ folder, but that seemed to have no effect.
Any other thoughts?
This problem was solved by the author but apparently never made its way into the ruby gems repo. You can see about it here.
You can clone the repo and compile it locally and this did the trick for me:
git clone https://github.com/rtomayko/posix-spawn.git
cd posix-spawn/
gem build posix-spawn.gemspec
gem install posix-spawn*.gem
Related
[root#test exim-4.80.1]# make
`Makefile' is up to date.
make[1]: Entering directory `/opt/test/exim-4.80.1/build-Linux-x86_64'
>>> version 4.80.1 #14
gcc exim_monitor/em_StripChart.c
../exim_monitor/em_StripChart.c:40:28: error: X11/IntrinsicP.h: No such file or directory
../exim_monitor/em_StripChart.c:41:28: error: X11/StringDefs.h: No such file or directory
../exim_monitor/em_StripChart.c:42:29: error: X11/Xaw/XawInit.h: No such file or directory
../exim_monitor/em_StripChart.c:43:32: error: X11/Xaw/StripCharP.h: No such file or directory
../exim_monitor/em_StripChart.c:44:24: error: X11/Xfuncs.h: No such file or directory
../exim_monitor/em_StripChart.c:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘resources’
../exim_monitor/em_StripChart.c:75: error: expected ‘)’ before ‘unsigned’
../exim_monitor/em_StripChart.c:76: error: expected ‘)’ before ‘unsigned’
../exim_monitor/em_StripChart.c:78: warning: parameter names (without types) in function declaration
../exim_monitor/em_StripChart.c:79: warning: parameter names (without types) in function declaration
../exim_monitor/em_StripChart.c:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SetValues’
../exim_monitor/em_StripChart.c:82: error: expected ‘)’ before ‘int’
../exim_monitor/em_StripChart.c:85: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘stripChartClassRec’
../exim_monitor/em_StripChart.c:126: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mystripChartWidgetClass’
../exim_monitor/em_StripChart.c: In function ‘CreateGC’:
../exim_monitor/em_StripChart.c:145: error: expected declaration specifiers before ‘StripChartWidget’
../exim_monitor/em_StripChart.c:148: error: ‘XGCValues’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:148: error: (Each undeclared identifier is reported only once
../exim_monitor/em_StripChart.c:148: error: for each function it appears in.)
../exim_monitor/em_StripChart.c:148: error: expected ‘;’ before ‘myXGCV’
../exim_monitor/em_StripChart.c:150: error: ‘FOREGROUND’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:151: error: ‘myXGCV’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:151: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:152: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:152: error: ‘Widget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:152: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:155: error: ‘HIGHLIGHT’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:156: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:157: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:157: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c: In function ‘DestroyGC’:
../exim_monitor/em_StripChart.c:170: error: expected declaration specifiers before ‘StripChartWidget’
../exim_monitor/em_StripChart.c:173: error: ‘FOREGROUND’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:174: error: ‘Widget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:174: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:176: error: ‘HIGHLIGHT’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:177: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c: In function ‘Initialize’:
../exim_monitor/em_StripChart.c:182: error: expected declaration specifiers before ‘Widget’
../exim_monitor/em_StripChart.c:184: error: ‘StripChartWidget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:184: error: expected ‘;’ before ‘w’
../exim_monitor/em_StripChart.c:186: error: ‘w’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:190: error: ‘XtPointer’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:190: error: expected ‘)’ before ‘gnew’
../exim_monitor/em_StripChart.c:191: error: ‘ALL_GCS’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c: In function ‘Destroy’:
../exim_monitor/em_StripChart.c:201: error: expected declaration specifiers before ‘Widget’
../exim_monitor/em_StripChart.c:203: error: ‘StripChartWidget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:203: error: expected ‘;’ before ‘w’
../exim_monitor/em_StripChart.c:205: error: ‘w’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:209: error: ‘ALL_GCS’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c: In function ‘Redisplay’:
../exim_monitor/em_StripChart.c:220: error: expected declaration specifiers before ‘Widget’
../exim_monitor/em_StripChart.c:221: error: expected declaration specifiers before ‘XEvent’
../exim_monitor/em_StripChart.c:222: error: expected declaration specifiers before ‘Region’
../exim_monitor/em_StripChart.c:224: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:224: error: ‘GraphicsExpose’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:225: error: ‘StripChartWidget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:225: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:228: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c: In function ‘draw_it’:
../exim_monitor/em_StripChart.c:235: error: expected declaration specifiers before ‘XtPointer’
../exim_monitor/em_StripChart.c:236: error: expected declaration specifiers before ‘XtIntervalId’
../exim_monitor/em_StripChart.c:238: error: ‘StripChartWidget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:238: error: expected ‘;’ before ‘w’
../exim_monitor/em_StripChart.c:241: error: ‘w’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:243: error: ‘Widget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:243: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:247: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:254: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:270: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:285: error: ‘CoordModePrevious’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c: In function ‘repaint_window’:
../exim_monitor/em_StripChart.c:306: error: expected declaration specifiers before ‘StripChartWidget’
../exim_monitor/em_StripChart.c:310: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:311: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:316: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:316: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:317: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:318: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:319: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:323: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:324: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:327: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:331: error: ‘Widget’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:331: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:336: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:337: error: ‘Display’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:337: error: ‘dpy’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:338: error: ‘Window’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:338: error: expected ‘;’ before ‘win’
../exim_monitor/em_StripChart.c:347: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:348: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:348: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:349: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:351: error: ‘win’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:351: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:353: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:357: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:358: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:358: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:359: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c: At top level:
../exim_monitor/em_StripChart.c:373: error: expected ‘)’ before ‘w’
../exim_monitor/em_StripChart.c:433: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SetValues’
../exim_monitor/em_StripChart.c:435: error: expected identifier or ‘(’ before ‘{’ token
../exim_monitor/em_StripChart.c: In function ‘SetPoints’:
../exim_monitor/em_StripChart.c:481: error: expected declaration specifiers before ‘StripChartWidget’
../exim_monitor/em_StripChart.c:483: error: ‘XPoint’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:483: error: ‘points’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:484: error: ‘Cardinal’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:484: error: expected ‘;’ before ‘size’
../exim_monitor/em_StripChart.c:487: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:488: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:489: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:493: error: ‘size’ undeclared (first use in this function)
../exim_monitor/em_StripChart.c:493: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:495: error: expected expression before ‘)’ token
../exim_monitor/em_StripChart.c:496: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:500: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:502: error: invalid type argument of ‘->’ (have ‘int’)
../exim_monitor/em_StripChart.c:502: error: invalid type argument of ‘->’ (have ‘int’)
make[1]: *** [em_StripChart.o] Error 1
make[1]: Leaving directory `/opt/test/exim-4.80.1/build-Linux-x86_64'
make: *** [all] Error 2
please help.... i am trying to install exim from source for the first time. but this error occurs when i try to make exim. i cant use yum or rpm because this is a task given to me to install exim from source. thank you.
exim-monitor or eximon is an X-based tool. When exim is configured to be built with eximon a lot of X-related dependencies are required. If some required soft/lib wasn't installed - you'll get an error.
To avoid that error just disable eximon in the exim build config.
I had something similar on Centos 6 minimal install. This is what I had to install (as root):
(Mine is a custom build with LDAP and TLS, so there may be more here than you need).
yum install pcre-devel
yum install libxext-dev
yum install xorg-x11-proto-devel
yum install libXt-devel
yum install openldap-devel
yum install openssl-devel
yum install Xaw-devel
yum install Xaw3d-devel
yum install Xaw3d
yum install libXaw-devel
I'm trying to understand how to fix error:
C:\inetpub\wwwroot\DISCOU~2>gem install fast_stack
ERROR: Error installing fast_stack:
ERROR: Failed to build gem native extension.
C:/Ruby200/bin/ruby.exe extconf.rb
creating Makefile
make "DESTDIR="
generating fast_stack-i386-mingw32.def
compiling fast_stack.c
In file included from c:/Ruby200/include/ruby-2.0.0/ruby/defines.h:153:0,
from c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:70,
from c:/Ruby200/include/ruby-2.0.0/ruby.h:33,
from fast_stack.c:3:
c:/Ruby200/include/ruby-2.0.0/ruby/win32.h:276:12: error: conflicting types for 'gettimeofday'
In file included from fast_stack.c:2:0:
c:\ruby200\devkit\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/sys/time.h:42:13: note: previous declaration of 'gettimeofday' was here
fast_stack.c: In function 'rb_profile_start':
fast_stack.c:9:22: error: storage size of 'timer' isn't known
fast_stack.c:11:34: error: 'suseconds_t' undeclared (first use in this function)
fast_stack.c:11:34: note: each undeclared identifier is reported only once for each function it appears in
fast_stack.c:11:46: error: expected ';' before 'rb_num2long_inline'
fast_stack.c:13:5: warning: implicit declaration of function 'setitimer' [-Wimplicit-function-declaration]
fast_stack.c:13:15: error: 'ITIMER_REAL' undeclared (first use in this function)
fast_stack.c:9:22: warning: unused variable 'timer' [-Wunused-variable]
fast_stack.c: In function 'rb_profile_stop':
fast_stack.c:21:22: error: storage size of 'timer' isn't known
fast_stack.c:23:15: error: 'ITIMER_REAL' undeclared (first use in this function)
fast_stack.c:21:22: warning: unused variable 'timer' [-Wunused-variable]
make: *** [fast_stack.o] Error 1
Gem files will remain installed in C:/inetpub/wwwroot/DISCOU~2/GEM_HOME/gems/fast_stack-0.1.0 for inspection.
It happens when I write "bundle install" command for the discourse.org application installing on Helicon Zoo environment.
It appears that it's not the Zoo itself, more issue with the gem. Try to install it separately, outside the environment of Zoo. Simply Ruby, in test catalog, but outside the Zoo. If that's working, contact HeliconTech directly and address as an issue, they're quite quick and good at fixing these things.
I've downloaded Stalin Scheme and tried to install it on OSX, but I've got this error:
gcc -O -I./include -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DSILENT -DALL_INTERIOR_POINTERS -DLARGE_CONFIG -DUSE_MMAP -DDONT_ADD_BYTE_AT_END -o if_mach ./if_mach.c
In file included from ./if_mach.c:3:
./include/private/gcconfig.h:477: error: expected identifier or ‘(’ before ‘--’ token
./if_mach.c: In function ‘main’:
./if_mach.c:14: error: ‘MACH_TYPE’ undeclared (first use in this function)
./if_mach.c:14: error: (Each undeclared identifier is reported only once
./if_mach.c:14: error: for each function it appears in.)
make: *** [if_mach] Error 1
cp: gc6.8/gc.a: No such file or directory
ranlib: can't open file: include/libgc.a (No such file or directory)
Cannot (yet) run Stalin on this architecture
Is there any workaround for this?
i try to install glance using command
(os)mirror0#lab:~/tmp/glance$ python setup.py install
but failed, why?
src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NOENT’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NOCDATA’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘XML_PARSE_RECOVER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘HTML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182031: error: ‘XML_XPATH_NUMBER_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182041: error: ‘XML_XPATH_UNFINISHED_LITERAL_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182051: error: ‘XML_XPATH_VARIABLE_REF_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182061: error: ‘XML_XPATH_INVALID_PREDICATE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182071: error: ‘XML_XPATH_UNCLOSED_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182081: error: ‘XML_XPATH_INVALID_CHAR_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182116: error: ‘XML_XPATH_UNDEF_VARIABLE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182126: error: ‘XML_XPATH_UNDEF_PREFIX_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182136: error: ‘XML_XPATH_UNKNOWN_FUNC_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182146: error: ‘XML_XPATH_INVALID_OPERAND’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182156: error: ‘XML_XPATH_INVALID_TYPE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182166: error: ‘XML_XPATH_INVALID_ARITY’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182176: error: ‘XML_XPATH_INVALID_CTXT_SIZE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182186: error: ‘XML_XPATH_INVALID_CTXT_POSITION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182532: error: ‘LIBXSLT_VERSION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182544: error: ‘xsltLibxsltVersion’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘__pyx_v_4lxml_5etree_XSLT_DOC_DEFAULT_LOADER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘xsltDocDefaultLoader’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: warning: implicit declaration of function ‘xsltSetLoaderFunc’
src/lxml/lxml.etree.c:182565: error: ‘xsltDocLoaderFunc’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: error: expected ‘)’ before ‘__pyx_f_4lxml_5etree__xslt_doc_loader’
src/lxml/lxml.etree.c:182816: warning: implicit declaration of function ‘xsltRegisterAllExtras’
src/lxml/lxml.etree.c:182825: warning: implicit declaration of function ‘exsltRegisterAll’
error: Setup script exited with error: command 'gcc' failed with exit status 1
(os)mirror0#lab:~/tmp/glance$ echo $?
1
(os)mirror0#lab:~/tmp/glance$ python -V
Python 2.6.6
Edit 1: i have installed libxml2-dev, still failed to install glance, why?
src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘XML_PARSE_RECOVER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘HTML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182031: error: ‘XML_XPATH_NUMBER_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182041: error: ‘XML_XPATH_UNFINISHED_LITERAL_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182051: error: ‘XML_XPATH_VARIABLE_REF_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182061: error: ‘XML_XPATH_INVALID_PREDICATE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182071: error: ‘XML_XPATH_UNCLOSED_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182081: error: ‘XML_XPATH_INVALID_CHAR_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182116: error: ‘XML_XPATH_UNDEF_VARIABLE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182126: error: ‘XML_XPATH_UNDEF_PREFIX_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182136: error: ‘XML_XPATH_UNKNOWN_FUNC_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182146: error: ‘XML_XPATH_INVALID_OPERAND’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182156: error: ‘XML_XPATH_INVALID_TYPE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182166: error: ‘XML_XPATH_INVALID_ARITY’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182176: error: ‘XML_XPATH_INVALID_CTXT_SIZE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182186: error: ‘XML_XPATH_INVALID_CTXT_POSITION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182532: error: ‘LIBXSLT_VERSION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182544: error: ‘xsltLibxsltVersion’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘__pyx_v_4lxml_5etree_XSLT_DOC_DEFAULT_LOADER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘xsltDocDefaultLoader’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: warning: implicit declaration of function ‘xsltSetLoaderFunc’
src/lxml/lxml.etree.c:182565: error: ‘xsltDocLoaderFunc’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: error: expected ‘)’ before ‘__pyx_f_4lxml_5etree__xslt_doc_loader’
src/lxml/lxml.etree.c:182816: warning: implicit declaration of function ‘xsltRegisterAllExtras’
src/lxml/lxml.etree.c:182825: warning: implicit declaration of function ‘exsltRegisterAll’
error: Setup script exited with error: command 'gcc' failed with exit status 1
(os)mirror0#lab:~/tmp/glance$ dpkg -l | grep libxml2
ii libxml2 2.7.8.dfsg-2+squeeze5 GNOME XML library
ii libxml2-dev 2.7.8.dfsg-2+squeeze5 Development files for the GNOME XML library
ii libxml2-utils 2.7.8.dfsg-2+squeeze5 XML utilities
ii python-libxml2 2.7.8.dfsg-2+squeeze5 Python bindings for the GNOME XML library
ii python-lxml 2.2.8-2 pythonic binding for the libxml2 and libxslt libraries
Try to install Libxslt. For Ubuntu:
sudo apt-get install libxslt1.1 libxslt1-dev python-libxslt1
I failed to build libjingle on Mac OS X 10.7.2. The output was the following when I run $path_to_swtoolkit/hammer.sh according to the README of libjingle.
MBP17:talk rei25$ ~/Desktop/swtoolkit/hammer.sh
scons: Reading SConscript files ...
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/Users/rei25/Desktop/swtoolkit/site_scons/site_init.py", line 203, in BuildEnvironmentSConscripts
scons: done reading SConscript files.
scons: Building targets ...
________Compiling build/dbg/obj/third_party/expat-2.0.1/lib/xmlparse.o
third_party/expat-2.0.1/lib/xmlparse.c:6:48: error: string.h: No such file or directory
third_party/expat-2.0.1/lib/xmlparse.c:7:20: error: assert.h: No such file or directory
In file included from third_party/expat-2.0.1/lib/xmlparse.c:24:
third_party/expat-2.0.1/lib/expat.h:17:20: error: stdlib.h: No such file or directory
cc1: warnings being treated as errors
third_party/expat-2.0.1/lib/xmlparse.c: In function 'parserCreate':
third_party/expat-2.0.1/lib/xmlparse.c:719: warning: implicit declaration of function 'malloc'
third_party/expat-2.0.1/lib/xmlparse.c:719: warning: incompatible implicit declaration of built-in function 'malloc'
third_party/expat-2.0.1/lib/xmlparse.c:723: error: 'realloc' undeclared (first use in this function)
third_party/expat-2.0.1/lib/xmlparse.c:723: error: (Each undeclared identifier is reported only once
third_party/expat-2.0.1/lib/xmlparse.c:723: error: for each function it appears in.)
third_party/expat-2.0.1/lib/xmlparse.c:724: error: 'free' undeclared (first use in this function)
third_party/expat-2.0.1/lib/xmlparse.c: In function 'parserInit':
third_party/expat-2.0.1/lib/xmlparse.c:848: warning: implicit declaration of function 'memset'
third_party/expat-2.0.1/lib/xmlparse.c:848: warning: incompatible implicit declaration of built-in function 'memset'
third_party/expat-2.0.1/lib/xmlparse.c: In function 'XML_Parse':
third_party/expat-2.0.1/lib/xmlparse.c:1543: warning: implicit declaration of function 'memcpy'
third_party/expat-2.0.1/lib/xmlparse.c:1543: warning: incompatible implicit declaration of built-in function 'memcpy'
third_party/expat-2.0.1/lib/xmlparse.c: In function 'XML_GetBuffer':
third_party/expat-2.0.1/lib/xmlparse.c:1627: warning: implicit declaration of function 'memmove'
third_party/expat-2.0.1/lib/xmlparse.c:1627: warning: incompatible implicit declaration of built-in function 'memmove'
third_party/expat-2.0.1/lib/xmlparse.c:1656: warning: incompatible implicit declaration of built-in function 'memcpy'
third_party/expat-2.0.1/lib/xmlparse.c: In function 'XML_GetParsingStatus':
third_party/expat-2.0.1/lib/xmlparse.c:1750: warning: implicit declaration of function 'assert'
third_party/expat-2.0.1/lib/xmlparse.c: In function 'storeRawNames':
third_party/expat-2.0.1/lib/xmlparse.c:2009: warning: incompatible implicit declaration of built-in function 'memcpy'
third_party/expat-2.0.1/lib/xmlparse.c: In function 'doContent':
third_party/expat-2.0.1/lib/xmlparse.c:2424: warning: implicit declaration of function 'memcmp'
third_party/expat-2.0.1/lib/xmlparse.c: In function 'storeAtts':
third_party/expat-2.0.1/lib/xmlparse.c:2922: warning: incompatible implicit declaration of built-in function 'memcpy'
third_party/expat-2.0.1/lib/xmlparse.c:2931: warning: incompatible implicit declaration of built-in function 'memcpy'
third_party/expat-2.0.1/lib/xmlparse.c: In function 'addBinding':
third_party/expat-2.0.1/lib/xmlparse.c:3039: warning: incompatible implicit declaration of built-in function 'memcpy'
third_party/expat-2.0.1/lib/xmlparse.c: In function 'lookup':
third_party/expat-2.0.1/lib/xmlparse.c:5871: warning: incompatible implicit declaration of built-in function 'memset'
third_party/expat-2.0.1/lib/xmlparse.c:5898: warning: incompatible implicit declaration of built-in function 'memset'
third_party/expat-2.0.1/lib/xmlparse.c:5927: warning: incompatible implicit declaration of built-in function 'memset'
third_party/expat-2.0.1/lib/xmlparse.c: In function 'poolGrow':
third_party/expat-2.0.1/lib/xmlparse.c:6112: warning: incompatible implicit declaration of built-in function 'memcpy'
third_party/expat-2.0.1/lib/xmlparse.c:6148: warning: incompatible implicit declaration of built-in function 'memcpy'
scons: *** [build/dbg/obj/third_party/expat-2.0.1/lib/xmlparse.o] Error 1
scons: building terminated because of errors.
I'm sure about the existence of string.h, assert.h and so on in my Mac.
I also tried cd to the directory expat-2.0.1 and run ./configure and make, and succeeded.
I've searched the web for this problem and it seems nothing useful to me. So, if you know why, thank you for telling me!
P.S My problem seems to be like this one: http://groups.google.com/group/googletestframework/browse_thread/thread/e8ed5a3f410b7ec7/a8ba72e727801fc8?show_docid=a8ba72e727801fc8
I had the same problem with lion. As wayon pointed out it's appears the developers hardcoded a particular SDK version "/Developer/SDKs/MacOSX10.5.sdk". As of the time of posting, the latest version is 10.7 which comes with Xcode 4. After fixing that there were a couple other issues with the build, I'm not sure if they're related to OS X or just a broken build script for lib jingle.
Here's the patch which fixes the other issues I found, libjingle patch.
Also, you'll probably have to fix swtoolkit via stackoverflow swtoolkit fix.
I haven't checked if the unit tests pass, but at least it compiles now.
I had the same issue.
In my case the issue was caused by the wrong CCFLAGS in the main.scons file in the directory 'talk' (top level of the source tree).
There was a wrong path for '-isysroot' argument:
CCFLAGS = [
'-arch', 'i386',
'-isysroot', '/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk',
'-fasm-blocks',
],
There was not iPhoneSimulator4.0.sdk on my mac, only iPhoneSimulator4.3.sdk and iPhoneSimulator5.0.sdk.
So, I just replaced 4.0 to 5.0 and got the following:
CCFLAGS = [
'-arch', 'i386',
'-isysroot', '/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk',
'-fasm-blocks',
],
It helped to me.
To resolve the issue try the following:
Check what version of sdk you've got in the folder /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
Set an appropriate path for -isysroot argument in the main.scons file at the top of source tree (in my case it's ilibjingle/gtalk/libjingle-0.5/talk):
Then try to run $path_to_swtoolkit/hammer.sh again.
I hope it will help you.
Try to add the following include to your main.scons file:
main.scons:
... // more than 300 lines and the you will find the mac_env section
mac_env.Append(
CPPDEFINES = [
'OSX',
],
CCFLAGS = [
'-m32',
'-arch', 'i386',
'-isysroot', '/Developer/SDKs/MacOSX10.5.sdk',
'-fasm-blocks',
'-I/usr/include', <--- Add this line and this will tell to scons where is your includes
...