gnome-libs 0.99.2




I generated succesfully gnome-libs 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

If a platform is not mentioned below it means all was OK and did not
need any manual intervention. Here are the problems thus:

- on sparc-sun-solaris2.5.1 and sparc-sun-solaris2.6, the compilation
  fails with:

 : :gmake[2]: Entering directory `/scratch/happi/GNU.DESK/gnome-libs-0.99.2/gtk-xmhtml'
 : :/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -I/usr/local/include -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -DWITH_GTK -DDEBUG -DGNOME_LIB -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -O2 -Wall -Wno-unused  -c gtk-error.c
 : :gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -I/usr/local/include -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -DWITH_GTK -DDEBUG -DGNOME_LIB -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -O2 -Wall -Wno-unused -c -fPIC -DPIC gtk-error.c
 :*:gtk-error.c:66: conflicting types for `__XmHTMLWarning'
 :*:gtk-error.c:66: A parameter list with an ellipsis can't match
 :*:gtk-error.c:66: an empty parameter name list declaration.
 :*:XmHTMLI.h:994: previous declaration of `__XmHTMLWarning'
 :*:gtk-error.c:145: conflicting types for `__XmHTMLError'
 :*:gtk-error.c:145: A parameter list with an ellipsis can't match
 :*:gtk-error.c:145: an empty parameter name list declaration.
 :*:XmHTMLI.h:1001: previous declaration of `__XmHTMLError'
 :*:gmake[2]: *** [gtk-error.lo] Error 1
 : :gmake[2]: Leaving directory `/scratch/happi/GNU.DESK/gnome-libs-0.99.2/gtk-xmhtml'
 :*:gmake[1]: *** [all-recursive] Error 1
 : :gmake[1]: Leaving directory `/scratch/happi/GNU.DESK/gnome-libs-0.99.2'
 :*:gmake: *** [all-recursive-am] Error 2

  To solve it I edited the gtk-xmhtml/XmHTMLI.h and I took the 
  #ifdef NeedVar...prototypes away for __XmHTMLWarning and
  __XmHTMLError like:

extern void __XmHTMLWarning(
	TWidget w, String module, int line, String routine,
	String fmt, ...
);
  and it compiled OK. The next error happens for zvt and is different
  for solaris 2.5 and 2.6. See below.

- on sparc-sun-solaris2.6 for zvt/gnome-pty-helper.c:

 : :gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/usr/local/include -I/usr/local/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 -I/usr/local/include -I/usr/local/include -DGNOMESBINDIR=\""/usr/local/sbin"\" -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -O2 -Wall -Wno-unused  -c gnome-pty-helper.c
 : :In file included from gnome-pty-helper.c:38:
 : :/usr/include/sys/resource.h:115: field `ru_utime' has incomplete type
 : :/usr/include/sys/resource.h:116: field `ru_stime' has incomplete type
 : :In file included from gnome-pty-helper.c:53:
 : :gnome-login-support.h:17: warning: `struct winsize' declared inside parameter list
 : :gnome-login-support.h:17: warning: its scope is only this definition or declaration,
 : :gnome-login-support.h:17: warning: which is probably not what you want.
 : :gnome-login-support.h:18: warning: `struct winsize' declared inside parameter list
 : :gnome-pty-helper.c: In function `init_msg_pass':
 : :gnome-pty-helper.c:160: warning: control reaches end of non-void function
 : :gnome-pty-helper.c: In function `pty_add':
 : :gnome-pty-helper.c:232: warning: implicit declaration of function `strdup'
 : :gnome-pty-helper.c:232: warning: assignment makes pointer from integer without a cast
 : :gnome-pty-helper.c:234: warning: assignment makes pointer from integer without a cast
 : :gnome-pty-helper.c: In function `main':
 : :gnome-pty-helper.c:424: warning: int format, uid_t arg (arg 3)
 : :make[2]: *** [gnome-pty-helper.o] Error 1
 : :make[2]: Leaving directory `/scratch/happi/GNU.DESK/gnome-libs-0.99.2/zvt'
 : :make[1]: *** [all-recursive] Error 1
 : :make[1]: Leaving directory `/scratch/happi/GNU.DESK/gnome-libs-0.99.2'
 : :make: *** [all-recursive-am] Error 2

  By deleting the lines 

#ifndef _POSIX_SOURCE 
# define _POSIX_SOURCE 1
#endif 

  everything compiles OK .In fact _POSIX_SOURCE then defines other
  macros which do provoke the skip the definition of struct timeval in
  <sys/time.h> as shown below

#if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || \
        defined(__EXTENSIONS__) || defined(_XPG4_2)
#ifndef _ASM

#ifndef _TIME_T
#define _TIME_T
typedef long    time_t;         /* time of day in seconds */
#endif

struct timeval {
        time_t  tv_sec;         /* seconds */
        long    tv_usec;        /* and microseconds */
};
#endif  /* _ASM */
#endif  /* (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE))... */

  Deleting the same paragraph for _POSIX_SOURCE was necessary to
  compile libgnorba/goad.c libgnorba/orbitns.c,
  libgnorba/gnome-name-server.c.

  After that all compiled and linked OK.

- on sparc-sun-solaris2.5.1 for zvt/subshell.c

 : :gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/usr/local/include -I/usr/local/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 -I/usr/local/include -I/usr/local/include -DGNOMESBINDIR=\"/usr/local/sbin\" -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -O2 -Wall -Wno-unused -c -fPIC -DPIC subshell.c
 : :In file included from subshell-includes.h:25,
 : :                 from subshell.c:29:
 : :/usr/include/sys/select.h:62: warning: `struct timeval' declared inside parameter list
 : :/usr/include/sys/select.h:62: warning: its scope is only this definition or declaration,
 : :/usr/include/sys/select.h:62: warning: which is probably not what you want.
 : :In file included from subshell-includes.h:50,
 : :                 from subshell.c:29:
 : :/usr/include/sys/socket.h:143: parse error before `u_short'
 : :/usr/include/sys/socket.h:143: warning: no semicolon at end of struct or union
 : :/usr/include/sys/socket.h:145: parse error before `}'
 : :/usr/include/sys/socket.h:152: parse error before `u_short'
 : :/usr/include/sys/socket.h:152: warning: no semicolon at end of struct or union
 : :/usr/include/sys/socket.h:153: warning: data definition has no type or storage class
 : :In file included from subshell-includes.h:52,
 : :                 from subshell.c:29:
 : :gnome-login-support.h:17: warning: `struct winsize' declared inside parameter list
 : :gnome-login-support.h:18: warning: `struct winsize' declared inside parameter list
 : :subshell.c: In function `receive_fd':
 : :subshell.c:170: warning: implicit declaration of function `ioctl'
 : :subshell.c: In function `zvt_resize_subshell':
 : :subshell.c:339: warning: control reaches end of non-void function
 : :make[2]: *** [subshell.lo] Error 1
 : :make[2]: Leaving directory `/scratch/happi/GNU.DESK/gnome-libs-0.99.2/zvt'
 : :make[1]: *** [all-recursive] Error 1
 : :make[1]: Leaving directory `/scratch/happi/GNU.DESK/gnome-libs-0.99.2'
 : :make: *** [all-recursive-am] Error 2

  Deleting the paragraph on _POSIX_SOURCE like for 2.6 just solved the
  problem.  This was then necessary to perform the same deletion for
  zvt/gnome-pty-helper.c, libgnorba/goad.c libgnorba/orbitns.c, and
  libgnorba/gnome-name-server.c 

