Skip to content

Support Solaris / SmartOs #10

@krzaczek

Description

@krzaczek

Hi,

I'm having problems installing vmstat on SmartOs. This fails during gitlab upgrade.

[root@gitlab /home/git/gitlab]# uname -a
SunOS gitlab 5.11 joyent_20151015T063628Z i86pc i386 i86pc Solaris
[root@gitlab /home/git/gitlab]# sudo -u git -H gem install vmstat -v 2.1.1
Building native extensions.  This could take a while...
ERROR:  Error installing vmstat:
        ERROR: Failed to build gem native extension.

    /opt/local/bin/ruby215 extconf.rb
checking for unistd.h... yes
checking for getpagesize()... yes
checking for stdlib.h... yes
checking for getloadavg()... yes
checking for mach/mach.h... no
checking for mach/mach_host.h... no
checking for host_processor_info()... no
checking for mach_host_self()... no
checking for mach_task_self()... no
checking for vm_deallocate()... no
checking for mach_error_string()... no
checking for task_info()... no
checking for KERN_SUCCESS in mach/mach.h,mach/mach_host.h... no
checking for TASK_BASIC_INFO in mach/mach.h,mach/mach_host.h... no
checking for HOST_VM_INFO in mach/mach.h,mach/mach_host.h... no
checking for CPU_STATE_MAX in mach/mach.h,mach/mach_host.h... no
checking for PROCESSOR_CPU_LOAD_INFO in mach/mach.h,mach/mach_host.h... no
checking for CPU_STATE_USER in mach/mach.h,mach/mach_host.h... no
checking for CPU_STATE_SYSTEM in mach/mach.h,mach/mach_host.h... no
checking for CPU_STATE_NICE in mach/mach.h,mach/mach_host.h... no
checking for CPU_STATE_IDLE in mach/mach.h,mach/mach_host.h... no
checking for sys/param.h... yes
checking for sys/mount.h... yes
checking for sys/statfs.h... yes
checking for statfs()... yes
checking for unistd.h... yes
checking for sys/sysctl.h... no
checking for sys/types.h... yes
checking for sys/socket.h... yes
checking for net/if.h... yes
checking for net/if_mib.h... no
checking for net/if_types.h... yes
checking for getloadavg()... yes
checking for sysctl()... no
checking for struct ifmibdata in unistd.h,sys/sysctl.h,sys/types.h,sys/socket.h,net/if.h,net/if_mib.h,net/if_types.h... no
checking for CTL_NET in unistd.h,sys/sysctl.h,sys/types.h,sys/socket.h,net/if.h,net/if_mib.h,net/if_types.h... no
checking for PF_LINK in unistd.h,sys/sysctl.h,sys/types.h,sys/socket.h,net/if.h,net/if_mib.h,net/if_types.h... no
checking for NETLINK_GENERIC in unistd.h,sys/sysctl.h,sys/types.h,sys/socket.h,net/if.h,net/if_mib.h,net/if_types.h... no
checking for IFMIB_IFDATA in unistd.h,sys/sysctl.h,sys/types.h,sys/socket.h,net/if.h,net/if_mib.h,net/if_types.h... no
checking for IFDATA_GENERAL in unistd.h,sys/sysctl.h,sys/types.h,sys/socket.h,net/if.h,net/if_mib.h,net/if_types.h... no
checking for CTL_KERN in unistd.h,sys/sysctl.h,sys/types.h,sys/socket.h,net/if.h,net/if_mib.h,net/if_types.h... no
checking for KERN_BOOTTIME in unistd.h,sys/sysctl.h,sys/types.h,sys/socket.h,net/if.h,net/if_mib.h,net/if_types.h... no
creating extconf.h
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling vmstat.c
In file included from vmstat.c:3:0:
./hw/statfs.h: In function 'vmstat_disk':
./hw/statfs.h:17:7: error: too few arguments to function 'statfs'
   if (statfs(StringValueCStr(path), &stat) != -1) {
       ^
In file included from ./hw/statfs.h:8:0,
                 from vmstat.c:3:
/usr/include/sys/statfs.h:75:5: note: declared here
 int statfs(const char *, struct statfs *, int, int);
     ^
In file included from /opt/local/include/ruby-2.1.5/ruby.h:33:0,
                 from ./vmstat.h:1,
                 from vmstat.c:1:
./hw/statfs.h:20:45: error: 'struct statfs' has no member named 'f_type'
            rb_intern("new"), 6, ULL2NUM(stat.f_type),
                                             ^
/opt/local/include/ruby-2.1.5/ruby/ruby.h:245:32: note: in definition of macro 'ULL2NUM'
 #define ULL2NUM(v) rb_ull2inum(v)
                                ^
./hw/statfs.h:24:45: error: 'struct statfs' has no member named 'f_bavail'
                                 ULL2NUM(stat.f_bavail),
                                             ^
/opt/local/include/ruby-2.1.5/ruby/ruby.h:245:32: note: in definition of macro 'ULL2NUM'
 #define ULL2NUM(v) rb_ull2inum(v)
                                ^
Makefile:224: recipe for target 'vmstat.o' failed
make: *** [vmstat.o] Error 1

make failed, exit code 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions