Hi all,
I am strangely getting errors on Debian Etch on a Intel server though
I had done an identical install of mongrel-1.0.1 on an amd64 version
of Etch.
While building fastthreads I get:
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
ruby extconf.rb install mongrel
creating Makefile
make
gcc -I. -I/usr/lib/ruby/1.8/i486-linux -I/usr/lib/ruby/1.8/i486-linux
-I. -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -c fastthread.c
In file included from fastthread.c:12:
/usr/lib/ruby/1.8/i486-linux/ruby.h:31:21: error: stdlib.h: No such
file or directory
/usr/lib/ruby/1.8/i486-linux/ruby.h:35:21: error: string.h: No such
file or directory
/usr/lib/ruby/1.8/i486-linux/ruby.h:45:19: error: stdio.h: No such
file or directory
/usr/lib/ruby/1.8/i486-linux/ruby.h:67:20: error: alloca.h: No such
file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
from /usr/lib/ruby/1.8/i486-linux/ruby.h:87,
from fastthread.c:12:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error:
limits.h: No such file or directory
In file included from /usr/lib/ruby/1.8/i486-linux/ruby.h:698,
from fastthread.c:12:
/usr/lib/ruby/1.8/i486-linux/missing.h:16:24: error: sys/time.h: No
such file or directory
/usr/lib/ruby/1.8/i486-linux/missing.h:25:25: error: sys/types.h: No
such file or directory
In file included from /usr/lib/ruby/1.8/i486-linux/ruby.h:699,
from fastthread.c:12:
/usr/lib/ruby/1.8/i486-linux/intern.h:216: error: expected declaration
specifiers or ''...'' before ''fd_set''
/usr/lib/ruby/1.8/i486-linux/intern.h:216: error: expected declaration
specifiers or ''...'' before ''fd_set''
/usr/lib/ruby/1.8/i486-linux/intern.h:216: error: expected declaration
specifiers or ''...'' before ''fd_set''
/usr/lib/ruby/1.8/i486-linux/intern.h:216: warning: ''struct
timeval''
declared inside parameter list
/usr/lib/ruby/1.8/i486-linux/intern.h:216: warning: its scope is only
this definition or declaration, which is probably not what you want
/usr/lib/ruby/1.8/i486-linux/intern.h:217: warning: ''struct
timeval''
declared inside parameter list
/usr/lib/ruby/1.8/i486-linux/intern.h:447: warning: parameter names
(without types) in function declaration
In file included from fastthread.c:12:
/usr/lib/ruby/1.8/i486-linux/ruby.h:708:21: error: pthread.h: No such
file or directory
In file included from fastthread.c:12:
/usr/lib/ruby/1.8/i486-linux/ruby.h:710: error: expected ''='',
'','',
'';'', ''asm'' or
''__attribute__'' before ''rb_nativethread_t''
In file included from fastthread.c:13:
/usr/lib/ruby/1.8/i486-linux/intern.h:216: error: expected declaration
specifiers or ''...'' before ''fd_set''
/usr/lib/ruby/1.8/i486-linux/intern.h:216: error: expected declaration
specifiers or ''...'' before ''fd_set''
/usr/lib/ruby/1.8/i486-linux/intern.h:216: error: expected declaration
specifiers or ''...'' before ''fd_set''
/usr/lib/ruby/1.8/i486-linux/intern.h:216: warning: ''struct
timeval''
declared inside parameter list
/usr/lib/ruby/1.8/i486-linux/intern.h:216: error: conflicting types
for ''rb_thread_select''
/usr/lib/ruby/1.8/i486-linux/intern.h:216: error: previous declaration
of ''rb_thread_select'' was here
/usr/lib/ruby/1.8/i486-linux/intern.h:217: warning: ''struct
timeval''
declared inside parameter list
/usr/lib/ruby/1.8/i486-linux/intern.h:217: error: conflicting types
for ''rb_thread_wait_for''
/usr/lib/ruby/1.8/i486-linux/intern.h:217: error: previous declaration
of ''rb_thread_wait_for'' was here
/usr/lib/ruby/1.8/i486-linux/intern.h:447: warning: parameter names
(without types) in function declaration
In file included from fastthread.c:14:
/usr/lib/ruby/1.8/i486-linux/rubysig.h:15:19: error: errno.h: No such
file or directory
fastthread.c: In function ''wait_condvar'':
fastthread.c:626: warning: passing argument 1 of ''rb_ensure''
from
incompatible pointer type
make: *** [fastthread.o] Error 1
I have ruby1.8-dev also installed. Which pkg do the .h files it''s
asking for come from? They aren''t in the
/usr/lib/ruby/1.8/i486-linux/. I have gcc4.1 installed.
Thanks for your help.
bakki