- on hppa1.1-hp-hpux10.20, the comipilation ended with libgnorba/goad.c

: :gmake[2]: Entering directory `/scratch/happi/GNU.DESK/gnome-libs-0.99.2/libgnorba'
 : :/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I/usr/local/include  -I/usr/local/lib/glib/include -I/usr/local/include  -DGNOMEBINDIR=/usr/local/bin -DGNOMESYSCONFDIR=\"/usr/local/etc\" -DVERSION=\""0.99.2"\" -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -O2 -Wall -Wno-unused  -c goad.c
 : :gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -DGNOMEBINDIR=/usr/local/bin -DGNOMESYSCONFDIR=\"/usr/local/etc\" -DVERSION=\"0.99.2\" -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -O2 -Wall -Wno-unused -c -fPIC -DPIC goad.c
 :*:goad.c:31: dlfcn.h: No such file or directory
 :*:gmake[2]: *** [goad.lo] Error 1
 : :gmake[2]: Leaving directory `/scratch/happi/GNU.DESK/gnome-libs-0.99.2/libgnorba'
 :*:gmake[1]: *** [all-recursive] Error 1
 : :gmake[1]: Leaving directory `/scratch/happi/GNU.DESK/gnome-libs-0.99.2'
 :*:gmake: *** [all-recursive-am] Error 2

  I edited goad.c to undefine SHLIB_DEPENDENCIES (! it is done at 2
  places, why ?) and it compiled ! Is it the right thing ? Is it going
  to give a correct result ?

  Anyhow, then the compilation is succesfull ! 

- on mips-sgi-irix6.5, there was a lot of segfaults of the ld32 IRIX
  programs in libgnomeui, the only way to go through was to erase the
  repeated -L/usr/local/lib directives in the libtool commands:
  (- understands who can -) and please tell me !

  The the compilation stopped at zvt/gnome-pty-helper.c:

 : :gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/local/include -DGNOMESBINDIR=\""/usr/local/sbin"\" -I/usr/local/lib/glib/include -I/usr/local/include -O2 -Wall -Wno-unused  -c gnome-pty-helper.c
 : :In file included from gnome-pty-helper.c:53:
 : :gnome-login-support.h:17: warning: `struct winsize' declared inside parameter list
 : :gnome-login-support.h:17: warning: its scope is only this definition or declaration,
 : :gnome-login-support.h:17: warning: which is probably not what you want.
 : :gnome-login-support.h:18: warning: `struct winsize' declared inside parameter list
 : :gnome-pty-helper.c: In function `pass_fd':
 : :gnome-pty-helper.c:145: `SCM_RIGHTS' undeclared (first use in this function)
 : :gnome-pty-helper.c:145: (Each undeclared identifier is reported only once
 : :gnome-pty-helper.c:145: for each function it appears in.)
 : :gnome-pty-helper.c: In function `pty_add':
 : :gnome-pty-helper.c:232: warning: implicit declaration of function `strdup'
 : :gnome-pty-helper.c:232: warning: assignment makes pointer from integer without a cast
 : :gnome-pty-helper.c:234: warning: assignment makes pointer from integer without a cast
 : :gnome-pty-helper.c: In function `open_ptys':
 : :gnome-pty-helper.c:253: `PATH_MAX' undeclared (first use in this function)
 : :gnome-pty-helper.c: In function `main':
 : :gnome-pty-helper.c:424: warning: int format, uid_t arg (arg 3)
 : :make[2]: *** [gnome-pty-helper.o] Error 1
 : :make[2]: Leaving directory `/happi/GNU.DESK/gnome-libs-0.99.2/zvt'
 : :make[1]: *** [all-recursive] Error 1
 : :make[1]: Leaving directory `/happi/GNU.DESK/gnome-libs-0.99.2'
 : :make: *** [all-recursive-am] Error 2

  SCM_RIGHTS is only defined if _XOPEN_SOURCE is defined as shown here
  in <sys/socket.h>:
   
