Fix Linux rpc problems with new glibc
authorUlrich Wilkens <mail@uwilkens.de>
Thu, 31 May 2018 20:50:44 +0000 (22:50 +0200)
committerJon Trulson <jon@radscan.com>
Fri, 1 Jun 2018 00:00:22 +0000 (18:00 -0600)
49 files changed:
cde/config/imake/imake.c
cde/lib/DtSvc/DtEncap/Imakefile
cde/lib/DtSvc/DtUtil1/Imakefile
cde/lib/DtSvc/DtUtil2/Imakefile
cde/lib/DtSvc/Imakefile
cde/lib/csa/Imakefile
cde/programs/dtcm/dtcm/Imakefile
cde/programs/dtcm/libDtCmP/getdate.h
cde/programs/dtcm/libDtCmP/getdate.y
cde/programs/dtcm/server/Imakefile
cde/programs/dtcreate/Imakefile
cde/programs/dtdbcache/Imakefile
cde/programs/dtexec/Imakefile
cde/programs/dtfile/Imakefile
cde/programs/dticon/Imakefile
cde/programs/dtinfo/DtMmdb/StyleSheet/FeatureSet.C
cde/programs/dtinfo/DtMmdb/dstr/memory_pool.h
cde/programs/dtinfo/DtMmdb/dynhash/data_t.C
cde/programs/dtinfo/DtMmdb/object/long_pstring.C
cde/programs/dtinfo/DtMmdb/oliasdb/c_api_common.C
cde/programs/dtinfo/DtMmdb/oliasdb/user_base.C
cde/programs/dtinfo/DtMmdb/storage/heap_comp_funcs.C
cde/programs/dtinfo/DtMmdb/utility/buffer.C
cde/programs/dtinfo/clients/dtinfo_start/Imakefile
cde/programs/dtinfo/dtinfo/src/Agents/Imakefile
cde/programs/dtinfo/dtinfo/src/Agents/MessageAgentMotif.C
cde/programs/dtinfo/dtinfo/src/Basic/OrderList.C
cde/programs/dtinfo/dtinfo/src/Imakefile
cde/programs/dtinfo/dtinfo/src/Managers/Imakefile
cde/programs/dtinfo/dtinfo/src/Managers/NodeMgr.C
cde/programs/dtinfo/dtinfo/src/Managers/PrintMgr.C
cde/programs/dtinfo/dtinfo/src/Managers/StyleSheetMgr.C
cde/programs/dtinfo/dtinfo/src/Registration.hh
cde/programs/dtinfo/dtinfo/src/cgm/cgmcmds.c
cde/programs/dtinfo/dtinfogen/infolib/etc/DataBase.h
cde/programs/dtksh/Imakefile
cde/programs/dtmail/MotifApp/Imakefile
cde/programs/dtmail/dtmail/Imakefile
cde/programs/dtmail/dtmailpr/Imakefile
cde/programs/dtmail/libDtMail/Common/Imakefile
cde/programs/dtmail/libDtMail/RFC/Imakefile
cde/programs/dtpad/Imakefile
cde/programs/dtsearchpath/dtsp/Imakefile
cde/programs/dtsearchpath/libCliSrv/Imakefile
cde/programs/dtspcd/Imakefile
cde/programs/dtstyle/Imakefile
cde/programs/dtterm/Imakefile
cde/programs/dtwm/Imakefile
cde/programs/ttsnoop/Imakefile

index 2eac095e50fa7c3bc07ff243d5b5e452ab4c528a..7c429e42c38ce8245130fa7ae85c3fae44f15239 100644 (file)
@@ -996,11 +996,11 @@ get_libc_version(FILE *inFile)
         */
       if (readlink (libcso, buf, PATH_MAX) >= 0) {
        for (ptr = buf; *ptr && !isdigit (*ptr); ptr++);
-         int ret = sscanf (ptr, "%d.%d.%d", &libcmajor, &libcminor, &libcteeny);
-         (void) ret;
-         fprintf(inFile, "#define DefaultLinuxCLibMajorVersion %d\n", libcmajor);    
-         fprintf(inFile, "#define DefaultLinuxCLibMinorVersion %d\n", libcminor);    
-         fprintf(inFile, "#define DefaultLinuxCLibTeenyVersion %d\n", libcteeny);    
+       int ret = sscanf (ptr, "%d.%d.%d", &libcmajor, &libcminor, &libcteeny);
+       (void) ret;
+       fprintf(inFile, "#define DefaultLinuxCLibMajorVersion %d\n", libcmajor);
+       fprintf(inFile, "#define DefaultLinuxCLibMinorVersion %d\n", libcminor);
+       fprintf(inFile, "#define DefaultLinuxCLibTeenyVersion %d\n", libcteeny);
       }
     } else {
       /* 
@@ -1229,7 +1229,7 @@ get_gcc_incdir(FILE *inFile)
       if ((gccproc = popen (cmd, "r")) != NULL) {
        if (fgets (buf, PATH_MAX - 1, gccproc) != NULL) {
          ptr = strstr (buf, "libgcc.a");
-         if (ptr) strncpy (ptr, "include", 7);
+         if (ptr) strncpy (ptr, "include", 8);
        }
        (void) pclose (gccproc);
        break;
@@ -1720,6 +1720,6 @@ Strdup(const char *cp)
 {
        char *new = Emalloc(strlen(cp) + 1);
 
-       strncpy(new, cp, strlen(cp) + 1);
+       memcpy(new, cp, strlen(cp) + 1);
        return new;
 }
index 15b4e14cc42e2c7fc94ee3fa1d865353ba8ea7ef..ffaab10ca690dd1a23d14a654f54c5ccec77fa69 100644 (file)
@@ -27,7 +27,7 @@ DEFINES = DtSvcDefines \
           -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
           -DCDE_LOGFILES_TOP=\"$(CDE_LOGFILES_TOP)/tmp\"
 
-INCLUDES = -I. -I../include -I../DtUtil2
+INCLUDES = -I. -I../include -I../DtUtil2 $(TIRPCINC)
 
 
 SRCS =  MemoryMgr.c     SbEvent.c       Symbolic.c      bmsglob.c \
index 3699fe7b8c3adbf83a4dee79a6824e3b5581ddef..8d3539917cc5eaa113c6603016c9a79ff0ba6abf 100644 (file)
@@ -18,7 +18,7 @@ DEPEND_DEFINES = $(DEPENDDEFINES)
 DEFINES = DtSvcDefines \
           -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
           -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
-INCLUDES = -I. -I../include
+INCLUDES = -I. -I../include $(TIRPCINC)
 
 
 HEADERS = \
index 522699449a7bb22a57727a3dd5ac9af62f37468a..918a95c2c5c8f07c81d4d371e65a4a808a95b2fd 100644 (file)
@@ -22,7 +22,7 @@ DEFINES = DtSvcDefines  $(XINOPT) \
           -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
           -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
 
-INCLUDES =  -I. -I../include
+INCLUDES =  -I. -I../include $(TIRPCINC)
 
 #ifdef SunArchitecture
 EXTRA_INCLUDES = -I$(DTHELPSRC)
index 8ec6c3bf6e4d666412b833e9f6c68db2829329bf..82f38fd0ba4bb053d06cdd6f2690e940c06e168a 100644 (file)
@@ -31,7 +31,7 @@ DependSubdirs($(SUBDIRS))
 #endif
 DEFINES = DtSvcDefines $(XINOPT)
 
-INCLUDES = -I.
+INCLUDES = -I. $(TIRPCINC)
 
 #ifdef SharedDtSvcReqs
 #ifdef SunArchitecture
index a2d8dfccf3582c2ee5750fa29edcd9ee175141fa..9a5ac31e6c569dc567a467d86160959cb2ea88a5 100644 (file)
@@ -10,7 +10,7 @@ XCOMM $TOG: Imakefile /main/4 1998/03/19 19:01:27 mgreess $
 
 #include <Threads.tmpl>
 
-INCLUDES = -I.
+INCLUDES = -I. $(TIRPCINC)
 
 OSMAJORVERSION = OSMajorVersion
 OSMINORVERSION = OSMinorVersion
index 7ebed1d81d4aa35edf7f188ccba14f87539fa3b8..96252b42cca03c386e7038ff3e8240fa58421fa4 100644 (file)
@@ -2,7 +2,7 @@ XCOMM $TOG: Imakefile /main/19 1998/04/09 11:46:13 mgreess $
 
 #include <Threads.tmpl>
 
-       INCLUDES = -I. -I$(CSASRC) -I../libDtCmP -I$(DTHELPSRC)
+       INCLUDES = -I. -I$(CSASRC) -I../libDtCmP -I$(DTHELPSRC) $(TIRPCINC)
   SYS_LIBRARIES = -lm $(ICONVSYSLIB)
        DTCMPLIB = ../libDtCmP/libDtCmP.a
 
index 8f1d9fe11ac79dcd6dfc097fdd82168ffb498249..d58b37e7c4e4e4888ddcdbe428376fd1df0ee646 100644 (file)
@@ -84,6 +84,7 @@ extern time_t         monthadd                P((time_t, time_t));
 extern time_t          daylcorr                P((time_t, time_t));
 extern time_t          cm_getdate              P((char*, struct timeb *));
 
+int yylex();
 extern void yyerror(char *s);
 
 #endif
index 573b9dfa349f9c548c434a5de78ca6e95fd8f357..e42b8ee88b79076b1ddacd72f30cde7be3a2d157 100644 (file)
@@ -28,6 +28,7 @@
 
 %{
 #ifndef lint
+__attribute__((unused))
 static  char sccsid[] = "@(#)getdate.y 1.10 94/11/07 Copyr 1993 Sun Microsystems, Inc.";
 #endif
 %}
@@ -112,8 +113,8 @@ dyspec:     DAY
                {dayord = 1; dayreq = $1;}
        | DAY ','
                {dayord = 1; dayreq = $1;}
-       | NUMBER DAY
-               {dayord = $1; dayreq = $2;};
+       | NUMBER ' ' DAY
+               {dayord = $1; dayreq = $3;};
 
 dtspec:        NUMBER '/' NUMBER
                {month = $1; day = $3; noyear = 1;}
@@ -127,17 +128,17 @@ dtspec:   NUMBER '/' NUMBER
                {month = $1; day = $2; noyear = 1;}
        | MONTH NUMBER ',' NUMBER
                {month = $1; day = $2; year = $4;}
-       | NUMBER MONTH
-               {month = $2; day = $1; noyear = 1;}
-       | NUMBER MONTH NUMBER
-               {month = $2; day = $1; year = $3;};
+       | NUMBER ' ' MONTH
+               {month = $3; day = $1; noyear = 1;}
+       | NUMBER ' ' MONTH ' ' NUMBER
+               {month = $3; day = $1; year = $5;};
 
 
-rspec: NUMBER UNIT
-               {relsec +=  60L * $1 * $2;}
-       | NUMBER MUNIT
-               {relmonth += $1 * $2;}
-       | NUMBER SUNIT
+rspec: NUMBER ' ' UNIT
+               {relsec +=  60L * $1 * $3;}
+       | NUMBER ' ' MUNIT
+               {relmonth += $1 * $3;}
+       | NUMBER ' ' SUNIT
                {relsec += $1;}
        | UNIT
                {relsec +=  60L * $1;}
@@ -406,7 +407,7 @@ static int
 lookup(char *id)
 {
 #define gotit (yylval=i->value,  i->type)
-#define getid for(j=idvar, k=id; *j++ = *k++; )
+#define getid for(j=idvar, k=id; (*j++ = *k++); )
 
        char idvar[20];
        register char *j, *k;
@@ -463,7 +464,7 @@ lookup(char *id)
 
 static char *lptr;
 
-yylex()
+int yylex()
 {
        extern int yylval;
        int sign;
@@ -550,7 +551,7 @@ time_t cm_getdate(char *p, struct timeb *now)
        hh = mm = ss = 0;
        merid = 24;
 
-       if (err = yyparse()) return (-1);
+       if ((err = yyparse())) return (-1);
 
        mcheck(timeflag);
        mcheck(zoneflag);
index ad77d8e21efaaab9c420b6ef35d53f33671817f5..7f93b6d58b057bf2b65f85e44cc418ec15208198 100644 (file)
@@ -20,8 +20,8 @@ XCOMM (c) Copyright 1996 Hitachi.
 
        PROGRAM         = rpc.cmsd
 
-       INCLUDES = -I. -I$(CSASRC) -I$(DTHELPSRC)
-  SYS_LIBRARIES = DtClientSysLibs
+       INCLUDES = -I. -I$(CSASRC) -I$(DTHELPSRC) $(TIRPCINC)
+  SYS_LIBRARIES = DtClientSysLibs $(TIRPCLIB)
 #ifdef SunArchitecture
 LOCAL_LIBRARIES = $(CSALIB) $(DTSVCLIB) $(TTLIB)
 #else
index dc27bd09604d326436eac4a5167c1a01e2106ff8..fdf66c58abb180165bf6188c50cff17a2615441e 100644 (file)
@@ -15,7 +15,7 @@ XCOMM
  */
 
  DEPEND_DEFINES = $(DEPENDDEFINES)
-       INCLUDES = -I.
+       INCLUDES = -I. $(TIRPCINC)
 #if defined (SunArchitecture)
 DEPLIBS = $(DEPDTWIDGETLIB) $(DEPDTSVCLIB) \
                   $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB)
