Author Topic: Compiling Tookit WPS applications  (Read 5161 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4713
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Compiling Tookit WPS applications
« on: May 31, 2019, 05:05:05 pm »
Hi.

I'm trying to compile the OS/2 Toolkit 4.5 WPS samples as a learning experience.
I had started with the "car" sample first.

I just did a quick "nmake car.mak >out.txt" and I got this errors:

Code: [Select]
{2}[D:\Projects\WPS_Sample_Kit\Cool\car] nmake car.mak >out.txt
warning EDC0000: Message system initialization, unable to open catalogs: cppcfe3
6.cat.
warning EDC0000: Error in message set 1, unable to retrieve message 1505.
warning EDC0000: Error in message set 1, unable to retrieve message 1506.
warning EDC0000: Error in message set 1, unable to retrieve message 1507.
warning EDC0000: Error in message set 1, unable to retrieve message 1508.
warning EDC0000: Error in message set 1, unable to retrieve message 1509.
warning EDC0000: Error in message set 1, unable to retrieve message 1509.
warning EDC0000: Error in message set 1, unable to retrieve message 1503.

warning EDC0000: Message system initialization, unable to open catalogs: cppcfe3
6.cat.
warning EDC0000: Error in message set 1, unable to retrieve message 224.
warning EDC0000: Error in message set 1, unable to retrieve message 236.
warning EDC0000: Error in message set 1, unable to retrieve message 224.
warning EDC0000: Error in message set 1, unable to retrieve message 224.
warning EDC0000: Error in message set 1, unable to retrieve message 224.
NMAKE : fatal error U1077: 'C:\SYS\APPS\4OS2\4OS2.EXE' : return code '1'
Stop.


out.txt

Code: [Select]


Operating System/2 Program Maintenance Utility

Version 4.00.001 Oct  4 2001

Copyright (C) IBM Corporation 1988-2001

Copyright (C) Microsoft Corp. 1988-1991

All rights reserved.

sc -p -mnotc -maddstar -mnoint -S128000 -C128000 -s"def"  car.idl
sc -p -mnotc -maddstar -mnoint -S128000 -C128000 -s"ih"   car.idl
sc -p -mnotc -maddstar -mnoint -S128000 -C128000 -s"h"    car.idl
icc -c -Gd- -Se -Re -Ss -Ms -Gm+  -Ge- -I. -Fo".\car.obj" car.c
rc -r car.rc .\car.res
Compile ending.
IBM RC (Resource Compiler) Version 5.00.007 Jan 30 2003

Copyright (C) IBM Corp. 2003.

- Licensed Materials - Program Property of IBM - All Rights Reserved.

US Government Users Restricted Rights - Use, duplication or disclosure

restricted by GSA ADP Schedule Contract with IBM Corp.




RC :(C:\Ibmcxxo\INCLUDE\string.h:43:14):Warning 2179:#undef appeared with an unknown macro name. [__COMPATSTR__]
RC :(C:\OS2TK45\SOM\INCLUDE\somobj.h:14:17):Warning 2180:You specified an include filename recursively. [File:C:\OS2TK45\SOM\INCLUDE\som.h was included in file:.\car.h, at line:32]
RC :(C:\OS2TK45\SOM\INCLUDE\somcls.h:14:17):Warning 2180:You specified an include filename recursively. [File:C:\OS2TK45\SOM\INCLUDE\som.h was included in file:.\car.h, at line:32]
RC :(C:\OS2TK45\SOM\INCLUDE\somcm.h:19:17):Warning 2180:You specified an include filename recursively. [File:C:\OS2TK45\SOM\INCLUDE\som.h was included in file:.\car.h, at line:32]
RC :(C:\OS2TK45\H\wpobject.h:867:22):Warning 2180:You specified an include filename recursively. [File:C:\OS2TK45\H\wpobject.h was included in file:C:\OS2TK45\H\wpfsys.h, at line:41]
RC :(C:\OS2TK45\H\wpfsys.h:172:20):Warning 2180:You specified an include filename recursively. [File:C:\OS2TK45\H\wpfsys.h was included in file:C:\OS2TK45\H\wpdataf.h, at line:46]
RC :(C:\OS2TK45\H\wpdataf.h:104:21):Warning 2180:You specified an include filename recursively. [File:C:\OS2TK45\H\wpdataf.h was included in file:.\car.h, at line:47]
RC :(.\car.h:160:15):Error 2069:You redefined a macro name with different replacement text. [DebugBox]
RC :(car.rc:131:5):Error 1009:RC detected errors during compilation.


Just in case this is my environment versions in case there are something newer/better and the source code:
(Picture Attached)

Any ideas what I'm doing wrong with CAR ?

Regards
« Last Edit: May 31, 2019, 07:40:04 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Lars

  • Hero Member
  • *****
  • Posts: 1271
  • Karma: +65/-0
    • View Profile
Re: Compiling Tookit WPS applications
« Reply #1 on: May 31, 2019, 11:33:11 pm »
The makefile was written for either CSet or VAC 3.
But you are using VAC 3.65. You are on your own but it surely can be fixed. Also looks like your DPATH does not contain all necessary paths for the VAC 3.65 compiler/linker.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4713
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Compiling Tookit WPS applications
« Reply #2 on: June 04, 2019, 04:32:08 pm »
The makefile was written for either CSet or VAC 3.
But you are using VAC 3.65. You are on your own but it surely can be fixed. Also looks like your DPATH does not contain all necessary paths for the VAC 3.65 compiler/linker.

Hi Lars.

Do you mean that I'm using a wrong version of nmake.exe or that the icc compiler should also give problems? I still do not get to the icc compiler on the make process.

I'm checking the DPATH. I'm using the "C:\Ibmcxxo\bin\setenv.cmd" file to set the environment.

 SET DPATH=%CXXMAIN%\HELP;%CXXMAIN%\LOCALE;%DPATH%

I tried including the /MSG directory on DPATH, since the cppcfe36.cat file is there.

 SET DPATH=%CXXMAIN%\HELP;%CXXMAIN%\MSG;%CXXMAIN%\LOCALE;%DPATH%

It didn't work, I also tried the path with the same results.

I think I will rebuild again my development VM before trying again.

Regards



« Last Edit: June 04, 2019, 05:16:43 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4713
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Compiling Tookit WPS applications
« Reply #3 on: June 04, 2019, 05:55:08 pm »
I got rid of the "warning EDC0000: " messages.

Here it is the error right now.
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Lars

  • Hero Member
  • *****
  • Posts: 1271
  • Karma: +65/-0
    • View Profile
Re: Compiling Tookit WPS applications
« Reply #4 on: June 04, 2019, 09:11:42 pm »
This WPS sample is so fucked up that you will have to use the old RC version 4.00 (find as RC16.EXE in the toolkit) instead of the newer version 5.00. That'll eliminate the RC errors you are seeing.
It's even more fucked up in that it links in the incorrect libraries. Once you fix that it still does not work all the way. It'll load but it will not display the properties dialog etc.

The best you can do is to rewrite the makefile. And then, to rewrite parts of the code ...



xynixme

  • Guest
Re: Compiling Tookit WPS applications
« Reply #5 on: June 05, 2019, 12:53:04 am »
FWIW, it also doesn't compile out-of-the-box with VAC 3.08. A.o. possibly the same #pragma errors.