#if _XOPEN_SOURCE
/* "Socket"-level control message types: */
#define SCM_RIGHTS      0x01            /* access rights (array of int) */
#endif /* _XOPEN_SOURCE */
 
   PATH_MAX is in <limits.h> but only defined in specific occasions as
   shown below in <limits.h>:

#if _SGIAPI && _NO_ANSIMODE
/*
 * Note that for POSIX/XPG3: ARG_MAX, CHILD_MAX, NAME_MAX, OPEN_MAX, PATH_MAX,
 * come LINK_MAX only from sysconf/pathconf, but for default environment we
 * put in backward compatibility defines
 */
#ifndef ARG_MAX
#define ARG_MAX         5120
#endif
#define CHILD_MAX       25              /* max # of processes per user id */
#define NAME_MAX        255             /* max # of characters in a file name */
#ifndef OPEN_MAX
#define OPEN_MAX        20              /* max files a process can have open */
#endif
#ifndef PATH_MAX
#define PATH_MAX        1024            /* max # of characters in a path name */
#endif
#define LINK_MAX        30000           /* max # of links to a single file */

  Compiling with both macros PATH_MAX (1024) and _XOPEN_SOURCE was
  OK. 

  Then the link for gnome-name-service failed but putting the
  -lname-server just after the gnome-name-server.o at the beginning of
  the link command solved it.

  Then the compilation and link are OK.

