On Sun, 22 Nov 2020, Danilo Pecher wrote:
Hi Marcin,I'm attaching a xz'ed log file. This thing completely mystifies me. First of all, I've never seen the linker bitch about header files. I looked at the headers and saw they seemed to lack protection against multiple inclusion, so I added the whole #ifndef __header_included__ #define __header included__ <junk goes here #endif shtick, but it still comes back no-sale.
in the times of link time optimizations, everything is possible now :) thanks, in the meantime got the reproduced on fedora 33 looks like this to me: https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common Now trying something like this, at least it got me past builing the DtSearch library (but there were many more occurences of this one later): diff --git a/cde/config/cf/Imake.tmpl b/cde/config/cf/Imake.tmpl index 1874d0b1..2be2e81b 100644 --- a/cde/config/cf/Imake.tmpl +++ b/cde/config/cf/Imake.tmpl @@ -514,10 +514,10 @@ XCOMM the platform-specific parameters - edit site.def to change #endif #ifndef CcCmd #if HasGcc2-#define CcCmd gcc -fpcc-struct-return +#define CcCmd gcc -fpcc-struct-return -fcommon
#else #if HasGcc-#define CcCmd gcc -fstrength-reduce -fpcc-struct-return +#define CcCmd gcc -fstrength-reduce -fpcc-struct-return
#else
#if HasCenterLineC
#define CcCmd clcc
diff --git a/cde/config/cf/linux.cf b/cde/config/cf/linux.cf
index 8e40b576..efa04f98 100644
--- a/cde/config/cf/linux.cf
+++ b/cde/config/cf/linux.cf
@@ -110,7 +110,7 @@ XCOMM binutils: (LinuxBinUtilsMajorVersion)
#define NeedWidePrototypes NO
#define SetTtyGroup YES
-#define CcCmd gcc -g -pipe
+#define CcCmd gcc -g -pipe -fcommon
#define CplusplusCmd g++ -g -pipe
#define AsCmd as
#define LdCmd ld
diff --git a/cde/lib/DtSearch/raima/dbtype.h b/cde/lib/DtSearch/raima/dbtype.h
index 5c7eea81..01676f68 100644
--- a/cde/lib/DtSearch/raima/dbtype.h
+++ b/cde/lib/DtSearch/raima/dbtype.h
@@ -405,7 +405,7 @@ typedef struct {struct CNTRY_TBL_S *ptr; LOCK_DESC}
CNTRY_TBL_P;
struct sk {
INT sk_fld;
CHAR_P sk_val;
-} __SK__;
+};
typedef struct { struct sk *ptr; LOCK_DESC } SK_P;
/* node key search path stack entry: one per level per key field */
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ cdesktopenv-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
