Bug 16631 - 0711-228 WARNING: Duplicate symbols: R_OutputCon - not declared as extern in src/include/Defn.h
Summary: 0711-228 WARNING: Duplicate symbols: R_OutputCon - not declared as extern in ...
Status: UNCONFIRMED
Alias: None
Product: R
Classification: Unclassified
Component: Installation (show other bugs)
Version: R-devel (trunk)
Hardware: PowerPC AIX
: P5 enhancement
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2015-12-15 13:44 UTC by Michael Felt
Modified: 2015-12-16 08:24 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Felt 2015-12-15 13:44:23 UTC
When building R I get 11 occurrences of Duplicate Symbol for R_OutputCon.

root@x065:[/data/prj/cran/32/R-shared]grep -n -i duplicate ../scripts/* | grep WARNING | grep R_OutputCon
../scripts/R-devel-make.text:661:ld: 0711-224 WARNING: Duplicate symbol: R_OutputCon
../scripts/R-devel-make.text:673:ld: 0711-224 WARNING: Duplicate symbol: R_OutputCon
../scripts/R-devel-make.text:675:ld: 0711-224 WARNING: Duplicate symbol: R_OutputCon
../scripts/R-devel-make.text:690:ld: 0711-224 WARNING: Duplicate symbol: R_OutputCon
../scripts/R-devel-make.text:750:ld: 0711-224 WARNING: Duplicate symbol: R_OutputCon
../scripts/R-devel-make.text:803:ld: 0711-224 WARNING: Duplicate symbol: R_OutputCon
../scripts/R-devel-make.text:852:ld: 0711-224 WARNING: Duplicate symbol: R_OutputCon
../scripts/R-devel-make.text:891:ld: 0711-224 WARNING: Duplicate symbol: R_OutputCon
../scripts/R-devel-make.text:1037:ld: 0711-224 WARNING: Duplicate symbol: R_OutputCon
../scripts/R-devel-make.text:1080:ld: 0711-224 WARNING: Duplicate symbol: R_OutputCon
../scripts/R-devel-make.text:1191:ld: 0711-224 WARNING: Duplicate symbol: R_OutputCon
root@x065:[/data/prj/cran/32/R-shared]grep -n -i duplicate ../scripts/* | grep WARNING | grep R_OutputCon | wc
      11      66     949

With the following change - they all go away

--- R-devel_2015-12-14/src/include/Defn.h       2015-11-18 17:08:08 +0000
+++ R-devel/src/include/Defn.h  2015-12-15 12:46:13 +0000
@@ -1270,7 +1270,7 @@
 void invalidate_cached_recodings(void);  /* from sysutils.c */
 void resetICUcollator(void); /* from util.c */
 void dt_invalidate_locale(); /* from Rstrptime.h */
-int R_OutputCon; /* from connections.c */
+extern int R_OutputCon; /* from connections.c */
 extern int R_InitReadItemDepth, R_ReadItemDepth; /* from serialize.c */
 void get_current_mem(size_t *,size_t *,size_t *); /* from memory.c */
 unsigned long get_duplicate_counter(void);  /* from duplicate.c */