I am trying to install the gem twitter on mac osx maverick.But getting errors related to make and native extensions.
OS: Maverick
MAC OSX 10.9.1
Error:
ERROR: Error installing twitter:
ERROR: Failed to build gem native extension.
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
creating Makefile
make clean
make
compiling ruby_http_parser.c
Read on some questions and blog posts to update brew. But no luck.
brew update
Updated Homebrew from 78b4d7d7 to 78b4d7d7.
==> New Formulae
homebrew/dupes/ed
==> Updated Formulae
homebrew/dupes/ab homebrew/dupes/expect homebrew/dupes/groff homebrew/dupes/make homebrew/dupes/tcpdump
homebrew/dupes/apple-gcc42 homebrew/dupes/fetchmail homebrew/dupes/httpd homebrew/dupes/ncurses homebrew/dupes/tidy
homebrew/dupes/apr homebrew/dupes/file-formula homebrew/dupes/lapack homebrew/dupes/openssh homebrew/dupes/unzip
homebrew/dupes/apr-util homebrew/dupes/gdb homebrew/dupes/less homebrew/dupes/rsync homebrew/dupes/whois
homebrew/dupes/diffstat homebrew/dupes/grep homebrew/dupes/libpcap homebrew/dupes/tcl-tk homebrew/dupes/zlib
==> Deleted Formulae
homebrew/dupes/ant homebrew/dupes/libarchive homebrew/dupes/perl
sh-3.2# ls
Aliases Contributions ENV Formula Homebrew LinkedKegs Taps brew.rb
Any suggestions on fixing this?
UPDATE: Adding the complete log of the error when trying to install twitter gem
sh-3.2# gem install twitter
Building native extensions. This could take a while...
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:73: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
ERROR: Error installing twitter:
ERROR: Failed to build gem native extension.
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
creating Makefile
make clean
make
compiling ruby_http_parser.c
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:48:21: error: string.h: No such file or directory
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:58:21: error: stdint.h: No such file or directory
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:61:23: error: inttypes.h: No such file or directory
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:65:19: error: stdio.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:67,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/defines.h:29:21: error: stdlib.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:74:20: error: alloca.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:178,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.homebrew/Cellar/apple-gcc42/4.2.1-5666.3/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:10:25: error: limits.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1381,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:28:24: error: sys/time.h: No such file or directory
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:37:25: error: sys/types.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1381,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__syscall’
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:34,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1382,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/st.h:129: error: expected declaration specifiers or ‘...’ before ‘uint32_t’
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1382,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:286: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_fdset_t’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:380: error: expected declaration specifiers or ‘...’ before ‘fd_set’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:380: error: expected declaration specifiers or ‘...’ before ‘fd_set’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:380: error: expected declaration specifiers or ‘...’ before ‘fd_set’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:380: warning: ‘struct timeval’ declared inside parameter list
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:380: warning: its scope is only this definition or declaration, which is probably not what you want
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:381: error: expected declaration specifiers or ‘...’ before ‘rb_fdset_t’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:381: error: expected declaration specifiers or ‘...’ before ‘rb_fdset_t’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:381: error: expected declaration specifiers or ‘...’ before ‘rb_fdset_t’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:381: warning: ‘struct timeval’ declared inside parameter list
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:382: warning: ‘struct timeval’ declared inside parameter list
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:554: error: expected declaration specifiers or ‘...’ before ‘pid_t’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:572: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_fork’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:573: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_fork_err’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:575: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_waitpid’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:576: error: expected ‘)’ before ‘pid’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:577: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_spawn’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:578: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_spawn_err’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:580: error: expected ‘)’ before ‘pid’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:699: error: expected declaration specifiers or ‘...’ before ‘uint32_t’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:824: error: expected ‘)’ before ‘long’
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:825: error: expected ‘)’ before ‘long’
In file included from ruby_http_parser.c:3:
ryah_http_parser.h:209: error: expected specifier-qualifier-list before ‘uint32_t’
ryah_http_parser.h:265: error: expected specifier-qualifier-list before ‘uint16_t’
ruby_http_parser.c: In function ‘ParserWrapper_init’:
ruby_http_parser.c:44: error: ‘ryah_http_parser’ has no member named ‘status_code’
ruby_http_parser.c:45: error: ‘ryah_http_parser’ has no member named ‘http_major’
ruby_http_parser.c:46: error: ‘ryah_http_parser’ has no member named ‘http_minor’
ruby_http_parser.c: In function ‘ParserWrapper_free’:
ruby_http_parser.c:77: warning: implicit declaration of function ‘free’
ruby_http_parser.c: In function ‘on_message_begin’:
ruby_http_parser.c:102: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c:104: warning: implicit declaration of function ‘strlen’
ruby_http_parser.c:104: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:106: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:108: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c: In function ‘on_url’:
ruby_http_parser.c:125: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c: In function ‘on_header_field’:
ruby_http_parser.c:131: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c: In function ‘on_header_value’:
ruby_http_parser.c:144: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c:146: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c:160: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:162: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:167: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:169: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:172: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c: In function ‘on_headers_complete’:
ruby_http_parser.c:190: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c:192: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c: In function ‘on_body’:
ruby_http_parser.c:211: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c:213: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c: In function ‘on_message_complete’:
ruby_http_parser.c:230: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c:232: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c: In function ‘Parser_alloc_by_type’:
ruby_http_parser.c:262: error: ‘ryah_http_parser’ has no member named ‘data’
ruby_http_parser.c: In function ‘Parser_execute’:
ruby_http_parser.c:314: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c:320: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c:322: error: ‘ryah_http_parser’ has no member named ‘upgrade’
ruby_http_parser.c: In function ‘Parser_upgrade_p’:
ruby_http_parser.c:381: error: ‘ryah_http_parser’ has no member named ‘upgrade’
ruby_http_parser.c: In function ‘Parser_http_version’:
ruby_http_parser.c:388: error: ‘ryah_http_parser’ has no member named ‘http_major’
ruby_http_parser.c:388: error: ‘ryah_http_parser’ has no member named ‘http_minor’
ruby_http_parser.c:391: error: ‘ryah_http_parser’ has no member named ‘http_major’
ruby_http_parser.c:391: error: ‘ryah_http_parser’ has no member named ‘http_minor’
ruby_http_parser.c: In function ‘Parser_http_major’:
ruby_http_parser.c:398: error: ‘ryah_http_parser’ has no member named ‘http_major’
ruby_http_parser.c:398: error: ‘ryah_http_parser’ has no member named ‘http_minor’
ruby_http_parser.c:401: error: ‘ryah_http_parser’ has no member named ‘http_major’
ruby_http_parser.c: In function ‘Parser_http_minor’:
ruby_http_parser.c:408: error: ‘ryah_http_parser’ has no member named ‘http_major’
ruby_http_parser.c:408: error: ‘ryah_http_parser’ has no member named ‘http_minor’
ruby_http_parser.c:411: error: ‘ryah_http_parser’ has no member named ‘http_minor’
ruby_http_parser.c: In function ‘Parser_http_method’:
ruby_http_parser.c:419: error: ‘ryah_http_parser’ has no member named ‘method’
ruby_http_parser.c:419: error: ‘ryah_http_parser’ has no member named ‘method’
ruby_http_parser.c:419: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:419: error: ‘ryah_http_parser’ has no member named ‘method’
ruby_http_parser.c:419: error: ‘ryah_http_parser’ has no member named ‘method’
ruby_http_parser.c: In function ‘Parser_status_code’:
ruby_http_parser.c:428: error: ‘ryah_http_parser’ has no member named ‘status_code’
ruby_http_parser.c:429: error: ‘ryah_http_parser’ has no member named ‘status_code’
ruby_http_parser.c: In function ‘Parser_set_header_value_type’:
ruby_http_parser.c:451: warning: ISO C90 forbids mixed declarations and code
ruby_http_parser.c: In function ‘Init_ruby_http_parser’:
ruby_http_parser.c:473: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:474: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:475: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:476: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:477: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:478: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:479: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:481: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:482: warning: incompatible implicit declaration of built-in function ‘strlen’
ruby_http_parser.c:483: warning: incompatible implicit declaration of built-in function ‘strlen’
make: *** [ruby_http_parser.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/gems/1.9.1/gems/http_parser.rb-0.6.0 for inspection.
Results logged to /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/gems/1.9.1/extensions/x86_64-darwin-12/1.9.1/http_parser.rb-0.6.0/gem_make.out
sh-3.2# sh-3.2# gem install twitter
sh: sh-3.2#: command not found
sh-3.2# Building native extensions. This could take a while...
sh: Building: command not found
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:73: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:73:: No such file or directory
sh-3.2# ERROR: Error installing twitter:
sh: ERROR:: command not found
sh-3.2# ERROR: Failed to build gem native extension.
sh: ERROR:: command not found
sh-3.2#
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/bin/ruby: No such file or directory -- extconf.rb (LoadError)
sh-3.2# creating Makefile
make clean
make
compiling ruby_http_parser.c
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:48:21: error: string.h: No such file or directory
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:58:21: error: stdint.h: No such file or directory
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:61:23: error: inttypes.h: No such file or directory
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:65:19: error: stdio.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:67,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubsh: creating: command not found
sh-3.2#
sh-3.2# make clean
make: *** No rule to make target `clean'. Stop.
sh-3.2#
sh-3.2# make
make: *** No targets specified and no makefile found. Stop.
sh-3.2# compiling ruby_http_parser.c
sh: compiling: command not found
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh: In: command not found
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:48:21: error: string.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:48:21:: No such file or directory
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:58:21: error: stdint.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:58:21:: No such file or directory
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:61:23: error: inttypes.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:61:23:: No such file or directory
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:65:19: error: stdio.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:65:19:: No such file or directory
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:67,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/defines.h:29:21: error: stdlib.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:74:20: error: alloca.h: No such file or directory
In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:178,
from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from ruby_http_parser.c:1:
/Users/sandeepuppuluri/.homebrew/Cellar/apple-gcc42/4.2.1-5666.3/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:10:25: error: limits.h: No such file or directory
In file included from /Ush: In: command not found
sh-3.2# from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from: can't read /var/mail//Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/defines.h:29:21: error: stdlib.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/defines.h:29:21:: No such file or directory
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh: In: command not found
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:74:20: error: alloca.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:74:20:: No such file or directory
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:178,
sh: In: command not found
sh-3.2# from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from: can't read /var/mail//Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.homebrew/Cellar/apple-gcc42/4.2.1-5666.3/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:10:25: error: limits.h: No such file or directory
sh: /Users/sandeepuppuluri/.homebrew/Cellar/apple-gcc42/4.2.1-5666.3/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:10:25:: No such file or directory
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1381,
sh: In: command not found
sh-3.2# from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from: can't read /var/mail//Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:28:24: error: sys/time.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:28:24:: No such file or directory
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:37:25: error: sys/types.h: No such file or directory
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:37:25:: No such file or directory
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1381,
sh: In: command not found
sh-3.2# from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from: can't read /var/mail//Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__syscall’
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/missing.h:56:: No such file or directory
sh: ’,: command not found
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/intern.h:34,
sh: In: command not found
sh-3.2# from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1382,
from: can't read /var/mail//Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1382,
sh-3.2# from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from: can't read /var/mail//Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/st.h:129: error: expected declaration specifiers or ‘...’ before ‘uint32_t’
sh: /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/st.h:129:: No such file or directory
sh-3.2# In file included from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby/ruby.h:1382,
sh: In: command not found
sh-3.2# from /Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from: can't read /var/mail//Users/sandeepuppuluri/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
sh-3.2# from ruby_http_parser.c:1:
from: can't read /var/mail/ruby_http_parser.c:1:
sh-3.2# /Users/sandeepuppuluri/.rvm/rubies/ruby-1.
Thanks all who provided the inputs.
I was able to install the twitter gem successfully after uninstalling homebrew and reinstalling it again.
For some reason my development headers are screwed up when I upgraded to mac osx maverick
Related
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 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
This question already has answers here:
Mountain Lion rvm install 1.8.7 x11 error
(5 answers)
Closed 8 years ago.
I had a fresh install of Mountain Lion and installed the Xcode Command Line Tools, . I was able to get homebrew running and installed RVM. Unfortunately, I can't get RVM to install ree-1.8.7-head. It fails when compiling. I thought it was related to X11, so I installed XQuartz. Still no joy. Then I went ahead and installed the full Xcode from the app store. Still no joy. Anyone gotten this going on a fresh Mountain Lion install?
From the bottom of the .rvm/log/ree-1.8.7-head/make.log:
Find Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk.
gcc -I. -I../.. -I../../. -I../.././ext/tk -DHAVE_RB_SAFE_LEVEL -DHAVE_RB_HASH_LOOKUP -DHAVE_RB_PROC_NEW -DHAVE_RB_OBJ_TAINT -DHAVE_ST_PTR -DHAVE_ST_LEN -DRUBY_VERSION=\"1.8.7\" -DRUBY_RELEASE_DATE=\"2012-02-08\" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -DWITH_TCL_ENABLE_THREAD=0 -fno-common -g -O2 -pipe -fno-common -c stubs.c
In file included from stubs.c:10:
/usr/include/tk.h:78:23: error: X11/Xlib.h: No such file or directory
In file included from stubs.c:10:
/usr/include/tk.h:549: error: expected declaration specifiers or ‘...’ before ‘Window’
/usr/include/tk.h:549: error: ‘Window’ declared as function returning a function
.
.
/usr/include/tkDecls.h:1240: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute
__’ before ‘Tk_GetBitmapFromObj’
/usr/include/tkDecls.h:1245: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/tkDecls.h:1356: error: expected ‘)’ before ‘*’ token
/usr/include/tkDecls.h:1362: error: expected ‘)’ before ‘*’ token
/usr/include/tkDecls.h:1387: error: expected declaration specifiers or ‘...’ before ‘GC’
/usr/include/tkDecls.h:1399: error: expected declaration specifiers or ‘...’ before ‘GC’
/usr/include/tkDecls.h:1413: error: expected declaration specifiers or ‘...’ before ‘Pixmap’
/usr/include/tkDecls.h:1420: error: expected declaration specifiers or ‘...’ before ‘XColor’
/usr/include/tkDecls.h:1448: error: expected declaration specifiers or ‘...’ before ‘Pixmap’
/usr/include/tkDecls.h:1524: error: expected ‘)’ before ‘*’ token
/usr/include/tkDecls.h:1621: error: expected declaration specifiers or ‘...’ before ‘Drawable’
/usr/include/tkDecls.h:1656: error: expected ‘)’ before ‘*’ token
/usr/include/tkDecls.h:1661: error: expected ‘)’ before ‘*’ token
/usr/include/tkDecls.h:1692: error: expected specifier-qualifier-list before ‘XColor’
make[1]: *** [stubs.o] Error 1
make: *** [all] Error 1
try
rvm reinstall 1.8.7 --without-tcl --without-tk
but still your problem might to be related to gcc-4.2 -> it's required for MRI ruby, there are some successes with llvm/clang, but still it fails with Fibers
If you don't need tcl or tk and are using rbenv, this should work:
brew install https://raw.github.com/Homebrew/homebrew-dupes/master/apple-gcc42.rb
CC=/usr/local/bin/gcc-4.2 CONFIGURE_OPTS="--without-tcl --without-tk" rbenv install 1.8.7-p358
I am trying to compile imapfilter 2.4.1 ( https://github.com/lefcha/imapfilter ) in CentOS 5.6. I believe I've got all the dependencies sorted but when I run make I get:
make[1]: Entering directory `/home/src/imapfilter-2.4.1/src'
cc -Wall -O -DMAKEFILE_SHAREDIR='"/usr/local/share/imapfilter"' -c -o core.o core.c
core.c:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ifcorelib’
core.c: In function ‘ifcore_append’:
core.c:947: warning: implicit declaration of function ‘lua_strlen’
core.c: In function ‘luaopen_ifcore’:
core.c:1162: warning: implicit declaration of function ‘luaL_register’
core.c:1162: error: ‘ifcorelib’ undeclared (first use in this function)
core.c:1162: error: (Each undeclared identifier is reported only once
core.c:1162: error: for each function it appears in.)
make[1]: *** [core.o] Error 1
make[1]: Leaving directory `/home/src/imapfilter-2.4.1/src'
make: *** [all] Error 2
Based on other user comments and file revision dates I am sure this should compile. I am guessing I'm missing a library somewhere. I'll appreciate any help I can get on this.
Starting from first error message:
core.c:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ifcorelib’
Line 41 of core.c is:
static const luaL_reg ifcorelib[] = {
Cryptic message from gcc means that it knows nothing about what is the luaL_reg and it thinks that it is variable name. Then it goes into panic when reads second variable name in the same definition/declaration. luaL_reg should be something like struct.
So, it seems that your problems are located in LUA development headers. May be you have too old or even to modern Lua package.
The imapfilter's github's readme says:
Compile time requirements are Lua (version 5.1)
Are you sure that your lua is 5.1 and the lua-devel (or any other package with lua headers) is 5.1 too?
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
...