index e6375b84cb9037f838db59ca19773b7ad75fbbc2..209cca6d2438d3cb7fc9f58f67c6e7091560e625 100644 (file)
@@ -9,7 +9,7 @@ XCOMM $XConsortium: Imakefile /main/5 1996/09/14 15:26:52 drk $
  * It should be set when necessary to the real library macro name.
  */
 
-       INCLUDES = -I.
+       INCLUDES = -I. $(TIRPCINC)
 
 /* DEPLIBS contains the list of library depencies for a client.
  * LOCAL_LIBRARIES contains the list of libraries on the link line.
index 5c426de6059a33ef143e826c6722d0f2fba8027b..883cb2e9a85a633e57fb4be3cff4aecbfc8080fa 100644 (file)
@@ -4,7 +4,7 @@ DEPLIBS = $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
 LOCAL_LIBRARIES = $(TTLIB) $(XTOOLLIB) $(XLIB)
 DEPEND_DEFINES = $(DEPENDDEFINES)
 DEFINES = -DMSGLOG_CLIENT_ONLY
-INCLUDES = -I. 
+INCLUDES = -I. $(TIRPCINC)
 
 SRCS = DtGetMessage.c Main.c MsgLog.c Version.c
 OBJS = DtGetMessage.o Main.o MsgLog.o Version.o
index 88aecbdd4ea476b8a942d05a5de619d9a27589ed..bfb3fc6847cde7388aa3a1980fd8f6d7ce4591df 100644 (file)
@@ -19,7 +19,7 @@ DEFINES = -DMULTIBYTE -DSHAPE -D_ILS_MACROS -DSUN_PERF \
        -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \
        -DKORNSHELL=\"$(KORNSHELL)\" $(XINOPT)
 
-INCLUDES = -I./dtcopy
+INCLUDES = -I./dtcopy $(TIRPCINC)
 
 DEPLIBS = DepDtClientLibs
 LOCAL_LIBRARIES = DtClientLibs $(XINLIB)
index 6cbe04a3ac0014e242de65ac66c56533a600503a..12ddd0469852db0658e0a2e2cd306a0eb8b07933 100644 (file)
@@ -15,7 +15,7 @@ XCOMM
 
 DEPEND_DEFINES = $(DEPENDDEFINES)
 DEFINES = -D__TOOLTALK
-INCLUDES = -I.
+INCLUDES = -I. $(TIRPCINC)
 
 #if defined (SunArchitecture)
 DEPLIBS = $(DEPDTWIDGETLIB) $(DEPDTSVCLIB) $(DEPTTLIB) \
index 449b11d5c548e87bcacc4181b2bfb1d1656a8050..eff94005bc3de964fdec8b1ea556f1803c058689 100644 (file)
@@ -81,7 +81,7 @@ FeatureSet::evaluate(FeatureSet *result_set) const
          result_set->append(new Feature(next.key()->name(),
                                         value));
        }
-      mcatch_noarg(badEvaluationException)
+      mcatch_noarg(badEvaluationException&)
        {
          /* do nothing...we just ignore any that will not evaluate */
        }
index ef2f565971e0996ceb6e1dabdf0a456be8610a61..d291084c23aaf624c35ac5357701a468c35a58aa 100644 (file)
@@ -139,7 +139,7 @@ protected:
 };
 
 #ifdef C_API
-#define g_memory_pool (*g_memory_pool_ptr)
+#define g_memory_pool *g_memory_pool_ptr
 extern memory_pool* g_memory_pool_ptr;
 #endif
 
index 1dc670c98a5ca6137a233e5a1d9e6f6d2bc8dedd..96b591df591451e9a9715519b064bae658ae90fc 100644 (file)
@@ -349,12 +349,12 @@ int data_t::slot_num(int k, int rotate, int prime, int M )
 void* data_t::operator new( size_t x )
 {
    //return (void*)data_t_space_pool.alloc(x);
-   return (void*)g_memory_pool.alloc(x);
+   return (void*)(g_memory_pool).alloc(x);
 }
 
 void data_t::operator delete( void* ptr )
 {
    //data_t_space_pool.free((char*)ptr);
-   g_memory_pool.free((char*)ptr);
+   (g_memory_pool).free((char*)ptr);
 }
 
index 838994fac6631bac5088118c5c8ef86885e4256c..f0e7d3b8555cb55bfe18ab1d4b05a1b88d23b5e1 100644 (file)
@@ -96,15 +96,15 @@ long_pstring::extract(int left, int right, char* sink)
       )
       v_str_index = new chunks_index(storage_ptr, v_str_ptr.loc);
 
-      if ( v_str_index ) {
+   if ( v_str_index ) {
 
-         str_index_record_t* anchor = v_str_index -> chunk_location(left);
+      str_index_record_t* anchor = v_str_index -> chunk_location(left);
 
 //debug(cerr, left - anchor -> str_offset);
-         storage_ptr -> 
-             readString(anchor -> loc, sink, 
-                        right-left, left - anchor -> str_offset
-                       );
+      storage_ptr ->
+          readString(anchor -> loc, sink,
+                     right-left, left - anchor -> str_offset
+                    );
 
       } else 
 
index 8a473d00879fe2ab1dcdf1a3ed34fd7c997a4441..1b9d0235e44e6d5fd1cb627c840d6ccbd6afee3d 100644 (file)
@@ -136,7 +136,11 @@ void DtMmdbQuit()
 
 }
 
+#if __cplusplus < 201103L
 void* operator new( size_t sz ) throw(std::bad_alloc)
