BUGFIX: NMBD_NAMEQUERY.C and MSDFS.C from Jul 9th CVS snapshot.

John E. Malmberg malmberg at Encompasserve.org
Tue Jul 10 13:59:28 GMT 2001


The following changes were needed to get SAMBA 2.2.x Jul 9th CVS snapshot
to compile on OpenVMS 7.2-1 Alpha using Compaq C Version 6.4-005.

Note that this is just for compiling.  I still have a bit of work to do to
get it to actually run.

Compaq C is common to Tru-64 Unix, Linux on Alpha, and OpenVMS.

-----------------
NMBD_NAMEQUERY.C

The variable answer_ip can be referenced in a debug statement without it
being initialized.  Compaq C detects this and stopped the build.

NMBD_NAMEQUERY_C.DIFF

************
File PROJECT_ROOT:[SAMBA_VMS.SOURCE]NMBD_NAMEQUERY.C;1
   43     /* Ensure we don't retry the query but leave the response record cleanup
******
File PROJECT_ROOT:[SAMBA_VMS.SOURCE.NMBD]NMBD_NAMEQUERY.C;3
   43     answer_ip.S_un.S_addr = 0; /* JEM */
   44
   45     /* Ensure we don't retry the query but leave the response record cleanup
************

Number of difference sections found: 1
Number of difference records found: 2

DIFFERENCES /IGNORE=()/MERGED=1/OUTPUT=PROJECT_ROOT:[SAMBA_VMS.SOURCE]NMBD_NAMEQUERY_C.DIFF;1-
    PROJECT_ROOT:[SAMBA_VMS.SOURCE]NMBD_NAMEQUERY.C;1-
    PROJECT_ROOT:[SAMBA_VMS.SOURCE.NMBD]NMBD_NAMEQUERY.C;3

--------------


MSDFS.C


On Compaq C, (char *) and (unsigned char *) are not compatable.

MSDFS_C.DIFF
************
File PROJECT_ROOT:[SAMBA_VMS.SOURCE]MSDFS.C;1
  374   	requestedpathlen = (dos_struni2(uni_requestedpath,pathname,512)+1)*2;
  375
  376   	dump_data(10,uni_requestedpath,requestedpathlen);
  377
******
File PROJECT_ROOT:[SAMBA_VMS.SOURCE.MSDFS]MSDFS.C;1
  374   	requestedpathlen = (dos_struni2((char *)uni_requestedpath,pathname,512)+1)*2;
  375
  376   	dump_data(10,(char *)uni_requestedpath,requestedpathlen);
  377
************
************
File PROJECT_ROOT:[SAMBA_VMS.SOURCE]MSDFS.C;1
  466   	reqpathlen = (dos_struni2(uni_reqpath,pathname,512)+1)*2;
  467
  468   	dump_data(10,uni_reqpath,reqpathlen);
  469
******
File PROJECT_ROOT:[SAMBA_VMS.SOURCE.MSDFS]MSDFS.C;1
  466   	reqpathlen = (dos_struni2((char *)uni_reqpath,pathname,512)+1)*2;
  467
  468   	dump_data(10,(char *)uni_reqpath,reqpathlen);
  469
************

Number of difference sections found: 2
Number of difference records found: 6

DIFFERENCES /IGNORE=()/MERGED=1/OUTPUT=PROJECT_ROOT:[SAMBA_VMS.SOURCE]MSDFS_C.DIFF;1-
    PROJECT_ROOT:[SAMBA_VMS.SOURCE]MSDFS.C;1-
    PROJECT_ROOT:[SAMBA_VMS.SOURCE.MSDFS]MSDFS.C;1


-John
wb8tyw at qsl.network
Personal Opinion Only





More information about the samba-technical mailing list