Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Daniel Berger
RE: Sys::Uptime error on Win32 [ reply ]  
2007-07-27 21:30
I'm not sure what to tell you, but there's something going on with your environment. Look at this error:

/usr/lib/ruby/1.8/i486-linux/ruby.h:31:21: error: stdlib.h: No such file or directory

That's coming from ruby.h, not my source code.

I just did a remote install of sys-admin on our RHEL box just to verify that it was ok. It built and installed just fine.

I recommend posting this on ruby-talk (though, probably limit it to just one library), and see if anyone has any ideas.

Regards,

Dan

By: Robert H
RE: Sys::Uptime error on Win32 [ reply ]  
2007-07-27 20:16
If this were the case then why do the tarball's install just fine but the gems don't?

By: Daniel Berger
RE: Sys::Uptime error on Win32 [ reply ]  
2007-07-27 20:04
The problem is that you're using Ubuntu, a flavor of Debian, and they don't ship with some of the header files you need. There's some dev package you need to install first. You'll have to ask on #ruby-lang, or search the ruby-talk archives for what those packages are.

Regards,

Dan


By: Robert H
RE: Sys::Uptime error on Win32 [ reply ]  
2007-07-27 18:13
Dan,

Here is the output of my test. You will see at the top the gem/ruby/os version info and then the output of the install as well as corresponding log files at the end. This is LONG so here it goes:

root@ubuntu:~# gem -v
0.9.4
]0;root@ubuntu: ~root@ubuntu:~# ruby -v
ruby 1.8.5 (2006-08-25) [i486-linux]
]0;root@ubuntu: ~root@ubuntu:~# uname -a
Linux ubuntu 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux
]0;root@ubuntu: ~root@ubuntu:~# cat test_gems.sh
#!/bin/sh
gem install -y sys-admin
gem install -y sys-filesystem
gem install -y sys-cpu
gem install -y sys-proctable
gem install -y sys-uptime
gem install -y sys-host
gem install -y win32-service
]0;root@ubuntu: ~root@ubuntu:~# ./test_gems.sh
Bulk updating Gem source index for: http://gems.rubyforge.org
Select which gem to install for your platform (i486-linux)
1. sys-admin 1.4.2 (mswin32)
2. sys-admin 1.4.2 (ruby)
3. sys-admin 1.4.1 (ruby)
4. sys-admin 1.4.1 (mswin32)
5. Skip this gem
6. Cancel installation
> 2
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install -y sys-admin
checking for getlogin_r()... no
checking for getlogin()... no
checking for getenv()... no
checking for getpwuid_r()... no
checking for getpwuid()... no
checking for getpwnam_r()... no
checking for getpwnam()... no
checking for getpwent_r()... no
checking for getpwent()... no
checking for getgrgid_r()... no
checking for getgrgid()... no
checking for getgrnam_r()... no
checking for getgrnam()... no
checking for getgrent_r()... no
checking for getgrent()... no
checking for struct passwd.pw_gecos... no
checking for struct passwd.pw_change... no
checking for struct passwd.pw_quota... no
checking for struct passwd.pw_age... no
checking for struct passwd.pw_class... no
checking for struct passwd.pw_comment... no
checking for struct passwd.pw_expire... no
checking for struct passwd.pw_passwd... no
checking for struct group.gr_passwd... no
checking for utmp.h... no
checking for lastlog.h... no
creating Makefile

