From: malmberg@eisner.decus.org Sent: Wednesday, November 08, 2000 1:53 PM To: Info-VAX@Mvb.Saic.Com Subject: Re: Where's C's PRV$M_READALL & _GRPPRV ? In article <3A096D60.43345936@CCAgroup.co.uk>, Chris Sharman writes: > Trying to build/install John Malmberg's FRONTPORT on > our Alpha (DECC V6.2-008, VMS 7.1). > > It fails, complaining about PRV$M_READALL & PRV$M_GRPPRV. > Other PRV$M_whatever symbols are OK. > > $ lib/tex/extr=prvdef sys$share:sys$starlet_c/out=prvdef.h > > gives me a module which is indeed missing the masks > for the bits in the second longword. > > The library was created Jun-98, last updated Jun-99. > The PRVDEF module was inserted 25-Nov-96. > > I've installed patches ALPACRT08_071 & CCAE02_062. Thank you for the feedback. Apparently the symbols were not added to starlet until OpenVMS 7.2. If you look in the module that the compiler is complaining about, you will see that there is alternative code for the VAX architecture that does not expect to be able to handle 64 bit masks. My VAX is running 7.1, and my Alpha Multia is running 7.2. The VAX did not show the symbols, and since the DEC C 6.0 compiler for VAX did not admit to being able to handle 64 bit masks, I wrote a separate version of the code for VAX. I made the assumption that the missing symbols were only defined for the ALPHA architecture. I will make a note of this for a potential future update to FRONTPORT to put in a #define PRV$M_READALL and PRV$M_GRPPRV if they are not already defined. I would also warn you that the FPORT_DL* rountines may not compile and link on OpenVMS Alpha either. If so, for now just modify them to compile clean and ignore them. The next update (that may be a while) will be to rewrite the fport_dl*() routines to use LIB$FIND_IMAGE_SYMBOL so that they will work with versions of OpenVMS earlier than 7.2. SAMBA 2.0.6 does not use the FPORT_DL* routines. The FRONTPORT kits were also missing a header file HISTORY.H. It is only an empty file. A replacement for it is at http://eisner.decus.org/~malmberg/frontport/ The HISTORY.H is not needed for building or using the FRONTPORT library. It is needed for building SAMBA. A bug has just turned up in the SAMBA 2.0.6 UN*X source code that a patch for has been posted on the SAMBA-TECHNICAL or SAMBA-VMS mailing list, that did not show up in my testing on ALPHA. It should be in their archives at http://www.samba.org for non-subscribers. The bug may show up with TCP/IP versions other than Compaq TCPIP 5.0. It showed up on the VAX version, which even with that fixed is still suffering from an apparent data overrun problem that I am currently assuming is a problem in lib_xfer.mar. I do not know if the found SAMBA bug only showed up because of the buffer overrun problem in the VAX version, or if it could show up with other TCP/IP stacks. At this time I can not troubleshoot it further as I must shutdown my home VMS systems for a few months in preparation for relocation. -John wb8tyw@qsl.network malmberg@eisner.decus.organization