home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / vmsnet / vmsposi / 32 < prev    next >
Encoding:
Text File  |  1992-09-03  |  2.7 KB  |  72 lines

  1. Newsgroups: vmsnet.vms-posix
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!eql.caltech.edu!rankin
  3. From: rankin@eql.caltech.edu (Pat Rankin)
  4. Subject: Re: How do *you* port applications in vms_posix?
  5. Message-ID: <3SEP199217525047@eql.caltech.edu>
  6. News-Software: VAX/VMS VNEWS 1.41    
  7. Sender: news@cco.caltech.edu
  8. Nntp-Posting-Host: eql.caltech.edu
  9. Organization: California Institute of Technology
  10. References: <1992Sep3.152821.9632@ncar.ucar.edu>
  11. Date: Fri, 4 Sep 1992 00:52:00 GMT
  12. Lines: 58
  13.  
  14. [Note to hyper-attentive readers:  this reply was actually composed in
  15.  response to a similar posting in comp.os.vms; the quoted text reflects
  16.  that other message rather than the one I'm following up here.]
  17.  
  18. In article <1992Sep3.152821.9632@ncar.ucar.edu>,\
  19.  pack@acd.acd.ucar.edu (Daniel Packman) writes...
  20. > Has anyone tried porting a unix application within the VMS_POSIX
  21. > environment?
  22.  
  23.      I ported GAWK; the first thing I did was add -UVMS to CFLAGS in the
  24. Unix Makefile, in order to throw out all the existing VMS-specific code.
  25. After that, only a handful of minor changes were needed.  (I haven't tried
  26. to tackle anything more ambitious yet.)
  27.  
  28. > The installation creates some files in /usr/include, but certainly not
  29. > all of them.  Some include files, particularly for X11 have mixed case.
  30. > Has anyone copied these to /usr/include/X11 and renamed them to
  31. > correspond to standard mixed case?
  32.  
  33.      There's no need to move any of the DECwindows related header files
  34. into the container file environment.  Lack of case sensitivity in the
  35. VMS file environment will not pose a problem unless you try to have two
  36. different files whose names differ in case only.  (Not likely with C,
  37. but I gather that C++ typically introduces such problems.)
  38.  
  39. > Any tips on effective use of this environment will be appreciated.
  40.  
  41. I just tested the following:
  42.  |$ create foo.c
  43.  |#include <X11/X.h>
  44.  |long foo(void) { return KeyPressMask; }
  45.   ^Z
  46.  |$ set proc/priv=grpnam
  47.  |$ define/group x11 decw$include:
  48.  |$ posix
  49.  |psx> c89 -E foo.c | grep '..'
  50.  
  51. And got back
  52.  |# 1 "_LIZARD$DKA100:[USER.RANKIN]_1_2020036E_FOO.C;1"
  53.  |#module foo
  54.  |# line 0 "foo.c"
  55.  |# 1 "SYS$COMMON:[DECW$INCLUDE]X.H;1"
  56.  |typedef unsigned long XID;
  57.  |typedef XID Window;
  58.   [ several other typedefs omitted ]
  59.  |
  60.  |# 1 "foo.c"
  61.  |# line 2 "foo.c"
  62.  |long foo(void) { return (1L<<0); }
  63.  |psx>
  64.  
  65. This just illustrated that headers not found within POSIX can still be
  66. found "normally" when c89 uses DCL is used to execute VAXC.  There's a
  67. section in the release notes which decribes how to compile and link
  68. POSIX applications with DECwindows; it evidently requires that you do so
  69. from the VMS environment rather than from within POSIX.
  70.  
  71.         Pat Rankin, rankin@eql.caltech.edu
  72.