[R] Error in making R-1.6.2.

Rolf Turner rolf at math.unb.ca
Mon Mar 17 01:39:35 CET 2003


I have just tried to update the version of R on our system, and when
I did ``make'', I got the following error message:

===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===
gcc  -I. -I../../src/include -I../../src/include  -DHAVE_CONFIG_H   -g -O2 -c platform.c -o platform.o
In file included from /usr/include/netinet/in.h:41,
                 from /usr/include/netdb.h:96,
                 from platform.c:1079:
/usr/include/sys/stream.h:307: parse error before "projid_t"
*** Error code 1
===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===

I looked at the file /usr/include/sys/stream.h and found the
offending line.  It is right at the end of a ``typedef''
construction.  (Whatever that is; I don't speak C.)  I've included
the beginning of this construction in what I've displayed below, so
that you can see ``where things are coming from''.  (???)

===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===
typedef struct datab {                         <--- Line 277 (my annotation)
        frtn_t          *db_frtnp;
        unsigned char   *db_base;
        unsigned char   *db_lim;
        unsigned char   db_ref;
                  .
                  .
                  .
        fthdr_t         *db_fthdr;
        ftflw_t         ***db_ftflw;
        uid_t           db_uid;         /* Effective user id */
        /* project ID - EXPERIMENTAL - may change in future release */
        projid_t        db_projid;             <--- Line 307 (my annotation)
} dblk_t;
===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===

I have no idea why there should be a ``parse error'' at or before
line 307.  Can anyone enlighten me and suggest what I can do about it?

The information about the current version is:

platform sparc-sun-solaris2.9
arch     sparc               
os       solaris2.9          
system   sparc, solaris2.9   
status                       
major    1                   
minor    5.1                 
year     2002                
month    06                  
day      17                  
language R

(As you can see I haven't upgraded for a while.  Sigh.  I've been
afraid of running into the sort of trouble that I've just run into.)

I'll be grateful for any advice, but I would humbly request that
you express it in terms as simple and explicit as you can.  As I said,
I don't speak C, and I'm very much fumbling about in the dark here.

					cheers,

						Rolf Turner
						rolf at math.unb.ca

P. S.  There are a bunch of WARNING messages in config.log, which may
be relevant as some of them refer to ``netinet'' and ``netdb:

===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===
configure:8871: WARNING: you cannot build info versions of the R manuals
configure:12127: WARNING: arpa/inet.h: present but cannot be compiled
configure:12129: WARNING: arpa/inet.h: check for missing prerequisite headers?
configure:12131: WARNING: arpa/inet.h: proceeding with the preprocessor's result

configure:12127: WARNING: netdb.h: present but cannot be compiled
configure:12129: WARNING: netdb.h: check for missing prerequisite headers?
configure:12131: WARNING: netdb.h: proceeding with the preprocessor's result
configure:12127: WARNING: netinet/in.h: present but cannot be compiled
configure:12129: WARNING: netinet/in.h: check for missing prerequisite headers?
configure:12131: WARNING: netinet/in.h: proceeding with the preprocessor's resul
t
configure:12127: WARNING: sys/socket.h: present but cannot be compiled
configure:12129: WARNING: sys/socket.h: check for missing prerequisite headers?
configure:12131: WARNING: sys/socket.h: proceeding with the preprocessor's resul
t
configure:12709: WARNING: could not determine type of socket length
configure:26299: WARNING: could not determine type of socket length
configure:26327: WARNING: you cannot build info versions of the R manuals
===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===



More information about the R-help mailing list