[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion 1.8.x on Solaris 10 x86

From: Philip Martin <philip_at_codematters.co.uk>
Date: Thu, 03 Aug 2017 18:59:52 +0100

Ian Mordey <ian.mordey_at_wandisco.com> writes:

> bash-3.2# suncc -std=c90 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS
> -D_REENTRANT -D_LARGEFILE64_SOURCE -Werror=unknown-warning-option
> -I/opt/WANdisco/include -fast -xO5 -xunroll=20 -I./subversion/include
> -I./subversion -I/opt/WANdisco/include/apr-1 -I/opt/WANdisco/include/apr-1
> -I/opt/WANdisco/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/gnome-keyring-1 -I/opt/WANdisco/include/serf-1
> -I/opt/WANdisco/include -I/opt/WANdisco//include -c
> subversion/libsvn_auth_gnome_keyring/gnome_keyring.c -KPIC -DPIC -o
> subversion/libsvn_auth_gnome_keyring/.libs/gnome_keyring.o
> "/usr/include/glib-2.0/glib/gutils.h", line 208: syntax error before or at:
> gint
> "/usr/include/glib-2.0/glib/gutils.h", line 210: syntax error before or at:
> gint
> "/usr/include/glib-2.0/glib/gutils.h", line 212: syntax error before or at:
> guint
> "/usr/include/glib-2.0/glib/gutils.h", line 223: syntax error before or at:
> void
> "/usr/include/glib-2.0/glib/gutils.h", line 225: syntax error before or at:
> gpointer
> "/usr/include/glib-2.0/glib/gutils.h", line 226: syntax error before or at:
> gpointer
> "/usr/include/glib-2.0/glib/gutils.h", line 227: syntax error before or at:
> guint
> "/usr/include/glib-2.0/glib/gutils.h", line 232: syntax error before or at:
> gint
> "/usr/include/glib-2.0/glib/gutils.h", line 245: syntax error before or at:
> gint
> "/usr/include/glib-2.0/glib/gutils.h", line 260: syntax error before or at:
> guint
> "/usr/include/glib-2.0/glib/gutils.h", line 273: syntax error before or at:
> void
> "/usr/include/glib-2.0/glib/gutils.h", line 282: syntax error before or at:
> gpointer
> "/usr/include/glib-2.0/glib/gutils.h", line 299: syntax error before or at:
> gpointer
> "/usr/include/glib-2.0/glib/gutils.h", line 308: syntax error before or at:
> guint
> "/usr/include/glib-2.0/glib/gstring.h", line 121: syntax error before or
> at: GString
> "/usr/include/glib-2.0/glib/gmessages.h", line 114: invalid token in
> #define macro parameters: ...
> "/usr/include/glib-2.0/glib/gmessages.h", line 117: invalid token in
> #define macro parameters: ...
> "/usr/include/glib-2.0/glib/gmessages.h", line 120: invalid token in
> #define macro parameters: ...
> "/usr/include/glib-2.0/glib/gmessages.h", line 123: invalid token in
> #define macro parameters: ...

The types gint, guint should be defined in gtypes.h but the cause of the
error message may not be use of type itself but something earlier. What
do the lines around 208 in gutils.h look like? And 121 in gstring.h and
114 in gmessages.h. Is there something common between those bits of the
files?

Another option is to run the compile command manually but change '-c' to
'-E', remove '-o subversion/libsvn_auth_gnome_keyring/gnome_keyring.o',
and redirect stdout to a file. That gives us the preprocessed source
with all the includes resolved (probably quite a big file).

-- 
Philip
Received on 2017-08-03 20:00:04 CEST

This is an archived mail posted to the Subversion Dev mailing list.