+#else
+void* operator new( size_t sz )
+#endif
 {
    void* p = (void*)malloc(sz);
    //printf("a::operator new called(). sz= %d, allo=%x\n", sz, p);
index 6f623cfe88e3f06634562196f7810b388ceed23e..99b33e57c6f49dadd1e0e684b0c85693dc9b1228 100644 (file)
@@ -160,7 +160,7 @@ user_base::checking_status_t user_base::check_mode()
 
 user_base::checking_status_t user_base::check_lock()
 {
-   char lock_dir[PATHSIZ];
+   char lock_dir[PATHSIZ+5];
    int len;
 
    snprintf(lock_dir, sizeof(lock_dir), "%s/%s", base_path, LOCK_DIR);
index 151c8d7d7d98a70d43ee384e7a570321c1e67342..e4456e42140335e4a9a61ab1c80f6006ac6b0d06 100644 (file)
@@ -75,12 +75,12 @@ Boolean fbytes_t_eq(const void* x, const void* y)
 void* fbytes_t::operator new( size_t x )
 {
    //return (void*)heap_cell_space_pool.alloc(x);
-   return (void*)g_memory_pool.alloc(x);
+   return (void*)(g_memory_pool).alloc(x);
 }
 
 void fbytes_t::operator delete( void* ptr )
 {
    //heap_cell_space_pool.free((char*)ptr);
-   g_memory_pool.free((char*)ptr);
+   (g_memory_pool).free((char*)ptr);
 }
 
index fa803042cf451fa288dd95faa7baf7c891260299..6525f9c87df85bd9ae24dc0ff1b89a4b3600f908 100644 (file)
@@ -186,7 +186,7 @@ buffer& buffer::skip(int i)
 {
    if ( i + v_aptr > v_eptr ) 
       MESSAGE(cerr, "buffer::skip(): underflow");
-      throw ( CASTBNDEXCEPT boundaryException( long(v_aptr), long(v_eptr), long(i + v_aptr) ));
+   throw ( CASTBNDEXCEPT boundaryException( long(v_aptr), long(v_eptr), long(i + v_aptr) ));
 
    v_aptr += i;
    return *this;
index 4c0bcbb0bab97ef37894a455befb3d3dfdc46463..3720be75f0ca38f93460bfd63a4ad9b483b3158c 100644 (file)
@@ -12,7 +12,7 @@ XCOMM $XConsortium: Imakefile /main/5 1996/06/11 17:45:12 cde-hal $
 NormalCplusplusObjectRule()
 
 DEPEND_DEFINES = $(DEPENDDEFINES)
-INCLUDES =  -I.
+INCLUDES =  -I. $(TIRPCINC)
 
 #ifdef AIXArchitecture
   LDPOSTLIB=-blibpath:/usr/dt/lib:/X11/lib:/usr/lib/threads:/usr/lib:/lib
index be6311960a88980921de417fc7afdc8f7f6dc648..55499c0ebf919b37c48411562290f56a60202f39 100644 (file)
@@ -10,11 +10,13 @@ LIBNAME=Agents
 NormalCplusplusObjectRule()
 
 #ifdef DoLicenseManagement
-INCLUDES=$(CXXDEPENDINCLUDES) $(BROWSER_INCLUDES) $(MMDB_INCLUDES) $(LICENSE_L_INCLUDES)
+INCLUDES = $(CXXDEPENDINCLUDES) $(BROWSER_INCLUDES) \
+          $(MMDB_INCLUDES) $(LICENSE_L_INCLUDES) $(TIRPCINC)
 EXTRA_DEFINES=-DLICENSE_MANAGEMENT
 #else
 XCOMM Should remove LICENSE_L_INCLUDES from this list in this case
-INCLUDES=$(CXXDEPENDINCLUDES) $(BROWSER_INCLUDES) $(COMMON_CLASS_INCLUDES)
+INCLUDES = $(CXXDEPENDINCLUDES) $(BROWSER_INCLUDES) \
+          $(COMMON_CLASS_INCLUDES) $(TIRPCINC)
 #endif
 #include "Classlist.mk"
 
index b677c98aa4504646980fe293beeb469480e55495..58f7b15f06ca3e45d354f88bebd38e9dbc7fe8c6 100644 (file)
@@ -587,7 +587,7 @@ MessageAgent::get_integer (const char *message, const char* title,
 {
   if (f_dialog == NULL)
     create_ui(parent);
-    if (g_active)
+  if (g_active)
     return (100);
   g_active = TRUE;
 
index 5e1d52f643efb5763d28d216e26ce2618b115839..b452bf9e4fe6dee5e5474f3a0ec1b873bec40a4b 100644 (file)
@@ -97,7 +97,7 @@ OrderList::add(ListEntry *node, AddCode where, bool mvcursor)
     else
         return OLIST_ERROR;
 
-       f_size++;
+    f_size++;
 
     return OLIST_OK;
 }
index 89fb7cfa4d358656d1dd5b00f9544800c959eefd..56b7ed1be7de106ab2aa970066c5c1ef9ac3bb9f 100644 (file)
@@ -48,7 +48,8 @@ SYS_LIBRARIES=-lm -L$(XPROJECTROOT)/lib -L$(MPROJECTROOT)/lib
 SYS_LIBRARIES=-lm
 #endif
 
-INCLUDES = $(CXXDEPENDINCLUDES) -I. $(BROWSER_INCLUDES) $(MMDB_INCLUDES)
+INCLUDES = $(CXXDEPENDINCLUDES) -I. $(BROWSER_INCLUDES) $(MMDB_INCLUDES) \
+           $(TIRPCINC)
 
 OLIASNORMALLIBS= \
            Agents/libAgents.a \
index 287df9501b02092630974c36732b8fc013bea5ae..a5974149a94a1be1b1e712388b6b9ea05f83892c 100644 (file)
@@ -23,7 +23,8 @@ LIBNAME=Managers
 
 NormalCplusplusObjectRule()
 
-INCLUDES=$(CXXDEPENDINCLUDES) $(BROWSER_INCLUDES) $(COMMON_CLASS_INCLUDES)
+INCLUDES = $(CXXDEPENDINCLUDES) $(BROWSER_INCLUDES) \
+          $(COMMON_CLASS_INCLUDES) $(TIRPCINC)
 
 #include "Classlist.mk"
 
index e3a1ff5b3274afd3e57ed55ba60e4d5c5c1b4e7d..03bd8526e5ee0e40d4a3c87c692e2ff71eccffa3 100644 (file)
@@ -345,7 +345,7 @@ NodeMgr::load(UAS_Pointer<UAS_Common> &node_ptr)
     {
       style_sheet_mgr().initOnlineStyleSheet(node_ptr);
     }
-  mcatch_noarg (StyleSheetSyntaxError)
+  mcatch_noarg (StyleSheetSyntaxError&)
     {
       message_mgr().error_dialog(
                (char*)UAS_String(CATGETS(Set_Messages, 39, "File a Bug")));
index c97d4e51e695246f88bba03ad3b43425efd5fd8b..4bc633e17e27fe46db486f4af9b5a8ff4c6575af 100644 (file)
@@ -209,7 +209,7 @@ PrintMgr::load(UAS_Pointer<UAS_Common> &node_ptr)
     {
       style_sheet_mgr().initPrintStyleSheet(node_ptr);
     }
-  mcatch_noarg (StyleSheetSyntaxError)
+  mcatch_noarg (StyleSheetSyntaxError&)
     {
       message_mgr().error_dialog(
          (char*)UAS_String(CATGETS(Set_Messages, 39, 
index 7c1644fa5fcfa43bd3c95b62add4ae0af3d0315d..c77416eb26af9c0971b55111c5a129003423d7e3 100644 (file)
@@ -163,7 +163,7 @@ StyleSheetMgr::initOnlineStyleSheet (UAS_Pointer<UAS_Common> &doc) {
     mtry {
        styleparse ();
     }
-    mcatch_noarg (StyleSheetSyntaxError) {
+    mcatch_noarg (StyleSheetSyntaxError&) {
        fLastSS = 0;
        delete fCurrent;
        { //  Don't remove these curlies. For destructors before rethrow
@@ -221,7 +221,7 @@ StyleSheetMgr::initPrintStyleSheet (UAS_Pointer<UAS_Common> &doc) {
     mtry {
        styleparse ();
     }
-    mcatch_noarg (StyleSheetSyntaxError) {
+    mcatch_noarg (StyleSheetSyntaxError&) {
        fLastSS = 0;
        delete fCurrent;
        { //  Don't remove these curlies. For destructors before rethrow
index e801c3d3674d22297329864fa3e6cfd961664d45..cc17329785d750af4e12a5898f02c70161c3aa6b 100644 (file)
@@ -1,25 +1,3 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
 #define Set_CatMgr             1
 #define Set_DtSR_Parser                2
 #define Set_SearchMgr          3
index 7438f373f286a749af31cf0f7aa337af4decc1ee..3424c0350779ffe08330a877e13ae3ce27c47d08 100644 (file)
@@ -930,7 +930,7 @@ static int auxcolr(dat_ptr, cmd_ptr, cgm_s)
   case I_C_M:  cgm_s->auxcolr[3] = b_guint(&dat_ptr, cgm_s->cindprec);
     break;
   case D_C_M:  for (i=0; i<3; ++i) 
-    cgm_s->auxcolr[i] = b_gsint(&dat_ptr, cgm_s->colprec);
+                 cgm_s->auxcolr[i] = b_gsint(&dat_ptr, cgm_s->colprec);
     break;
   }
   return 1;
@@ -2334,10 +2334,10 @@ static int corient(unsigned char *dat_ptr,struct cmd_info_s *cmd_ptr,
   /* just 4 VDC's to grab */
   switch (cgm_s->vdctype) {
   case VDC_INT:        for (i=0; i<4; ++i) 
-    cgm_s->corient[i].i = b_gsint(&dat_ptr, cgm_s->vdcintprec);
+                 cgm_s->corient[i].i = b_gsint(&dat_ptr, cgm_s->vdcintprec);
     break;
-  case VDC_REAL:       for (i=0; i<4; ++i) 
-    cgm_s->corient[i].r = b_real(&dat_ptr, &(cgm_s->vdcrprec));
+  case VDC_REAL: for (i=0; i<4; ++i)
+                  cgm_s->corient[i].r = b_real(&dat_ptr, &(cgm_s->vdcrprec));
     break;
   }
   return 1;
index 0734809257aa94ed28251743d2088332085b149e..4862633eea118096a86d36b6a442d7c9c338dd08 100644 (file)
@@ -40,7 +40,7 @@ public:
   
   PosixError(int error_no, const char *msg)
   { f_errno = error_no;
-    *((char *) memcpy(f_msg, msg, MAXMSG+1) + MAXMSG+1) = '\0'; };
+    strncpy(f_msg, msg, MAXMSG+1); };
 
   const char *msg(void) const { return f_msg; };
   int error_no(void) const { return f_errno; };
index 532238b5be8023d76df9c0a1f7f54b6595ef6494..fa35fac4a8938577ae0c42c5ab8354c35bee0771 100644 (file)
@@ -3,7 +3,8 @@ DESKTOP_VERSION_STRING = DesktopVersionString
 
 KSH93SRC = ./ksh93
 DEPEND_DEFINES = $(DEPENDDEFINES)
-INCLUDES = -I. -I$(KSH93SRC)/include/ast -I$(KSH93SRC)/src/cmd/ksh93/include -I$(KSH93SRC)/src/cmd/ksh93
+INCLUDES = -I. -I$(KSH93SRC)/include/ast -I$(KSH93SRC)/src/cmd/ksh93/include \
+          -I$(KSH93SRC)/src/cmd/ksh93 $(TIRPCINC)
 
 /* DEPLIBS contains the list of library depencies for a client.
  * LOCAL_LIBRARIES contains the list of libraries on the link line.
index 9298d81c6228ac83ed6bd645998bc8cde0177ae7..f9fe6e7c008984a34f97094e5018b5ae6feaec43 100644 (file)
@@ -11,7 +11,7 @@ DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES)
 
 #include <Threads.tmpl>
 
-INCLUDES = -I../include/MotifApp -I../include -I../include/utils
+INCLUDES = -I../include/MotifApp -I../include -I../include/utils $(TIRPCINC)
 
 #ifndef DtMailDefines
 # define DtMailDefines
index a360597a592d338357edfb33aed61a27209b5260..d912e86fd1be30a6678510becce2e0d5bc7d81d4 100644 (file)
@@ -6,7 +6,8 @@ EXTRA_LOAD_FLAGS = ExtraLoadFlags $(UNSHARED_CXXLIB)
 
 INCLUDES = -I. -I../include -I../include/MotifApp \
           -I../include/utils -I../include/DtMail \
-          -I../libDtMail/RFC -I$(CDELIBSRC) -I$(DTHELPSRC) $(STD_INCLUDES)
+          -I../libDtMail/RFC -I$(CDELIBSRC) -I$(DTHELPSRC) \
+          $(STD_INCLUDES) $(TIRPCINC)
 
 #ifndef DtMailDefines
 # define DtMailDefines
index 929d49fe89d56059bb4f0402b5a973169bb61b7d..1b3cba6622318aada68592ab0210e892246764f9 100644 (file)
@@ -5,7 +5,7 @@ DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES)
 EXTRA_LOAD_FLAGS = ExtraLoadFlags $(UNSHARED_CXXLIB)
 
 INCLUDES = -I. -I../include -I../../dtcompat -I../../../. \
-          -I$(CDELIBSRC) $(STD_INCLUDES)
+          -I$(CDELIBSRC) $(STD_INCLUDES) $(TIRPCINC)
 
 #ifndef DtMailDefines
 # define DtMailDefines
index 59fe0bdcfda92446f6f9c73ef680d9cbeb90f8d7..c934ebeda4634a1e35e5a72f2610c31b9ccbf1e7 100644 (file)
@@ -12,7 +12,8 @@ DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES)
 
 #include <Threads.tmpl>
 
-INCLUDES = -I. -I../../include -I../../include/utils -I$(CDELIBSRC) $(STD_INCLUDES)
+INCLUDES = -I. -I../../include -I../../include/utils -I$(CDELIBSRC) \
+          $(STD_INCLUDES) $(TIRPCINC)
 
 #if HasVFork
 VFORK_DEFINES = -DHAS_VFORK
index 410ea57ececb5c293bb9f4412b13fc1f8c1d9a97..fee03962e6359a9fc9464bdc38a46abdeae23dde 100644 (file)
@@ -12,7 +12,8 @@ DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES)
 
 #include <Threads.tmpl>
 
-INCLUDES = -I. -I../Common -I../../include -I../../include/utils -I$(CDELIBSRC) $(STD_INCLUDES)
+INCLUDES = -I. -I../Common -I../../include -I../../include/utils \
+          -I$(CDELIBSRC) $(STD_INCLUDES) $(TIRPCINC)
 
 #if HasVFork
 VFORK_DEFINES = -DHAS_VFORK
index 600b2b65dafbc71febd7dd24739b31dfd404108d..b4300dec95974970a1923b620300fc4e40d6fe1b 100644 (file)
@@ -2,6 +2,7 @@ XCOMM $XConsortium: Imakefile /main/11 1996/09/14 15:16:29 drk $
 
 DEPEND_DEFINES = $(DEPENDDEFINES)
 DEFINES = -DDT_LITE -DWORDWRAP -UNLS16
+INCLUDES = $(TIRPCINC)
 
 DEPLIBS = DepDtClientLibs
 LOCAL_LIBRARIES = DtClientLibs
index 8801e865ee8508c565de2d783e53f13fc7038e05..7e47ea4751c53e19ae02462811d0925dddf36189 100644 (file)
@@ -4,7 +4,7 @@ XCOMM $TOG: Imakefile /main/15 1998/08/05 13:21:49 mgreess $
 DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES)
 EXTRA_LOAD_FLAGS = ExtraLoadFlags $(UNSHARED_CXXLIB)
 
-INCLUDES = -I. -I../libCliSrv
+INCLUDES = -I. -I../libCliSrv $(TIRPCINC)
 
 LOCAL_LIBRARIES = ../libCliSrv/libCliSrv.a $(TTLIB) $(XTOOLLIB) $(XLIB)
 DEPLIBS = ../libCliSrv/libCliSrv.a $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
index c844ed5aa7c4e4583714a3ea9a77521c7e4b9e4c..6142db188c4f9e346c91e4deeb74bbe256247e12 100644 (file)
@@ -10,7 +10,7 @@ XCOMM $TOG: Imakefile /main/5 1998/08/05 13:22:12 mgreess $
 #define CplusplusSource        YES
 DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES)
 
-INCLUDES = -I.
+INCLUDES = -I. $(TIRPCINC)
 
 #ifdef SunArchitecture
 SYS_LIBRARIES = -ldl -lintl
index b00ccd39739af1046f118438598d76bae558a469..1931b63562500c7779d0fcde17c6565976f84ceb 100644 (file)
@@ -2,7 +2,7 @@ XCOMM $TOG: Imakefile /main/11 1999/02/26 11:29:47 mgreess $
 
 DEFINES = -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \
          -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\"
-INCLUDES = -I. -I$(DTHELPSRC)
+INCLUDES = -I. -I$(DTHELPSRC) $(TIRPCINC)
 
 #ifdef HPArchitecture
 EXTRA_DEFINES = -D_XOPEN_SOURCE -D__hpux_8_0 -DFUNCPROTO
index 4f54ecec11a5ae5c4bac9f87619e7b62084b9c08..8af15c18eba038be997209c73398a276518934dc 100644 (file)
@@ -3,7 +3,7 @@ XCOMM $XConsortium: Imakefile /main/8 1996/09/14 15:25:06 drk $
 DEPEND_DEFINES = $(DEPENDDEFINES)
 DEFINES = -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
           -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
-INCLUDES = -I. -I$(DTHELPSRC)/..
+INCLUDES = -I. -I$(DTHELPSRC)/.. $(TIRPCINC)
 
 DEPLIBS = DepDtClientLibs
 LOCAL_LIBRARIES = DtClientLibs
index 4c5f45a02349feb81d8556474ffa85943a597638..844494151df4c41f428a4d3e2e72c9551998c051 100644 (file)
@@ -49,7 +49,8 @@ LOCAL_LIBRARIES = $(DTTERMLIB) $(USE_XHPLIB) $(XINPUTLIB) $(HELPLIB) \
        $(XMLIB) $(XTOOLLIB) $(XLIB) $(UTILLIB)
 SYS_LIBRARIES = DtClientSysLibs
 
-INCLUDES = -I. -I$(DTTERMSRC)/TermPrim -I$(DTTERMSRC)/Term -I$(DTTERMSRC)/TermView
+INCLUDES = -I. -I$(DTTERMSRC)/TermPrim -I$(DTTERMSRC)/Term \
+          -I$(DTTERMSRC)/TermView $(TIRPCINC)
 
 SRCS = \
        DtTermLogit.c \
index 74ec914de58310eba6e38f473f7e484f10a278c3..82a67739d6b2db745ba30bfd20f6b3099bee39cf 100644 (file)
@@ -13,6 +13,7 @@ DTWMDEFINES = -DWSM -DPANELIST
 
 DEPEND_DEFINES = $(DEPENDDEFINES)
 DEFINES = $(MWMDEFINES) $(DTWMDEFINES) -DMULTIBYTE -DMINIMAL_DT
+INCLUDES = $(TIRPCINC)
 
 DEPLIBS = DepDtClientLibs
 LOCAL_LIBRARIES = DtClientLibs -lDtXinerama
index 8b3031029414f2b15644bcb4b8f0200e2fd53fca..3bde4cefd14f195785d2c731e92df453464f0d6d 100644 (file)
@@ -6,6 +6,7 @@ UTILLIB = -lutil
 
 #define CplusplusSource        YES
 DEPEND_DEFINES = $(CXXDEPENDINCLUDES)
+INCLUDES = $(TIRPCINC)
 EXTRA_LOAD_FLAGS = ExtraLoadFlags $(UNSHARED_CXXLIB)
 
 DEPLIBS = $(DEPDTTERMLIB) DepDtClientLibs $(DEPUTILLIB)