gtop 0.99.2




I generated succesfully gtop 0.99.2 with egcs 1.1.1 on the
following platforms: 

sparc-sun-solaris2.5.1
sparc-sun-solaris2.6
i686-pc-linux-gnulibc1
i686-pc-linux-gnu
alpha-dec-osf4.0b
hppa1.1-hp-hpux10.20
powerpc-ibm-aix4.3.2.0
mips-sgi-irix6.5

On sparc-sun-solaris2.5.1, sparc-sun-solaris2.6, hppa1.1-hp-hpux10.20
and powerpc-ibm-aix4.3.2.0, the compilation stopped for main.c with:

 : :gmake[2]: Leaving directory `/scratch/happi/GNU.DESK/gtop-0.99.2/macros'
 : :gmake[1]: Leaving directory `/scratch/happi/GNU.DESK/gtop-0.99.2'
 : :gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -I./intl -I./intl -DGNOMELOCALEDIR=\""/usr/local/share/locale"\" -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -DNEED_GNOMESUPPORT_H -I/usr/local/lib/gnome-libs/include -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/local/include -DNEED_GNOMESUPPORT_H -I/usr/local/lib/gnome-libs/include -I/usr/local/lib/glib/include -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -O2 -Wall -Wno-unused  -c main.c
 :*:In file included from main.c:25:
 :*:session.h:10: getopt.h: No such file or directory
 :*:gmake: *** [main.o] Error 1
 
I deleted the include directive with getopt.h, and compilation went on.

- powerpc-ibm-aix4.3.2.0, compilation stops

 : :gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -I./intl -I./intl -DGNOMELOCALEDIR=\""/usr/local/share/locale"\" -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -DNEED_GNOMESUPPORT_H -I/usr/local/lib/gnome-libs/include -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/local/include -DNEED_GNOMESUPPORT_H -I/usr/local/lib/gnome-libs/include -I/usr/local/lib/glib/include -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -O2 -Wall -Wno-unused  -c main.c
 :*:In file included from global.h:8,
 :*:                 from properties.h:4,
 :*:                 from procview.h:5,
 :*:                 from main.c:22:
 :*:dummy.h:19: parse error before `100'
 :*:dummy.h:19: warning: no semicolon at end of struct or union
 :*:dummy.h:20: `nice' redeclared as different kind of symbol
 :*:/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/egcs-2.91.60/include/unistd.h:256: previous declaration of `nice'
 :*:dummy.h:22: parse error before `}'
 :*:In file included from main.c:22:
 :*:procview.h:172: field `_p' has incomplete type
 :*:gmake: *** [main.o] Error 1

  What happens is that hz is a macro defined as being HZ then _HZ and
  so on aso that in the end one has in 

/usr/include/sys/m_param.h:#define      __hz    HZ              /* Berkeley uses lower case hz          */
/usr/include/sys/m_param.h:#define      HZ              _HZ
/usr/include/sys/m_param.h:#define      hz              __hz
/usr/include/sys/m_param.h:#define      _HZ     100             /* ticks per second of the clock        */

  This puzzle makes the definition in dummy.h to declare after
  C-preprocessing:

   long 100, stime, utime, cutime, cstime, start_time; ...

  I deleted hz reference in dummy.h and all compiled OK until
  procview.c, 

 : :gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -I./intl -I./intl -DGNOMELOCALEDIR=\""/usr/local/share/locale"\" -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -DNEED_GNOMESUPPORT_H -I/usr/local/lib/gnome-libs/include -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/local/include -DNEED_GNOMESUPPORT_H -I/usr/local/lib/gnome-libs/include -I/usr/local/lib/glib/include -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -O2 -Wall -Wno-unused  -c procview.c
 : :procview.c: In function `cmp_user':
 : :procview.c:214: warning: implicit declaration of function `strcasecmp'
 : :procview.c: In function `sprint_fmt':
 : :procview.c:1481: parse error before `100'
 : :procview.c:1484: parse error before `100'
 : :procview.c:1487: parse error before `100'
 : :procview.c: In function `procview_update':
 : :procview.c:1705: parse error before `100'
 : :procview.c:1707: parse error before `100'
 : :procview.c:1708: parse error before `100'
 : :procview.c:1709: parse error before `100'
 : :procview.c:1710: parse error before `100'
 : :procview.c:1713: parse error before `100'
 : :procview.c:1743: parse error before `100'

   where hz is a member of a structure and then replaced by 100 the
   value of the macro... I think at this point I am fed up with IBM
   AIX. If you want gtop to run on AIX you should use another name
   than "hz". Is AIX a real OS anyhow ? I could not go further (not
   enough time sorry)

I hope it helps.
Amicalement.
Philippe.
-- 
  ************************************************************************
  *  Philippe Defert: Computing and Networks Division                    *
  *                   CERN,  European Laboratory for Particle Physics    *
  ************************************************************************
  * URL: http://wwwcn.cern.ch/~defert | E*mail: Philippe.Defert@cern.ch  *
  ************************************************************************
  *      Un monde nouveau, tu comprends                          ////\   *
  *      Rien ne sera plus jamais comme avant                    \\\//   *
  *      C'est la fin de l'histoire, le rouge apres le noir       | |    *
  *                                                  J.J. Goldman | |    *  
  ************************************************************************



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]