make
gcc -I. -I. -I/usr/lib/ruby/1.8/i486-linux -I. -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -D_POSIX_PTHREAD_SEMANTICS -D_GNU_SOURCE -D_REENTRANT -c admin.c
In file included from admin.c:1:
/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 admin.c:1:
/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 admin.c:1:
/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 admin.c:1:
/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 admin.c:1:
/usr/lib/ruby/1.8/i486-linux/ruby.h:708:21: error: pthread.h: No such file or directory
In file included from admin.c:1:
/usr/lib/ruby/1.8/i486-linux/ruby.h:710: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_nativethread_t’
In file included from admin.c:2:
admin.h:4:20: error: unistd.h: No such file or directory
admin.h:5:17: error: pwd.h: No such file or directory
admin.h:6:17: error: grp.h: No such file or directory
admin.h:7:19: error: fcntl.h: No such file or directory
admin.h:8:19: error: errno.h: No such file or directory
admin.h:16:18: error: utmp.h: No such file or directory
In file included from admin.c:2:
admin.h:50: warning: ‘struct passwd’ declared inside parameter list
admin.h:51: warning: ‘struct group’ declared inside parameter list
admin.h:52: warning: ‘struct passwd’ declared inside parameter list
admin.h: In function ‘get_user_by_num’:
admin.h:63: error: ‘uid_t’ undeclared (first use in this function)
admin.h:63: error: (Each undeclared identifier is reported only once
admin.h:63: error: for each function it appears in.)
admin.h:63: error: expected ‘;’ before ‘uid’
admin.h: In function ‘get_group_by_num’:
admin.h:131: error: ‘gid_t’ undeclared (first use in this function)
admin.h:131: error: expected ‘;’ before ‘gid’
admin.h: At top level:
admin.h:196: warning: ‘struct passwd’ declared inside parameter list
admin.h:196: error: conflicting types for ‘get_user’
admin.h:50: error: previous declaration of ‘get_user’ was here
admin.h: In function ‘get_user’:
admin.h:199: error: dereferencing pointer to incomplete type
admin.h:200: error: dereferencing pointer to incomplete type
admin.h:201: error: dereferencing pointer to incomplete type
admin.h:202: error: dereferencing pointer to incomplete type
admin.h:203: error: dereferencing pointer to incomplete type
admin.h:239: warning: passing argument 1 of ‘get_lastlog_info’ from incompatible pointer type
admin.h: At top level:
admin.h:249: warning: ‘struct passwd’ declared inside parameter list
admin.h: In function ‘get_user_from_value’:
admin.h:261: error: dereferencing pointer to incomplete type
admin.h:264: error: dereferencing pointer to incomplete type
admin.h:268: error: dereferencing pointer to incomplete type
admin.h:273: error: dereferencing pointer to incomplete type
admin.h: At top level:
admin.h:342: warning: ‘struct group’ declared inside parameter list
admin.h:342: error: conflicting types for ‘get_group’
admin.h:51: error: previous declaration of ‘get_group’ was here
admin.h: In function ‘get_group’:
admin.h:345: error: dereferencing pointer to incomplete type
admin.h:353: error: dereferencing pointer to incomplete type
admin.h:354: error: dereferencing pointer to incomplete type
admin.h: At top level:
admin.h:368: warning: ‘struct group’ declared inside parameter list
admin.h: In function ‘get_group_from_value’:
admin.h:369: warning: implicit declaration of function ‘malloc’
admin.h:369: warning: incompatible implicit declaration of built-in function ‘malloc’
admin.h:380: error: dereferencing pointer to incomplete type
admin.h:383: error: dereferencing pointer to incomplete type
admin.h:392: error: dereferencing pointer to incomplete type
admin.h:402: warning: implicit declaration of function ‘free’
admin.h:373: warning: unused variable ‘v_passwd’
admin.h: At top level:
admin.h:410: warning: ‘struct passwd’ declared inside parameter list
admin.h:410: error: conflicting types for ‘get_lastlog_info’
admin.h:52: error: previous declaration of ‘get_lastlog_info’ was here
admin.h: In function ‘get_lastlog_info’:
admin.h:412: error: ‘ssize_t’ undeclared (first use in this function)
admin.h:412: error: expected ‘;’ before ‘bytes_read’
admin.h:413: error: storage size of ‘log’ isn’t known
admin.h:414: error: invalid application of ‘sizeof’ to incomplete type ‘struct lastlog’
admin.h:419: warning: implicit declaration of function ‘open’
admin.h:419: error: ‘O_RDONLY’ undeclared (first use in this function)
admin.h:422: error: ‘bytes_read’ undeclared (first use in this function)
admin.h:422: warning: implicit declaration of function ‘pread’
admin.h:422: error: dereferencing pointer to incomplete type
admin.h:423: warning: implicit declaration of function ‘close’
admin.h:424: warning: implicit declaration of function ‘strerror’
admin.h:424: error: ‘errno’ undeclared (first use in this function)
admin.h:413: warning: unused variable ‘log’
admin.c: In function ‘admin_get_login’:
admin.c:52: warning: unused variable ‘v_login’
admin.c: In function ‘admin_groups’:
admin.c:158: warning: implicit declaration of function ‘setgrent’
admin.c:191: warning: implicit declaration of function ‘endgrent’
admin.c: In function ‘admin_users’:
admin.c:209: warning: implicit declaration of function ‘setpwent’
admin.c:244: warning: implicit declaration of function ‘endpwent’
make: *** [admin.o] Error 1


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sys-admin-1.4.2 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sys-admin-1.4.2/ext/gem_make.out
Bulk updating Gem source index for: http://gems.rubyforge.org
Select which gem to install for your platform (i486-linux)
1. sys-filesystem 0.1.1 (ruby)
2. sys-filesystem 0.1.1 (mswin32)
3. sys-filesystem 0.1.0 (ruby)
4. sys-filesystem 0.1.0 (mswin32)
5. Skip this gem
6. Cancel installation
> 1
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install -y sys-filesystem
checking for sys/mnttab.h... no
checking for mntent.h... no
checking for statvfs()... no
checking for sys/statvfs.h... no
checking for sys/vnode.h... no
creating Makefile

