From: John E. Malmberg [wb8tyw@qsl.net] Sent: Wednesday, November 15, 2000 9:04 PM To: Info-VAX@Mvb.Saic.Com Subject: Re: SAMBA and VMS "Craig A. Berry" wrote in message news:8uv4t1$1ou$1@nnrp1.deja.com... > In article , > wb8tyw@qsl.network (John E. Malmberg) wrote: > > > I do not know if the binaries at the site will link on OpenVMS 6.2. > > > > I do not know if the source will compile on OpenVMS 6.2 if the > > link does not work. > > John, > > I haven't had a chance to try SAMBA but I've browsed the > FRONTPORT code looking for things we might want to borrow > for Perl. The code is neat, clean, well-commented, and > generally impressive. Thank you! The goal in it's implementation is to allow the building of UNIX programs with out modifying the source at all. SAMBA is a good torture test of a C RTL. > At first blush, though, it does look > like there will be a couple of problems building and linking > on pre-7.x systems. I've recently become painfully aware > that rmdir() and truncate() tend not to be available in older > C RTLs, i.e., those that shipped before OpenVMS 7.0. I did > notice that you use these routines though I haven't built the > library on an older system. People on 6.x who have installed > a recent C compiler or otherwise upgraded the C RTL might be > ok, but I don't know exactly when these routines became > available. Yes, according to http://www.openvms.compaq.com/commercial/c/5763p064.htm#depend_v70 The rmdir() and truncate() functions are not available prior to OpenVMS 7.0. They are implemented in the backport library DECC$CRTL.OLB that ships with the DEC C compiler, otherwise alternatives can be coded. The FRONTPORT.MMS build script has a parameter option that will cause it to link against the backport library inside of it. I am not sure that I put it in the LINK_FRONTPORT.COM routine. The rmdir() can be synthisized with a delete call. The truncate() routine would need a bit more coding, probably using RMS routines. If someone else does not code up these routines, I will keep this in mind for a potential future version. Regards, -John wb8tyw@qsl.network