- on powerpc-ibm-aix4.3.2.0, it is as usual needed to add -Wl,-bbigtoc
  to the link commands to allow big table of contents. Then the
  compilations ends with:

 : :make[2]: Entering directory `/happi/GNU.DESK/gnome-libs-0.99.2/zvt'
 : :/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/usr/local/include -I/usr/local/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 -I/usr/local/include -I/usr/local/include -DGNOMESBINDIR=\""/usr/local/sbin"\" -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -O2 -Wall -Wno-unused  -c gnome-login-support.c
 : :gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/usr/local/include -I/usr/local/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 -I/usr/local/include -I/usr/local/include -DGNOMESBINDIR=\"/usr/local/sbin\" -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -O2 -Wall -Wno-unused -c -DPIC gnome-login-support.c
 : :gnome-login-support.c:18: sys/termios.h: No such file or directory
 : :make[2]: *** [gnome-login-support.lo] Error 1
 : :make[2]: Leaving directory `/happi/GNU.DESK/gnome-libs-0.99.2/zvt'
 : :make[1]: *** [all-recursive] Error 1
 : :make[1]: Leaving directory `/happi/GNU.DESK/gnome-libs-0.99.2'
 : :make: *** [all-recursive-am] Error 2

  termios.h is in /usr/include not /usr/include/sys, just edit the
  include directive to change it and it compiled OK.

  The next error occurs for zvt/subshell.c

 : :/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/usr/local/include -I/usr/local/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 -I/usr/local/include -I/usr/local/include -DGNOMESBINDIR=\""/usr/local/sbin"\" -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -O2 -Wall -Wno-unused  -c subshell.c
 : :gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/usr/local/include -I/usr/local/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 -I/usr/local/include -I/usr/local/include -DGNOMESBINDIR=\"/usr/local/sbin\" -I/usr/local/include -I/usr/local/lib/glib/include -I/usr/local/include -O2 -Wall -Wno-unused -c -DPIC subshell.c
 : :In file included from subshell-includes.h:52,
 : :                 from subshell.c:29:
 : :gnome-login-support.h:17: warning: `struct winsize' declared inside parameter list
 : :gnome-login-support.h:17: warning: its scope is only this definition or declaration,
 : :gnome-login-support.h:17: warning: which is probably not what you want.
 : :gnome-login-support.h:18: warning: `struct winsize' declared inside parameter list
 : :subshell.c: In function `receive_fd':
 : :subshell.c:130: storage size of `iov' isn't known
 : :subshell.c:131: storage size of `msg' isn't known
 : :subshell.c:141: sizeof applied to an incomplete type
 : :subshell.c:144: sizeof applied to an incomplete type
 : :subshell.c:146: warning: implicit declaration of function `recvmsg'
 : :subshell.c:149: dereferencing pointer to incomplete type
 : :subshell.c:150: warning: control reaches end of non-void function
 : :subshell.c: In function `get_ptys':
 : :subshell.c:189: warning: implicit declaration of function `socketpair'
 : :subshell.c:189: `AF_UNIX' undeclared (first use in this function)
 : :subshell.c:189: (Each undeclared identifier is reported only once
 : :subshell.c:189: for each function it appears in.)
 : :subshell.c:189: `SOCK_STREAM' undeclared (first use in this function)
 : :subshell.c: In function `zvt_resize_subshell':
 : :subshell.c:330: storage size of `tty_size' isn't known
 : :subshell.c:337: warning: implicit declaration of function `ioctl'
 : :subshell.c:337: sizeof applied to an incomplete type
 : :make[2]: *** [subshell.lo] Error 1
 : :make[2]: Leaving directory `/happi/GNU.DESK/gnome-libs-0.99.2/zvt'
 : :make[1]: *** [all-recursive] Error 1
 : :make[1]: Leaving directory `/happi/GNU.DESK/gnome-libs-0.99.2'
 : :make: *** [all-recursive-am] Error 2


  The macro HAVE_SENDMSG is defined and iovec type is needed. This can
  be found in <sys/uio.h> which badly contains that:

#if _XOPEN_SOURCE_EXTENDED==1
struct iovec {
#ifdef _KERNEL
        caddr_t iov_base;       /* base memory address                  */
#else
        void *iov_base; /* base memory address                  */
#endif /* _KERNEL */
        size_t  iov_len;        /* length of transfer for this area     */
};

#ifdef _NO_PROTO
extern ssize_t  readv();
extern ssize_t  writev();
#else
extern ssize_t  readv(int, const struct iovec *, int);
extern ssize_t  writev(int, const struct iovec *, int);
#endif /* _NO_PROTO */
#endif /* _XOPEN_SOURCE_EXTENDED */

  Moreover, the type winsize also needed a bit further, is in
  <sys/ioctl.h> but only if the macro _ALL_SOURCE is defined !. Just
  adding -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE makes subshell.c to
  compile ! The same happens then with gnome-pty-helper.c

  The same macros are necessary for libgnorba/goad.c,
  libgnorba/orbitns.c, libgnorba/gnome-name-server.c.

  Te compilation and link are then succesfull.

I hope this will help.
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]