make
gcc -I. -I. -I/usr/lib/ruby/1.8/i486-linux -I. -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -c filesystem.c
In file included from filesystem.c:7:
/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 filesystem.c:7:
/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 filesystem.c:7:
/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 filesystem.c:7:
/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 filesystem.c:7:
/usr/lib/ruby/1.8/i486-linux/ruby.h:708:21: error: pthread.h: No such file or directory
In file included from filesystem.c:7:
/usr/lib/ruby/1.8/i486-linux/ruby.h:710: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_nativethread_t’
filesystem.c:14:23: error: sys/param.h: No such file or directory
filesystem.c:15:23: error: sys/mount.h: No such file or directory
filesystem.c:16:23: error: sys/vnode.h: No such file or directory
filesystem.c: In function ‘fs_stat’:
filesystem.c:59: error: storage size of ‘mp’ isn’t known
filesystem.c:60: error: storage size of ‘fs’ isn’t known
filesystem.c:61: error: storage size of ‘p’ isn’t known
filesystem.c:63: warning: implicit declaration of function ‘VFS_STATFS’
filesystem.c:61: warning: unused variable ‘p’
filesystem.c:60: warning: unused variable ‘fs’
filesystem.c:59: warning: unused variable ‘mp’
filesystem.c:51: warning: unused variable ‘path’
filesystem.c: In function ‘Init_filesystem’:
filesystem.c:185: error: ‘ST_RDONLY’ undeclared (first use in this function)
filesystem.c:185: error: (Each undeclared identifier is reported only once
filesystem.c:185: error: for each function it appears in.)
filesystem.c:188: error: ‘ST_NOSUID’ undeclared (first use in this function)
make: *** [filesystem.o] Error 1


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sys-filesystem-0.1.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sys-filesystem-0.1.1/ext/gem_make.out
Bulk updating Gem source index for: http://gems.rubyforge.org
Select which gem to install for your platform (i486-linux)
1. sys-cpu 0.6.0 (ruby)
2. sys-cpu 0.6.0 (i586-linux)
3. sys-cpu 0.6.0 (mswin32)
4. sys-cpu 0.5.5 (ruby)
5. sys-cpu 0.5.5 (mswin32)
6. sys-cpu 0.5.5 (i586-linux)
7. Skip this gem
8. Cancel installation
> 1
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install -y sys-cpu
Run 'ruby install.rb' instead for this platform
creating Makefile

make
make: Nothing to be done for `all'.

make install
make: *** No rule to make target `/usr/lib/ruby/gems/1.8/gems/sys-cpu-0.6.0/lib/sys', needed by `install-so'. Stop.


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sys-cpu-0.6.0 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sys-cpu-0.6.0/ext/gem_make.out
Bulk updating Gem source index for: http://gems.rubyforge.org
Select which gem to install for your platform (i486-linux)
1. sys-proctable 0.7.6 (ruby)
2. sys-proctable 0.7.6 (i586-linux)
3. sys-proctable 0.7.6 (powerpc-darwin)
4. sys-proctable 0.7.6 (mswin32)
5. Skip this gem
6. Cancel installation
> 1
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install -y sys-proctable
checking for rb_pid_t... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sys-proctable-0.7.6 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sys-proctable-0.7.6/ext/gem_make.out
Bulk updating Gem source index for: http://gems.rubyforge.org
Select which gem to install for your platform (i486-linux)
1. sys-uptime 0.5.1 (ruby)
2. sys-uptime 0.5.1 (mswin32)
3. sys-uptime 0.5.1 (i586-linux)
4. sys-uptime 0.5.0 (i586-linux)
5. sys-uptime 0.5.0 (mswin32)
6. sys-uptime 0.5.0 (ruby)
7. Skip this gem
8. Cancel installation
> 1
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install -y sys-uptime
Run the "install.rb" script instead on this platform
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sys-uptime-0.5.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sys-uptime-0.5.1/ext/gem_make.out
Bulk updating Gem source index for: http://gems.rubyforge.org
Select which gem to install for your platform (i486-linux)
1. sys-host 0.6.0 (mswin32)
2. sys-host 0.6.0 (ruby)
3. sys-host 0.5.2 (mswin32)
4. sys-host 0.5.2 (ruby)
5. Skip this gem
6. Cancel installation
> 2
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install -y sys-host
checking for gethostid()... no
checking for inet_ntop()... no
checking for gethostbyname_r()... no
checking for gethostent_r()... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sys-host-0.6.0 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sys-host-0.6.0/ext/gem_make.out
##########/usr/lib/ruby/gems/1.8/gems/sys-admin-1.4.2/ext/gem_make.out##########
ruby extconf.rb install -y sys-admin
checking for getlogin_r()... no
checking for getlogin()... no
checking for getenv()... no
checking for getpwuid_r()... no
checking for getpwuid()... no
checking for getpwnam_r()... no
checking for getpwnam()... no
checking for getpwent_r()... no
checking for getpwent()... no
checking for getgrgid_r()... no
checking for getgrgid()... no
checking for getgrnam_r()... no
checking for getgrnam()... no
checking for getgrent_r()... no
checking for getgrent()... no
checking for struct passwd.pw_gecos... no
checking for struct passwd.pw_change... no
checking for struct passwd.pw_quota... no
checking for struct passwd.pw_age... no
checking for struct passwd.pw_class... no
checking for struct passwd.pw_comment... no
checking for struct passwd.pw_expire... no
checking for struct passwd.pw_passwd... no
checking for struct group.gr_passwd... no
checking for utmp.h... no
checking for lastlog.h... no
creating Makefile

make
gcc -I. -I. -I/usr/lib/ruby/1.8/i486-linux -I. -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -D_POSIX_PTHREAD_SEMANTICS -D_GNU_SOURCE -D_REENTRANT -c admin.c
In file included from admin.c:1:
/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 admin.c:1:
/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 admin.c:1:
/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 admin.c:1:
/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 admin.c:1:
/usr/lib/ruby/1.8/i486-linux/ruby.h:708:21: error: pthread.h: No such file or directory
In file included from admin.c:1:
/usr/lib/ruby/1.8/i486-linux/ruby.h:710: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_nativethread_t’
In file included from admin.c:2:
admin.h:4:20: error: unistd.h: No such file or directory
admin.h:5:17: error: pwd.h: No such file or directory
admin.h:6:17: error: grp.h: No such file or directory
admin.h:7:19: error: fcntl.h: No such file or directory
admin.h:8:19: error: errno.h: No such file or directory
admin.h:16:18: error: utmp.h: No such file or directory
In file included from admin.c:2:
admin.h:50: warning: ‘struct passwd’ declared inside parameter list
admin.h:51: warning: ‘struct group’ declared inside parameter list
admin.h:52: warning: ‘struct passwd’ declared inside parameter list
admin.h: In function ‘get_user_by_num’:
admin.h:63: error: ‘uid_t’ undeclared (first use in this function)
admin.h:63: error: (Each undeclared identifier is reported only once
admin.h:63: error: for each function it appears in.)
admin.h:63: error: expected ‘;’ before ‘uid’
admin.h: In function ‘get_group_by_num’:
admin.h:131: error: ‘gid_t’ undeclared (first use in this function)
admin.h:131: error: expected ‘;’ before ‘gid’
admin.h: At top level:
admin.h:196: warning: ‘struct passwd’ declared inside parameter list
admin.h:196: error: conflicting types for ‘get_user’
admin.h:50: error: previous declaration of ‘get_user’ was here
admin.h: In function ‘get_user’:
admin.h:199: error: dereferencing pointer to incomplete type
admin.h:200: error: dereferencing pointer to incomplete type
admin.h:201: error: dereferencing pointer to incomplete type
admin.h:202: error: dereferencing pointer to incomplete type
admin.h:203: error: dereferencing pointer to incomplete type
admin.h:239: warning: passing argument 1 of ‘get_lastlog_info’ from incompatible pointer type
admin.h: At top level:
admin.h:249: warning: ‘struct passwd’ declared inside parameter list
admin.h: In function ‘get_user_from_value’:
admin.h:261: error: dereferencing pointer to incomplete type
admin.h:264: error: dereferencing pointer to incomplete type
admin.h:268: error: dereferencing pointer to incomplete type
admin.h:273: error: dereferencing pointer to incomplete type
admin.h: At top level:
admin.h:342: warning: ‘struct group’ declared inside parameter list
admin.h:342: error: conflicting types for ‘get_group’
admin.h:51: error: previous declaration of ‘get_group’ was here
admin.h: In function ‘get_group’:
admin.h:345: error: dereferencing pointer to incomplete type
admin.h:353: error: dereferencing pointer to incomplete type
admin.h:354: error: dereferencing pointer to incomplete type
admin.h: At top level:
admin.h:368: warning: ‘struct group’ declared inside parameter list
admin.h: In function ‘get_group_from_value’:
admin.h:369: warning: implicit declaration of function ‘malloc’
admin.h:369: warning: incompatible implicit declaration of built-in function ‘malloc’
admin.h:380: error: dereferencing pointer to incomplete type
admin.h:383: error: dereferencing pointer to incomplete type
admin.h:392: error: dereferencing pointer to incomplete type
admin.h:402: warning: implicit declaration of function ‘free’
admin.h:373: warning: unused variable ‘v_passwd’
admin.h: At top level:
admin.h:410: warning: ‘struct passwd’ declared inside parameter list
admin.h:410: error: conflicting types for ‘get_lastlog_info’
admin.h:52: error: previous declaration of ‘get_lastlog_info’ was here
admin.h: In function ‘get_lastlog_info’:
admin.h:412: error: ‘ssize_t’ undeclared (first use in this function)
admin.h:412: error: expected ‘;’ before ‘bytes_read’
admin.h:413: error: storage size of ‘log’ isn’t known
admin.h:414: error: invalid application of ‘sizeof’ to incomplete type ‘struct lastlog’
admin.h:419: warning: implicit declaration of function ‘open’
admin.h:419: error: ‘O_RDONLY’ undeclared (first use in this function)
admin.h:422: error: ‘bytes_read’ undeclared (first use in this function)
admin.h:422: warning: implicit declaration of function ‘pread’
admin.h:422: error: dereferencing pointer to incomplete type
admin.h:423: warning: implicit declaration of function ‘close’
admin.h:424: warning: implicit declaration of function ‘strerror’
admin.h:424: error: ‘errno’ undeclared (first use in this function)
admin.h:413: warning: unused variable ‘log’
admin.c: In function ‘admin_get_login’:
admin.c:52: warning: unused variable ‘v_login’
admin.c: In function ‘admin_groups’:
admin.c:158: warning: implicit declaration of function ‘setgrent’
admin.c:191: warning: implicit declaration of function ‘endgrent’
admin.c: In function ‘admin_users’:
admin.c:209: warning: implicit declaration of function ‘setpwent’
admin.c:244: warning: implicit declaration of function ‘endpwent’
make: *** [admin.o] Error 1
############/usr/lib/ruby/gems/1.8/gems/sys-admin-1.4.2/ext/mkmf.log############
have_func: checking for getlogin_r()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘getlogin_r’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))getlogin_r; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘getlogin_r’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { getlogin_r(); return 0; }
/* end */

