RE: Linux/390: Compilation Errors in veo38.cpp and veo964.cpp

"Post, Mark K" <[email protected]> Fri, 24 Jan 2003 10:47:07 -0500
Newsgroups gmane.comp.db.sapdb.sources
Message-ID <564DE4477544D411AD2C00508BDF0B6A12F0BB38@usahm018.exmi01.exch.eds.com>
Daniel,

Of course.  You never mentioned that before, so I just kept sending these
reports to the same list.

After I sent the original message, the build proceeded, and I saw lots more
of these errors.  They are all going to need to be fixed.  Is there a place
we can find patches for all of them?  Or do we just report them all to you?
Something else??

Mark Post

-----Original Message-----
From: Dittmar, Daniel [mailto:[email protected]]
Sent: Friday, January 24, 2003 7:32 AM
To: 'Post, Mark K'; 'sapdb'; Carpenter, Jim; Clark, Stephen; Jessen,
Per; Mollet, Sean
Subject: RE: Linux/390: Compilation Errors in veo38.cpp and veo964.cpp


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
>