glib compile failures on digital unix 4.0D



First off, apologies if this is the wrong place or the question has 
already been asked, but archive.redhat.com is down so I can't check the
archives.

I am trying to compile glib 1.2.3 on an alpha running Digital Unix
4.0D, and am running into problems with gthread.c.  Using gcc 2.8.1, I
get the following errors:

---
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gthread -DG_LOG_DOMAIN=\"GThread\" -g -O2 -Wall -D_REENTRANT -c  -DPIC gthread.c -o .libs/gthread.lo
In file included from /usr/pubsw/lib/gcc-lib/alpha-dec-osf4.0b/2.8.1/include/excpt.h:85,
                 from /usr/pubsw/lib/gcc-lib/alpha-dec-osf4.0b/2.8.1/include/pthread_exception.h:147,
                 from /usr/pubsw/lib/gcc-lib/alpha-dec-osf4.0b/2.8.1/include/pthread.h:272,
                 from gthread-posix.c:34,
                 from gthread.c:42:
/usr/include/pdsc.h:506: warning: `/*' within comment
In file included from /usr/pubsw/lib/gcc-lib/alpha-dec-osf4.0b/2.8.1/include/pthread.h:280,
                 from gthread-posix.c:34,
                 from gthread.c:42:
/usr/include/c_asm.h:193: parse error before `asm'
gmake[2]: *** [gthread.lo] Error 1
---

Stripping out the comments (which include dire warnings against using DEC
C++ prior to V5.3, which does not seem to be applicable here), 
/usr/include/c_asm.h consists only of:

---
        float  fasm( const char *,... );
        long   asm( const char *,...);
        double dasm( const char *,... );

#pragma intrinsic( fasm )
#pragma intrinsic( asm )
#pragma intrinsic( dasm )
---

which is not a notation my limited expertise with C recognises, and apparently
gcc doesn't recognise it either.  However, if I try to compile gthread.c with
DEC's cc, I get a different set of errors:

---
cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gthread -DG_LOG_DOMAIN=\"GThread\" -O2 -D_REENTRANT -c -DPIC gthread.c -o .libs/gthread.lo
cc: Error: ../glib.h, line 1543: Missing ";".
G_INLINE_FUNC gint      g_bit_nth_lsf (guint32 mask,
--------------^
cc: Error: ../glib.h, line 1546: Missing ";".
G_INLINE_FUNC gint
--------------^
cc: Error: ../glib.h, line 1561: Missing ";".
G_INLINE_FUNC gint      g_bit_nth_msf (guint32 mask,
--------------^
cc: Error: ../glib.h, line 1564: Missing ";".
G_INLINE_FUNC gint
--------------^
cc: Error: ../glib.h, line 1581: Missing ";".
G_INLINE_FUNC guint     g_bit_storage (guint number);
--------------^
cc: Error: ../glib.h, line 1583: Missing ";".
G_INLINE_FUNC guint
--------------^
cc: Error: ../glibconfig.h, line 77: In the declaration of "pad", the array bound "0" is not a positive integer.
    char   pad[0];
-----------^
---

Just to see if it would help, I tried './configure --without-gthread', but 
that didn't do anything.

Can anybody give me a workaround?  Would be much appreciated, and thanks
in advance.



--
colin roald | a day without fusion is like a day without sunshine.  (unknown)



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