--------------------

have_func: checking for getlogin()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘getlogin’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))getlogin; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘getlogin’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { getlogin(); return 0; }
/* end */

--------------------

have_func: checking for getenv()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘getenv’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))getenv; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘getenv’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { getenv(); return 0; }
/* end */

--------------------

have_func: checking for getpwuid_r()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘getpwuid_r’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))getpwuid_r; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘getpwuid_r’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { getpwuid_r(); return 0; }
/* end */

--------------------

have_func: checking for getpwuid()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘getpwuid’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))getpwuid; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘getpwuid’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { getpwuid(); return 0; }
/* end */

--------------------

have_func: checking for getpwnam_r()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘getpwnam_r’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))getpwnam_r; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘getpwnam_r’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { getpwnam_r(); return 0; }
/* end */

--------------------

have_func: checking for getpwnam()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘getpwnam’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))getpwnam; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘getpwnam’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { getpwnam(); return 0; }
/* end */

--------------------

have_func: checking for getpwent_r()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘getpwent_r’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))getpwent_r; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘getpwent_r’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { getpwent_r(); return 0; }
/* end */

--------------------

have_func: checking for getpwent()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘getpwent’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))getpwent; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘getpwent’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { getpwent(); return 0; }
/* end */

--------------------

have_func: checking for getgrgid_r()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘getgrgid_r’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))getgrgid_r; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘getgrgid_r’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { getgrgid_r(); return 0; }
/* end */

--------------------

have_func: checking for getgrgid()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘getgrgid’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))getgrgid; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘getgrgid’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { getgrgid(); return 0; }
/* end */

--------------------

have_func: checking for getgrnam_r()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘getgrnam_r’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))getgrnam_r; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘getgrnam_r’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { getgrnam_r(); return 0; }
/* end */

--------------------

have_func: checking for getgrnam()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘getgrnam’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))getgrnam; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘getgrnam’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { getgrnam(); return 0; }
/* end */

--------------------

have_func: checking for getgrent_r()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘getgrent_r’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))getgrent_r; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘getgrent_r’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { getgrent_r(); return 0; }
/* end */

