glib 1.1.11.




I generated glib 1.1.11 on the following platforms with egcs 1.1.1:

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.1.5.0
powerpc-ibm-aix4.3.2.0
mips-sgi-irix6.4

All was succesfull except the problems:

- on powerpc-ibm-aix4.1.5.0 and powerpc-ibm-aix4.3.2.0, the compilation
  stopped with 
 : :ln -s glist.o glist.lo
 : :/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib   -O2 -Wall -D_REENTRANT -D_THREAD_SAFE -mthreads -c gmain.c
 : :gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -O2 -Wall -D_REENTRANT -D_THREAD_SAFE -mthreads -c -DPIC gmain.c
 :*:gerror.c:218: warning: implicit declaration of function `bzero'
 :*:gmain.c: In function `g_main_poll':
 :*:gmain.c:670: structure has no member named `reqevents'
 :*:gmain.c:681: structure has no member named `reqevents'
 :*:gmain.c:681: structure has no member named `reqevents'
 :*:gmain.c:682: structure has no member named `rtnevents'
 :*:gmain.c:707: structure has no member named `rtnevents'
 :*:gmain.c:707: structure has no member named `rtnevents'
 :Error executing Run /usr/local/bin/gmake MAKE=/usr/local/bin/gmake
 :%:Terminated with errors(code: 612)

  This is due to the <sys/poll.h> file which contains the following
  definitions: 

/*
 * Structure to be used (for file descriptors or file pointers)
 * with the POLL system call.
 */
struct  pollfd
{
        long    fd;                     /* file descriptor or file ptr  */
        ushort  reqevents;              /* requested events             */
        ushort  rtnevents;              /* returned events              */
#define events  reqevents               /* SVR3,4 pollfd member name    */
#define revents rtnevents               /* SVR3,4 pollfd member name    */
};
  
  I edited gmain.c in this way:
/* 
 * MT safe
 */

#include "glib.h"
#include <sys/types.h>
#include <sys/time.h>
#ifdef  GLIB_HAVE_SYS_POLL_H
#include <sys/poll.h>
#undef events
#undef revents
#endif  /* GLIB_HAVE_SYS_POLL_H */
#include <unistd.h>
#include <errno.h>
#include "config.h"

  and then compilation ended succesfully.

- on alpha-dec-osf4.0b, the same problem as reported earlier still
  happens: 

 : :gmake[2]: Leaving directory `/scratch/happi/GNU.DESK/glib-1.1.11/gmodule'
 : :Making all in gthread
 : :gmake[2]: Entering directory `/scratch/happi/GNU.DESK/glib-1.1.11/gthread'
 : :/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gthread -DG_LOG_DOMAIN=\"GThread\"  -O2 -Wall  -c gthread.c
 : :gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gthread -DG_LOG_DOMAIN=\"GThread\" -O2 -Wall -c -DPIC gthread.c
 :*:gscanner.c:1449: warning: `in_number' might be used uninitialized in this function
 :*:In file included from /usr/local/lib/gcc-lib/alpha-dec-osf4.0b/egcs-2.91.60/include/pthread.h:290,
 :*:                 from gthread-posix.c:27,
 : :gmake[2]: Leaving directory `/scratch/happi/GNU.DESK/glib-1.1.11/gthread'
 :*:                 from gthread.c:35:
 :*:/usr/include/c_asm.h:193: parse error before `asm'
 :*:gmake[2]: *** [gthread.lo] Error 1
 :*:gmake[1]: *** [all-recursive] Error 1
 : :gmake[1]: Leaving directory `/scratch/happi/GNU.DESK/glib-1.1.11'
 :*:gmake: *** [all-recursive-am] Error 2

  The definition of asm in the <c_asm.h> is not compatable with
  gcc. Using the -ansi flag finishes the compilation OK.

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]