broken union (was: Re: r1212 - in
trunk/glibc-2.3-head/sysdeps/kfreebsd: alpha/bits bits
i386/bits x86_64/bits)
Robert Millan
rmh at aybabtu.com
Mon Feb 20 05:39:52 UTC 2006
On Thu, Feb 16, 2006 at 12:43:17PM +0000, Robert Millan wrote:
> --- trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/sigset.h 2006-02-16 11:49:08 UTC (rev 1211)
> +++ trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/sigset.h 2006-02-16 12:43:16 UTC (rev 1212)
> @@ -25,7 +25,11 @@
> /* A `sigset_t' has a bit for each signal. */
> typedef struct
> {
> - unsigned int __sigbits[4];
> + union
> + {
> + unsigned int __sigbits[4];
> + unsigned int __bits[4];
> + };
> } __sigset_t;
>
> #endif /* ! _SIGSET_H_types */
This part of the patch broke mozilla/xulrunner HEAD. I think the union I added
was wrong in syntax, but I'm not sure why. Any idea?
gcc -o /home/rmh/tmp/head/build/nss/freebl/Linux_SINGLE_SHLIB/sysrand.o -c -O2 -fPIC -Di386 -D_XOPEN_SOURCE -D_X86_ -ansi -Wall -pipe -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR -DXP_UNIX -DSHLIB_SUFFIX=\"so\" -DSHLIB_PREFIX=\"lib\" -DSHLIB_VERSION=\"3\" -DSOFTOKEN_SHLIB_VERSION=\"3\" -DRIJNDAEL_INCLUDE_TABLES -UDEBUG -DNDEBUG -D_REENTRANT -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE -DMP_ASSEMBLY_DIV_2DX1D -DMP_API_COMPATIBLE -I/home/rmh/tmp/head/build/dist/include/nspr -I/home/rmh/tmp/head/build/dist/include -I/home/rmh/tmp/head/build/dist/public/nss -I/home/rmh/tmp/head/build/dist/private/nss -I/home/rmh/tmp/head/build/dist/include -I/home/rmh/tmp/head/build/dist/include/dbm -Impi -Iecl sysrand.c
In file included from /usr/include/signal.h:33,
from unix_rand.c:39,
from sysrand.c:39:
/usr/include/bits/sigset.h: In function '__sigismember':
/usr/include/bits/sigset.h:119: error: 'struct <anonymous>' has no member named '__sigbits'
/usr/include/bits/sigset.h: In function '__sigaddset':
/usr/include/bits/sigset.h:125: error: 'struct <anonymous>' has no member named '__sigbits'
/usr/include/bits/sigset.h: In function '__sigdelset':
/usr/include/bits/sigset.h:132: error: 'struct <anonymous>' has no member named '__sigbits'
make[6]: *** [/home/rmh/tmp/head/build/nss/freebl/Linux_SINGLE_SHLIB/sysrand.o] Error 1
make[6]: Leaving directory `/home/rmh/tmp/head/mozilla/security/nss/lib/freebl'
--
Robert Millan
More information about the Glibc-bsd-devel
mailing list