--------------------

have_func: checking for getgrent()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘getgrent’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))getgrent; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘getgrent’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { getgrent(); return 0; }
/* end */

--------------------

have_struct_member: checking for struct passwd.pw_gecos... -------------------- no

"gcc -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC -c conftest.c"
conftest.c:1:17: error: pwd.h: No such file or directory
conftest.c:5: error: dereferencing pointer to incomplete type
checked program was:
/* begin */
1: #include <pwd.h>
2:
3: /*top*/
4: int main() { return 0; }
5: int s = (char *)&((struct passwd*)0)->pw_gecos - (char *)0;
/* end */

--------------------

have_struct_member: checking for struct passwd.pw_change... -------------------- no

"gcc -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC -c conftest.c"
conftest.c:1:17: error: pwd.h: No such file or directory
conftest.c:5: error: dereferencing pointer to incomplete type
checked program was:
/* begin */
1: #include <pwd.h>
2:
3: /*top*/
4: int main() { return 0; }
5: int s = (char *)&((struct passwd*)0)->pw_change - (char *)0;
/* end */

--------------------

have_struct_member: checking for struct passwd.pw_quota... -------------------- no

"gcc -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC -c conftest.c"
conftest.c:1:17: error: pwd.h: No such file or directory
conftest.c:5: error: dereferencing pointer to incomplete type
checked program was:
/* begin */
1: #include <pwd.h>
2:
3: /*top*/
4: int main() { return 0; }
5: int s = (char *)&((struct passwd*)0)->pw_quota - (char *)0;
/* end */

--------------------

have_struct_member: checking for struct passwd.pw_age... -------------------- no

"gcc -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC -c conftest.c"
conftest.c:1:17: error: pwd.h: No such file or directory
conftest.c:5: error: dereferencing pointer to incomplete type
checked program was:
/* begin */
1: #include <pwd.h>
2:
3: /*top*/
4: int main() { return 0; }
5: int s = (char *)&((struct passwd*)0)->pw_age - (char *)0;
/* end */

--------------------

have_struct_member: checking for struct passwd.pw_class... -------------------- no

"gcc -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC -c conftest.c"
conftest.c:1:17: error: pwd.h: No such file or directory
conftest.c:5: error: dereferencing pointer to incomplete type
checked program was:
/* begin */
1: #include <pwd.h>
2:
3: /*top*/
4: int main() { return 0; }
5: int s = (char *)&((struct passwd*)0)->pw_class - (char *)0;
/* end */

--------------------

have_struct_member: checking for struct passwd.pw_comment... -------------------- no

"gcc -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC -c conftest.c"
conftest.c:1:17: error: pwd.h: No such file or directory
conftest.c:5: error: dereferencing pointer to incomplete type
checked program was:
/* begin */
1: #include <pwd.h>
2:
3: /*top*/
4: int main() { return 0; }
5: int s = (char *)&((struct passwd*)0)->pw_comment - (char *)0;
/* end */

--------------------

have_struct_member: checking for struct passwd.pw_expire... -------------------- no

"gcc -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC -c conftest.c"
conftest.c:1:17: error: pwd.h: No such file or directory
conftest.c:5: error: dereferencing pointer to incomplete type
checked program was:
/* begin */
1: #include <pwd.h>
2:
3: /*top*/
4: int main() { return 0; }
5: int s = (char *)&((struct passwd*)0)->pw_expire - (char *)0;
/* end */

--------------------

have_struct_member: checking for struct passwd.pw_passwd... -------------------- no

"gcc -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC -c conftest.c"
conftest.c:1:17: error: pwd.h: No such file or directory
conftest.c:5: error: dereferencing pointer to incomplete type
checked program was:
/* begin */
1: #include <pwd.h>
2:
3: /*top*/
4: int main() { return 0; }
5: int s = (char *)&((struct passwd*)0)->pw_passwd - (char *)0;
/* end */

--------------------

have_struct_member: checking for struct group.gr_passwd... -------------------- no

"gcc -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC -c conftest.c"
conftest.c:1:17: error: grp.h: No such file or directory
conftest.c:5: error: dereferencing pointer to incomplete type
checked program was:
/* begin */
1: #include <grp.h>
2:
3: /*top*/
4: int main() { return 0; }
5: int s = (char *)&((struct group*)0)->gr_passwd - (char *)0;
/* end */

--------------------

have_header: checking for utmp.h... -------------------- no

"gcc -E -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -o conftest.i"
conftest.c:1:18: error: utmp.h: No such file or directory
checked program was:
/* begin */
1: #include <utmp.h>
/* end */

--------------------

