On Wed, Sep 08, 2010 at 02:14:55AM -0500, DRC wrote:
> However, when I attempted to apply the patch to work around this, I got
> a worse build error:
> 
>  gcc4 -DHAVE_CONFIG_H -I. -I/home/drc/worksrc/tigervnc/common/os -I../..
> -I/home/drc/worksrc/tigervnc/common -O3 -static-libgcc -fPIC -Wall -MT
> libos_la-net.lo -MD -MP -MF .deps/libos_la-net.Tpo -c
> /home/drc/worksrc/tigervnc/common/os/net.c  -fPIC -DPIC -o
> .libs/libos_la-net.o
> In file included from /usr/include/stdlib.h:33,
>                  from /home/drc/worksrc/tigervnc/common/os/net.c:23:
> /usr/lib/gcc/x86_64-redhat-linux5E/4.1.2/include/stddef.h:214: error:
> expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
> In file included from /home/drc/worksrc/tigervnc/common/os/net.c:23:
> /usr/include/stdlib.h:140: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '__ctype_get_mb_cur_max'
> In file included from /usr/include/sys/types.h:266,
>                  from /usr/include/stdlib.h:433,
>                  from /home/drc/worksrc/tigervnc/common/os/net.c:23:
> /usr/include/bits/pthreadtypes.h:48: error: expected
> specifier-qualifier-list before 'size_t'
> In file included from /home/drc/worksrc/tigervnc/common/os/net.c:23:
> /usr/include/stdlib.h:450: error: expected declaration specifiers or
> '...' before 'size_t'
> /usr/include/stdlib.h:480: error: expected declaration specifiers or
> '...' before 'size_t'
> /usr/include/stdlib.h:482: error: nonnull argument with out-of-range
> operand number (argument 1, operand 4)
> /usr/include/stdlib.h:584: error: expected ')' before '__size'
> /usr/include/stdlib.h:586: error: expected ')' before '__nmemb'
> /usr/include/stdlib.h:595: error: expected declaration specifiers or
> '...' before 'size_t'
> In file included from /usr/include/stdlib.h:606,
>                  from /home/drc/worksrc/tigervnc/common/os/net.c:23:
> /usr/include/alloca.h:33: error: expected ')' before '__size'
> In file included from /home/drc/worksrc/tigervnc/common/os/net.c:23:

I can not imaging, how such errors can happen.

This test only adds the following to config.h:

|  /* Is gnutls_set_global_errno present */
|  #define gnutls_transport_set_global_errno(A) do { errno = (A); } while(0)
|

So any code not refering to gnutls_transport_set_global_errno should
not be affected.

Can you check, what is added to your config.h? My first guess is, that
some garbage is at the end of that file, which breaks everything after
including it.

Regards,
Martin Kögler

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to