top-3.5 on Solaris 10 / Solaris Express

Help
Incubuz
2004-04-08
2004-04-12
  • Incubuz

    Incubuz - 2004-04-08

    Hi.

    Has anyone tryed compiling top on Solaris 10?

    I think the problem i have relates to the new zones feature in Solaris 10.

    Below is some info on my system and output from make / gcc.

    uname -a:
    SunOS discovery 5.10 s10_51 sun4u sparc SUNW,Ultra-5_10

    I used gcc 3.3.2.

    [root@discovery top-3.5]# make
    gcc -DHAVE_GETOPT -DORDER -DHAVE_STRERROR -DUSE_SIZE_T -O -m64  -c  top.c
    awk -f sigconv.awk /usr/include/sys/signal.h >sigdesc.h
    gcc -DHAVE_GETOPT -DORDER -DHAVE_STRERROR -DUSE_SIZE_T -O -m64  -c  commands.c
    gcc -DHAVE_GETOPT -DORDER -DHAVE_STRERROR -DUSE_SIZE_T -O -m64  -c  display.c
    gcc -DHAVE_GETOPT -DORDER -DHAVE_STRERROR -DUSE_SIZE_T -O -m64  -c  screen.c
    gcc -DHAVE_GETOPT -DORDER -DHAVE_STRERROR -DUSE_SIZE_T -O -m64  -c  username.c
    gcc -DHAVE_GETOPT -DORDER -DHAVE_STRERROR -DUSE_SIZE_T -O -m64  -c  utils.c
    gcc -DHAVE_GETOPT -DORDER -DHAVE_STRERROR -DUSE_SIZE_T -O -m64  -c  version.c
    gcc -DHAVE_GETOPT -DORDER -DHAVE_STRERROR -DUSE_SIZE_T -O -m64  -c  getopt.c
    gcc "-DOSREV=510" -DHAVE_GETOPT -DORDER -DHAVE_STRERROR -DUSE_SIZE_T -O -m64 -c machine.c
    In file included from machine.c:39:
    /usr/include/sys/procfs.h:161: error: parse error before "zoneid_t"
    /usr/include/sys/procfs.h:164: error: parse error before '}' token
    /usr/include/sys/procfs.h:284: error: parse error before "poolid_t"
    /usr/include/sys/procfs.h:286: error: conflicting types for `pr_filler'
    /usr/include/sys/procfs.h:162: error: previous declaration of `pr_filler'
    /usr/include/sys/procfs.h:287: error: conflicting types for `pr_lwp'
    /usr/include/sys/procfs.h:163: error: previous declaration of `pr_lwp'
    /usr/include/sys/procfs.h:288: error: parse error before '}' token
    In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/include/sys/user.h:240,
                     from /usr/include/kvm.h:13,
                     from machine.c:68:
    /usr/include/sys/proc.h:334: error: parse error before "zoneid_t"
    /usr/include/sys/proc.h:336: error: parse error before '}' token
    In file included from /usr/include/sys/cpuvar.h:24,
                     from machine.c:81:
    /usr/include/sys/project.h:32: error: parse error before "zoneid_t"
    /usr/include/sys/project.h:39: error: parse error before '}' token
    machine.c: In function `get_process_info':
    machine.c:805: error: invalid application of `sizeof' to an incomplete type
    machine.c:813: error: dereferencing pointer to incomplete type
    machine.c:814: error: dereferencing pointer to incomplete type
    machine.c:817: error: dereferencing pointer to incomplete type
    machine.c:818: error: dereferencing pointer to incomplete type
    machine.c:819: error: dereferencing pointer to incomplete type
    machine.c:819: error: dereferencing pointer to incomplete type
    machine.c:819: error: dereferencing pointer to incomplete type
    machine.c:820: error: dereferencing pointer to incomplete type
    machine.c: In function `format_next_process':
    machine.c:861: error: dereferencing pointer to incomplete type
    machine.c:862: error: dereferencing pointer to incomplete type
    machine.c:864: error: dereferencing pointer to incomplete type
    machine.c:865: error: dereferencing pointer to incomplete type
    machine.c:872: error: dereferencing pointer to incomplete type
    machine.c:873: error: dereferencing pointer to incomplete type
    machine.c:874: error: dereferencing pointer to incomplete type
    machine.c:874: error: dereferencing pointer to incomplete type
    machine.c:875: error: dereferencing pointer to incomplete type
    machine.c:876: error: dereferencing pointer to incomplete type
    machine.c:877: error: dereferencing pointer to incomplete type
    machine.c:878: error: dereferencing pointer to incomplete type
    machine.c:879: error: dereferencing pointer to incomplete type
    machine.c:882: error: dereferencing pointer to incomplete type
    machine.c: In function `compare_cpu':
    machine.c:1009: error: dereferencing pointer to incomplete type
    machine.c:1009: error: dereferencing pointer to incomplete type
    machine.c:1010: error: dereferencing pointer to incomplete type
    machine.c:1010: error: dereferencing pointer to incomplete type
    machine.c:1011: error: dereferencing pointer to incomplete type
    machine.c:1011: error: dereferencing pointer to incomplete type
    machine.c:1012: error: dereferencing pointer to incomplete type
    machine.c:1012: error: dereferencing pointer to incomplete type
    machine.c:1013: error: dereferencing pointer to incomplete type
    machine.c:1013: error: dereferencing pointer to incomplete type
    machine.c:1014: error: dereferencing pointer to incomplete type
    machine.c:1014: error: dereferencing pointer to incomplete type
    machine.c: In function `compare_size':
    machine.c:1036: error: dereferencing pointer to incomplete type
    machine.c:1036: error: dereferencing pointer to incomplete type
    machine.c:1037: error: dereferencing pointer to incomplete type
    machine.c:1037: error: dereferencing pointer to incomplete type
    machine.c:1038: error: dereferencing pointer to incomplete type
    machine.c:1038: error: dereferencing pointer to incomplete type
    machine.c:1039: error: dereferencing pointer to incomplete type
    machine.c:1039: error: dereferencing pointer to incomplete type
    machine.c:1040: error: dereferencing pointer to incomplete type
    machine.c:1040: error: dereferencing pointer to incomplete type
    machine.c:1041: error: dereferencing pointer to incomplete type
    machine.c:1041: error: dereferencing pointer to incomplete type
    machine.c: In function `compare_res':
    machine.c:1063: error: dereferencing pointer to incomplete type
    machine.c:1063: error: dereferencing pointer to incomplete type
    machine.c:1064: error: dereferencing pointer to incomplete type
    machine.c:1064: error: dereferencing pointer to incomplete type
    machine.c:1065: error: dereferencing pointer to incomplete type
    machine.c:1065: error: dereferencing pointer to incomplete type
    machine.c:1066: error: dereferencing pointer to incomplete type
    machine.c:1066: error: dereferencing pointer to incomplete type
    machine.c:1067: error: dereferencing pointer to incomplete type
    machine.c:1067: error: dereferencing pointer to incomplete type
    machine.c:1068: error: dereferencing pointer to incomplete type
    machine.c:1068: error: dereferencing pointer to incomplete type
    machine.c: In function `compare_time':
    machine.c:1090: error: dereferencing pointer to incomplete type
    machine.c:1090: error: dereferencing pointer to incomplete type
    machine.c:1091: error: dereferencing pointer to incomplete type
    machine.c:1091: error: dereferencing pointer to incomplete type
    machine.c:1092: error: dereferencing pointer to incomplete type
    machine.c:1092: error: dereferencing pointer to incomplete type
    machine.c:1093: error: dereferencing pointer to incomplete type
    machine.c:1093: error: dereferencing pointer to incomplete type
    machine.c:1094: error: dereferencing pointer to incomplete type
    machine.c:1094: error: dereferencing pointer to incomplete type
    machine.c:1095: error: dereferencing pointer to incomplete type
    machine.c:1095: error: dereferencing pointer to incomplete type
    machine.c: In function `getptable':
    machine.c:1212: error: dereferencing pointer to incomplete type
    machine.c:1217: error: dereferencing pointer to incomplete type
    machine.c:1225: error: dereferencing pointer to incomplete type
    machine.c:1226: error: dereferencing pointer to incomplete type
    machine.c:1239: error: dereferencing pointer to incomplete type
    machine.c:1240: error: dereferencing pointer to incomplete type
    machine.c:1259: error: invalid application of `sizeof' to an incomplete type
    machine.c:1266: error: invalid application of `sizeof' to an incomplete type
    machine.c:1290: error: invalid application of `sizeof' to an incomplete type
    machine.c:1293: error: dereferencing pointer to incomplete type
    machine.c:1302: error: dereferencing pointer to incomplete type
    machine.c:1303: error: dereferencing pointer to incomplete type
    machine.c:1304: error: dereferencing pointer to incomplete type
    machine.c:1305: error: dereferencing pointer to incomplete type
    machine.c: In function `proc_owner':
    machine.c:1325: error: invalid application of `sizeof' to an incomplete type
    machine.c:1326: error: dereferencing pointer to incomplete type
    machine.c:1327: error: dereferencing pointer to incomplete type
    machine.c: In function `reallocproc':
    machine.c:1448: error: invalid application of `sizeof' to an incomplete type
    *** Error code 1
    make: Fatal error: Command failed for target `machine.o'
    [root@discovery top-3.5]#

     
    • William LeFebvre

      Or it could be that you compiled it with solaris 9 includes:

      "In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/include/sys/user.h:240,"

      Make sure your gcc environment has the correct include files and try again!

      I haven't heard of anyone trying 3.5 on solaris 10, and i dont have access to it.  So there may still be some issues with it, but try this first.

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks