This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: symbols/vms?


heh, of course -enable-threads=posix uncovers maybe another header bug :)
 
 
eptions -c /src/gcc-4.5.0/libgcc/../gcc/unwind-dw2.c
In file included from /src/gcc-4.5.0/libgcc/../gcc/gthr-posix.h:41:0,
                 from ../.././gcc/gthr-default.h:1,
                 from /src/gcc-4.5.0/libgcc/../gcc/gthr.h:162,
                 from /src/gcc-4.5.0/libgcc/../gcc/unwind-dw2.c:37:
/usr/local/lib/gcc/alpha-dec-vms/4_5_0/../../../../alpha-dec-vms/include/pthread.h:363:16: error: redefinition of 'struct timespec'
/usr/local/lib/gcc/alpha-dec-vms/4_5_0/../../../../alpha-dec-vms/include/signal.h:481:13: note: originally defined here

 
Looks like they don't quite agree on #ifdef guards,
at least depending on #include order or such.
 
 
signal.h:
#       if (!defined __TIMESPEC && !defined _TIMESPEC_T_)
#           define __TIMESPEC
            struct timespec {
                unsigned long tv_sec;   /* seconds */
                long tv_nsec; /* nanoseconds */
            };
#       endif
 
pthread.h:
 
#  ifndef _TIMESPEC_T_
#   define _TIMESPEC_T_
typedef struct timespec {
    unsigned long       tv_sec;         /* seconds */
    long                tv_nsec;        /* nanoseconds */
    } timespec_t;
#  endif
 
 
maybe if pthread.h #included first..
 
 
I'll just remove the -enable-threads for now. :)
 
 
 - Jay 		 	   		  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]