1. can we move such questions to 
sapdb.sources?(http://listserv.sap.com/mailman/listinfo/sapdb.sources)

2. patches follow, explanation at the end for those interested

--- veo38.cpp.7.04.03.07        Fri Jan 24 12:33:13 2003
+++ veo38.cpp           Mon Sep 30 16:49:56 2002
@@ -2250,8 +2250,9 @@
       {
         char dmp_buf[132];
         MSGD ((ERR_DCOM_HRESULT, "eo38VDcomTransEnd: Error calling sysRequest", rc ));
-        sprintf(dmp_buf,"mtype: %X  mtype2: %X ", param_stack->lpbuf->msg.mtype,
-            param_stack->lpbuf->msg.mtype2 ); 
+        sprintf(dmp_buf,"mtype: %X  mtype2: %X ", 
+                (int) param_stack->lpbuf->msg.mtype,
+                (int) param_stack->lpbuf->msg.mtype2 ); 
         MSGD ((ERR_DCOM_DUMP_INFO,dmp_buf));
         hr = GEO00D_DCOM_TRANSEND_FAILED;       /* pts 1105922 FF 10-Mar-2000 */
         /*if ( !hr ) hr = parms->hresult;          pts 1105922                */

--- veo964.cpp.7.4.03.07        Fri Jan 24 13:22:42 2003
+++ veo964.cpp  Mon Sep 24 18:42:15 2001
@@ -97,7 +97,7 @@
         bool ShowOk ;
         do
           if ( (ShowOk = fgets ( line, MAX_LINE_LEN , stream ) != NULL) )
-            printf ("%s", line ) ;
+            printf ("%s", line.asCharp () ) ;
         while ( ShowOk ) ;
         fclose ( stream ) ;
     }

Explanation:

param_stack->lpbuf->msg.mtype and line are C++ objects that are designed to look like 
enum and char [] respectively. They have the proper conversion operators for the 
common uses. But of course when passed to a varargs list, the compiler doesn't know 
that the conversion has to be called. gcc 3.2 seems to be more strict in that regard, 
but it was in error all along.

Daniel Dittmar

-- 
Daniel Dittmar
SAP DB, SAP Labs Berlin
[EMAIL PROTECTED]
http://www.sapdb.org/


> -----Original Message-----
> From: Post, Mark K [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 24, 2003 3:30 AM
> To: 'sapdb'; Carpenter, Jim; Clark, Stephen; Jessen, Per; Mollet, Sean
> Subject: Linux/390: Compilation Errors in veo38.cpp and veo964.cpp
> 
> 
> We've re-started work on the port, and I ran into something 
> new at least.
> Any ideas on what's causing these errors?
> 
> 
> vsp002c
> hen38.h
> veo38.cpp fast
> veo38.cpp: In function `void 
> eo38VDcomTransEnd(tsp_dcom_dispatch_parms*)\
> ':
> veo38.cpp:2254: cannot pass objects of non-POD type `class 
> tgg00_MessTy\
> pe'
>    through `...'
> veo38.cpp:2254: cannot pass objects of non-POD type `class 
> tgg00_MessTy\
> pe2'
>    through `...'
> Error while executing "c++ -DREL30 -DLINUX -DS390 -DSAG 
> -I/home/mark/V7\
> 4_03_07/SAPDB_ORG/usr/incl 
> -I/home/mark/V74_03_07/SAPDB_ORG/sys/wrk/incl\
>  -I/home/mark/V74_03_07/SAPDB_ORG/sys/wrk/incl/SAPDB -DSYSV 
> -D_SVID -I/u\
> sr/include/ncurses -w -Wall -D_FILE_OFFSET_BITS=64 -DUSE_KGS 
> -DSAPDB_FAS\
> T -D_REENTRANT -O -I/home/mark/DevTool/incl -c veo38.cpp"
> message:
> COMMAND error 1
> heo78.h
> ven36.cpp fast
> 
> 
> 
> aixterm-m.ti
> uslxterm.ti
> uslxterm.hif
> !cp $OWN/sys/wrk/incl/heo130.h $INSTROOT/incl/xuserapi.h
> veo964.cpp fast
> veo964.cpp: In function `void ShowAndRemoveNiErrorTrace(int)':
> veo964.cpp:106: cannot pass objects of non-POD type `class 
> tsp00_Pathc'\
>  through
>    `...'
> Error while executing "c++ -DREL30 -DLINUX -DS390 -DSAG 
> -I/home/mark/V7\
> 4_03_07/SAPDB_ORG/usr/incl 
> -I/home/mark/V74_03_07/SAPDB_ORG/sys/wrk/incl\
>  -I/home/mark/V74_03_07/SAPDB_ORG/sys/wrk/incl/SAPDB -DSYSV 
> -D_SVID -I/u\
> sr/include/ncurses -w -Wall -D_FILE_OFFSET_BITS=64 
> -DSAPDB_FAST -D_REENT\
> RANT -O -I/home/mark/DevTool/incl -c veo964.cpp"
> message:
> COMMAND error 1
> 'x_ping.lnk' not made because of dependency errors
> veo999sysrc.c fast
> sysrc.lnk fast
> 'allrte.mac' not made because of dependency errors
> 
> 
> Mark Post
> _______________________________________________
> sapdb.general mailing list
> [EMAIL PROTECTED]
> http://listserv.sap.com/mailman/listinfo/sapdb.general
> 
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to