Brian Kurotsuchi <bkurotsu at lug.ee.calpoly.edu> writes:
> /usr/include/libintl.h:25: parse error before `const'
> /usr/include/libintl.h:26: parse error before `const'
> /usr/include/libintl.h:27: parse error before `const'
> /usr/include/libintl.h:28: parse error before `const'
> /usr/include/libintl.h:29: parse error before `const'
> make: *** [devGNOME.o] Error 1
>
> ----------
> Is this a problem or a result of my running the lastest and greatest
version
> of GNOME?
>
> I'm on Solaris 2.6 sparc, compiling with egcs 1.1.2.
It's a problem... possibly with gnome, though. I'm not going to try a
compile at this moment (although I do have access to Sol2.6, there's
no gnome on that machine), but the offending lines read:
25 extern char *dcgettext(const char *, const char *, const int);
26 extern char *dgettext(const char *, const char *);
27 extern char *gettext(const char *);
28 extern char *textdomain(const char *);
29 extern char *bindtextdomain(const char *, const char *);
Errors like the ones you're getting generally comes from having
dcgettext() and friends previously defined as macros. This doesn't
seem to be happening anywhere in the R sources, so I'm suspecting
gnome.h...
If you run the exact same gcc command but add the -E flag, you'll be
able to see exactly what the C preprocessor is doing to your code.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._