have_header: checking for lastlog.h... -------------------- no

"gcc -E -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -o conftest.i"
conftest.c:1:21: error: lastlog.h: No such file or directory
checked program was:
/* begin */
1: #include <lastlog.h>
/* end */

--------------------

#######/usr/lib/ruby/gems/1.8/gems/sys-filesystem-0.1.1/ext/gem_make.out########
ruby extconf.rb install -y sys-filesystem
checking for sys/mnttab.h... no
checking for mntent.h... no
checking for statvfs()... no
checking for sys/statvfs.h... no
checking for sys/vnode.h... no
creating Makefile

make
gcc -I. -I. -I/usr/lib/ruby/1.8/i486-linux -I. -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -c filesystem.c
In file included from filesystem.c:7:
/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 filesystem.c:7:
/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 filesystem.c:7:
/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 filesystem.c:7:
/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 filesystem.c:7:
/usr/lib/ruby/1.8/i486-linux/ruby.h:708:21: error: pthread.h: No such file or directory
In file included from filesystem.c:7:
/usr/lib/ruby/1.8/i486-linux/ruby.h:710: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_nativethread_t’
filesystem.c:14:23: error: sys/param.h: No such file or directory
filesystem.c:15:23: error: sys/mount.h: No such file or directory
filesystem.c:16:23: error: sys/vnode.h: No such file or directory
filesystem.c: In function ‘fs_stat’:
filesystem.c:59: error: storage size of ‘mp’ isn’t known
filesystem.c:60: error: storage size of ‘fs’ isn’t known
filesystem.c:61: error: storage size of ‘p’ isn’t known
filesystem.c:63: warning: implicit declaration of function ‘VFS_STATFS’
filesystem.c:61: warning: unused variable ‘p’
filesystem.c:60: warning: unused variable ‘fs’
filesystem.c:59: warning: unused variable ‘mp’
filesystem.c:51: warning: unused variable ‘path’
filesystem.c: In function ‘Init_filesystem’:
filesystem.c:185: error: ‘ST_RDONLY’ undeclared (first use in this function)
filesystem.c:185: error: (Each undeclared identifier is reported only once
filesystem.c:185: error: for each function it appears in.)
filesystem.c:188: error: ‘ST_NOSUID’ undeclared (first use in this function)
make: *** [filesystem.o] Error 1
#########/usr/lib/ruby/gems/1.8/gems/sys-filesystem-0.1.1/ext/mkmf.log##########
have_header: checking for sys/mnttab.h... -------------------- no

"gcc -E -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -o conftest.i"
conftest.c:1:24: error: sys/mnttab.h: No such file or directory
checked program was:
/* begin */
1: #include <sys/mnttab.h>
/* end */

--------------------

have_header: checking for mntent.h... -------------------- no

"gcc -E -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -o conftest.i"
conftest.c:1:20: error: mntent.h: No such file or directory
checked program was:
/* begin */
1: #include <mntent.h>
/* end */

--------------------

have_func: checking for statvfs()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘statvfs’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))statvfs; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘statvfs’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { statvfs(); return 0; }
/* end */

--------------------

have_header: checking for sys/statvfs.h... -------------------- no

"gcc -E -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -o conftest.i"
conftest.c:1:25: error: sys/statvfs.h: No such file or directory
checked program was:
/* begin */
1: #include <sys/statvfs.h>
/* end */

--------------------

have_header: checking for sys/vnode.h... -------------------- no

"gcc -E -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -o conftest.i"
conftest.c:1:23: error: sys/vnode.h: No such file or directory
checked program was:
/* begin */
1: #include <sys/vnode.h>
/* end */

--------------------

###########/usr/lib/ruby/gems/1.8/gems/sys-cpu-0.6.0/ext/gem_make.out###########
ruby extconf.rb install -y sys-cpu
Run 'ruby install.rb' instead for this platform
creating Makefile

make
make: Nothing to be done for `all'.

make install
make: *** No rule to make target `/usr/lib/ruby/gems/1.8/gems/sys-cpu-0.6.0/lib/sys', needed by `install-so'. Stop.
########/usr/lib/ruby/gems/1.8/gems/sys-proctable-0.7.6/ext/gem_make.out########
ruby extconf.rb install -y sys-proctable
checking for rb_pid_t... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8
##########/usr/lib/ruby/gems/1.8/gems/sys-proctable-0.7.6/ext/mkmf.log##########
have_type: checking for rb_pid_t... -------------------- no

