Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

help compile on mac os x

Help
delta592
2006-02-25
2013-05-08
  • delta592
    delta592
    2006-02-25

    I am trying to compile top-3.6beta5 under mac os x 10.4.5.  configure works fine, however, I get numerous errors running make.  Below are the results from configure and make.  Any help would be great:

    dax@defiant:/Users/dax/tmp/top-3.6beta5 $ ./configure
    checking build system type... powerpc-apple-darwin8.5.0
    checking host system type... powerpc-apple-darwin8.5.0
    checking target system type... powerpc-apple-darwin8.5.0
    checking for make... make
    checking for gcc... gcc
    checking for C compiler default output... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gawk... gawk
    checking for a BSD-compatible install... /usr/bin/install -c
    checking for VPATH support in make... yes
    checking OS revision number... 850
    checking for kstat_open in -lkstat... no
    checking for kvm_open in -lkvm... yes
    checking for elf32_getphdr in -lelf... no
    checking for vm_statistics in -lmach... no
    checking for library containing tgetent... -ltermcap
    checking for exp in -lm... yes
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking stdarg.h usability... yes
    checking stdarg.h presence... yes
    checking for stdarg.h... yes
    checking termcap.h usability... yes
    checking termcap.h presence... yes
    checking for termcap.h... yes
    checking sys/resource.h usability... yes
    checking sys/resource.h presence... yes
    checking for sys/resource.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking whether time.h and sys/time.h may both be included... yes
    checking for a good signal.h... /usr/include/sys/signal.h
    checking whether sys_errlist is declared... yes
    checking return type of signal handlers... void
    checking for time_t... yes
    checking for getopt... yes
    checking for memcpy... yes
    checking for setpriority... yes
    checking for strchr... yes
    checking for strerror... yes
    checking for snprintf... yes
    checking for sighold... yes
    checking for sigrelse... yes
    checking for sigaction... yes
    checking for sigprocmask... yes
    checking for correct ls options... ls -l
    checking for a platform module... macosx
    checking address space size... default
    checking for installation settings... owner=root, group=kmem, mode=2755
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating top.1
    config.status: creating config.h
    dax@defiant:/Users/dax/tmp/top-3.6beta5 $ make
    gcc -DHAVE_CONFIG_H -I. -I. -g -O2   -c -o color.o color.c
    gawk -f ./sigconv.awk /usr/include/sys/signal.h >sigdesc.h
    gcc -DHAVE_CONFIG_H -I. -I. -g -O2   -c -o commands.o commands.c
    gcc -DHAVE_CONFIG_H -I. -I. -g -O2   -c -o display.o display.c
    gcc -DHAVE_CONFIG_H -I. -I. -g -O2   -c -o screen.o screen.c
    gcc -DHAVE_CONFIG_H -I. -I. -g -O2   -c -o top.o top.c
    gcc -DHAVE_CONFIG_H -I. -I. -g -O2   -c -o username.o username.c
    gcc -DHAVE_CONFIG_H -I. -I. -g -O2   -c -o utils.o utils.c
    gcc -DHAVE_CONFIG_H -I. -I. -g -O2   -c -o version.o version.c
    gcc -DHAVE_CONFIG_H -I. -I. -g -O2   -c -o m_macosx.o ./machine/m_macosx.c
    In file included from ./machine/m_macosx.c:27:
    ./machine.h:19: error: parse error before 'time_t'
    ./machine.h:19: warning: no semicolon at end of struct or union
    ./machine.h:25: error: parse error before '}' token
    ./machine.h:70: error: parse error before 'get_process_info'
    ./machine.h:70: warning: data definition has no type or storage class
    ./machine.h:72: error: parse error before 'char'
    ./machine.h:72: error: parse error before ')' token
    ./machine/m_macosx.c: In function 'format_header':
    ./machine/m_macosx.c:332: warning: comparison between pointer and integer
    ./machine/m_macosx.c: In function 'format_next_process':
    ./machine/m_macosx.c:425: error: 'struct vmspace' has no member named 'vm_rssize'
    ./machine/m_macosx.c: At top level:
    ./machine/m_macosx.c:446: error: conflicting types for 'get_process_info'
    ./machine.h:70: error: previous declaration of 'get_process_info' was here
    ./machine/m_macosx.c: In function 'get_system_info':
    ./machine/m_macosx.c:604: warning: pointer targets in passing argument 4 of 'host_statistics' differ in signedness
    ./machine/m_macosx.c:641: warning: pointer targets in passing argument 3 of 'percentages' differ in signedness
    ./machine/m_macosx.c:641: warning: pointer targets in passing argument 4 of 'percentages' differ in signedness
    ./machine/m_macosx.c:641: warning: pointer targets in passing argument 5 of 'percentages' differ in signedness
    ./machine/m_macosx.c:651: warning: pointer targets in passing argument 4 of 'host_statistics' differ in signedness
    ./machine/m_macosx.c: In function 'machine_init':
    ./machine/m_macosx.c:729: error: dereferencing pointer to incomplete type
    ./machine/m_macosx.c:730: error: dereferencing pointer to incomplete type
    ./machine/m_macosx.c:731: error: dereferencing pointer to incomplete type
    ./machine/m_macosx.c: In function 'proc_compare':
    ./machine/m_macosx.c:785: error: 'struct vmspace' has no member named 'vm_rssize'
    ./machine/m_macosx.c:785: error: 'struct vmspace' has no member named 'vm_rssize'
    ./machine/m_macosx.c:788: error: 'struct vmspace' has no member named 'vm_tsize'
    ./machine/m_macosx.c:788: error: 'struct vmspace' has no member named 'vm_dsize'
    ./machine/m_macosx.c:788: error: 'struct vmspace' has no member named 'vm_ssize'
    ./machine/m_macosx.c:788: error: 'struct vmspace' has no member named 'vm_tsize'
    ./machine/m_macosx.c:788: error: 'struct vmspace' has no member named 'vm_dsize'
    ./machine/m_macosx.c:788: error: 'struct vmspace' has no member named 'vm_ssize'
    ./machine/m_macosx.c: In function 'load_thread_info':
    ./machine/m_macosx.c:865: warning: pointer targets in passing argument 3 of 'task_threads' differ in signedness
    ./machine/m_macosx.c:885: warning: pointer targets in passing argument 4 of 'thread_info' differ in signedness
    make: *** [m_macosx.o] Error 1

     
    • Sorry about not responding sooner.

      This is not your fault.  I am working on trying to fix the macosx module so that it works, but my access to OS X is limited.

      Bill

       
    • I've struggled with this for the past few weeks, and finally got the module to compile.  Unfortunately I need root access to test this, and that's something I don't have.

      I hate to do this, but I intend to withdraw MacOS support from version 3.6 and release it without it.  I will include the macosx module in the distribution "as-is", but I won't guarantee that it will work.