Opened 17 years ago
Last modified 14 years ago
#13166 closed defect
Gkrellm fails on kvm.h — at Initial Version
Reported by: | daniel@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.5.0 |
Keywords: | kvm | Cc: | |
Port: | gkrellm |
Description
Gkrellm fails to build, problem with kvm.h, found somewhere in Xcode the line :
/*
- Although Darwin does have a kvm.h file, kvm_openfiles etc. always
- return null because /dev/kmem was removed completely in OS X 10.5. */
#undef HAVE_KVM_H
#undef HAVE_KVM_GETPROCS
#undef HAVE_KVM_OPENFILES
When building ports, this happens:
port install gkrellm
---> Building gkrellm with target darwin
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_gkrellm/work/gkrellm-2.3.0" && gnumake darwin " returned error 2
Command output: (cd po && gnumake all)
gnumake[1]: Nothing to be done for `all'.
(cd src && gnumake GTK_CONFIG=gtk-config STRIP= HAVE_GETADDRINFO=1 \
EXTRAOBJS= SYS_LIBS="-lkvm -framework IOKit" \ LINK_FLAGS="-prebind -Wl,-bind_at_load -framework CoreFoundation -lX11" \ gkrellm )
cc -Wall -O2 -I.. pkg-config --cflags gtk+-2.0 gthread-2.0
-DENABLE_NLS -DLOCALEDIR=\"/opt/local/share/locale\" -DHAVE_GETADDRINFO -I/opt/local/include -L/opt/local/lib -I/opt/local/include -c -o sysdeps-unix.o sysdeps-unix.c
In file included from sysdeps-unix.c:34:
sysdeps/darwin.c:24:17: error: kvm.h: No such file or directory
In file included from sysdeps-unix.c:34:
sysdeps/darwin.c:30: error: syntax error before '*' token
sysdeps/darwin.c:30: warning: type defaults to 'int' in declaration of 'kvmd'
sysdeps/darwin.c:30: warning: data definition has no type or storage class
sysdeps/darwin.c: In function 'gkrellm_sys_main_init':
sysdeps/darwin.c:40: warning: implicit declaration of function 'kvm_openfiles'
sysdeps/darwin.c:40: warning: assignment makes pointer from integer without a cast
sysdeps/darwin.c: In function 'gkrellm_sys_cpu_read_data':
sysdeps/darwin.c:69: warning: pointer targets in passing argument 3 of 'host_processor_info' differ in signedness
sysdeps/darwin.c: In function 'gkrellm_sys_cpu_init':
sysdeps/darwin.c:95: warning: pointer targets in passing argument 3 of 'host_processor_info' differ in signedness
In file included from sysdeps-unix.c:34:
sysdeps/darwin.c: In function 'gkrellm_sys_proc_read_data':
sysdeps/darwin.c:158: error: array type has incomplete element type
sysdeps/darwin.c:190: warning: implicit declaration of function 'kvm_nlist'
sysdeps/darwin.c:192: warning: implicit declaration of function 'kvm_read'
sysdeps/darwin.c:158: warning: unused variable 'nl'
sysdeps/darwin.c: In function 'gkrellm_sys_proc_read_users':
sysdeps/darwin.c:220: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:97)
gnumake[1]: * [sysdeps-unix.o] Error 1
gnumake: * [darwin] Error 2
Error: Status 1 encountered during processing.