From pnorbert at ornl.gov  Thu Aug  7 11:29:49 2008
From: pnorbert at ornl.gov (pnorbert at ornl.gov)
Date: Thu,  7 Aug 2008 11:29:49 +0200 (CEST)
Subject: [Rd] Compile error on src/main/platform.c (PR#11988)
Message-ID: <20080807092949.299BF282EFC1@mail.pubhealth.ku.dk>

Full_Name: Norbert Podhorszki
Version: 2.7.0
OS: RHEL4
Submission from: (NULL) (160.91.210.37)


Using PGI 6.2.5 compiler instead of gcc, there is no HAVE_GLOB defined for
compilation (on our machine). 
The function do_unlink(...) in src/main/platform.c (lines 1368-1410) will have
an unclosed if statement in this case. 
The 
    #if defined(HAVE_GLOB)
    ...
    #else /* HAVE_GLOB */
                failures += R_unlink(names, recursive);
    #endif

condition starts inside an if statement, which is closed in the #if part and not
in the #else part.

It is the same for v2.7.1, too.



[Rd] Compile error on src/main/platform.c (PR#11988)
pnorbert at ornl.gov