"gcc -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC -c conftest.c"
In file included from conftest.c:1:
/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 conftest.c:1:
/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 conftest.c:1:
/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 conftest.c:1:
/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 conftest.c:1:
/usr/lib/ruby/1.8/i486-linux/ruby.h:708:21: error: pthread.h: No such file or directory
In file included from conftest.c:1:
/usr/lib/ruby/1.8/i486-linux/ruby.h:710: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_nativethread_t’
conftest.c:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘conftest_type’
conftest.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘conftestval’
checked program was:
/* begin */
1: #include <ruby.h>
2:
3: /*top*/
4: typedef rb_pid_t conftest_type;
5: static conftest_type conftestval[sizeof(conftest_type)?1:-1];
/* end */

--------------------

#########/usr/lib/ruby/gems/1.8/gems/sys-uptime-0.5.1/ext/gem_make.out##########
ruby extconf.rb install -y sys-uptime
Run the "install.rb" script instead on this platform
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8
##########/usr/lib/ruby/gems/1.8/gems/sys-host-0.6.0/ext/gem_make.out###########
ruby extconf.rb install -y sys-host
checking for gethostid()... no
checking for inet_ntop()... no
checking for gethostbyname_r()... no
checking for gethostent_r()... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8
############/usr/lib/ruby/gems/1.8/gems/sys-host-0.6.0/ext/mkmf.log#############
have_func: checking for gethostid()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘gethostid’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))gethostid; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘gethostid’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { gethostid(); return 0; }
/* end */

--------------------

have_func: checking for inet_ntop()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: error: ‘inet_ntop’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))inet_ntop; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘inet_ntop’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { inet_ntop(); return 0; }
/* end */

--------------------

have_func: checking for gethostbyname_r()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c:1:19: error: netdb.h: No such file or directory
conftest.c: In function ‘t’:
conftest.c:5: error: ‘gethostbyname_r’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include <netdb.h>
2:
3: /*top*/
4: int main() { return 0; }
5: int t() { void ((*volatile p)()); p = (void ((*)()))gethostbyname_r; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c:1:19: error: netdb.h: No such file or directory
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘gethostbyname_r’
checked program was:
/* begin */
1: #include <netdb.h>
2:
3: /*top*/
4: int main() { return 0; }
5: int t() { gethostbyname_r(); return 0; }
/* end */

--------------------

have_func: checking for gethostent_r()... -------------------- no

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c:1:19: error: netdb.h: No such file or directory
conftest.c: In function ‘t’:
conftest.c:5: error: ‘gethostent_r’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include <netdb.h>
2:
3: /*top*/
4: int main() { return 0; }
5: int t() { void ((*volatile p)()); p = (void ((*)()))gethostent_r; return 0; }
/* end */

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -Wall -g -fno-strict-aliasing -O2 -fPIC conftest.c -L"/usr/lib" -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -ldl -lcrypt -lm -lc"
conftest.c:1:19: error: netdb.h: No such file or directory
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘gethostent_r’
checked program was:
/* begin */
1: #include <netdb.h>
2:
3: /*top*/
4: int main() { return 0; }
5: int t() { gethostent_r(); return 0; }
/* end */

--------------------


By: Robert H
RE: Sys::Uptime error on Win32 [ reply ]  
2007-07-27 17:04
Let me go back and re-install them on my system and I will run script on them and give you the output. Look for this later today.

Thanks for your help and great response time

By: Daniel Berger
RE: Sys::Uptime error on Win32 [ reply ]  
2007-07-27 16:46
Glad to hear that it's working for you now.

As for the Unix gems, you'll have to be more specific. I am somewhat limited by the platform constants that are provided within gems itself, however.

But, please let me know which Unix gems aren't building properly for you. Be sure to include the platform.

Thanks,

Dan

By: Robert H
RE: Sys::Uptime error on Win32 [ reply ]  
2007-07-27 16:40
Dan,

This is great! I have verified that the latest gem now works with win32 and ruby 1.8.6.


P.S. Is there going to eventually be a fix for the Unix gems and the fact that half of them or so don't work and you have to install them manually?

Thanks,
Robert

By: Daniel Berger
RE: Sys::Uptime error on Win32 [ reply ]  
2007-07-26 14:52
*SIGH*

You're right. This is arguably a bug in Ruby 1.8.6 where an MS specific date format no longer parsed by DateTime.parse. It worked fine in 1.8.5.

I'll fix it ASAP.

Thanks for the report,

Dan

By: Robert H
Sys::Uptime error on Win32 [ reply ]  
2007-07-25 21:32
With the code below it is erroring out trying to convert bignum to long. Any ideas?

def uptime
uptime={}
%w{days hours minutes seconds}.each do |member|
uptime[member.to_sym]=Sys::Uptime.send member
end
uptime
end