Platform: Compaq OpenVMS Alpha 7.3 Compiler: Compaq C T6.5 The following patch resolves compile problems with the HLINK.C module. The cast on function argument for the qsort() routine was wrong, and not allowing the compile to complete. When the function definiton of the hlink_compare() is corrected to have the const qualifiers, the cast inside the qsort() function call is no longer needed. -John wb8tyw@qsl.network Personal Opinion Only EAGLE> gdiff -u ref_src:hlink.c lcl_src:hlink.c_unix --- ref_src:hlink.c Sat Jan 5 13:27:03 2002 +++ lcl_src:hlink.c_unix Sat Jan 12 19:28:00 2002 @@ -23,7 +23,8 @@ extern int verbose; #if SUPPORT_HARD_LINKS -static int hlink_compare(struct file_struct *f1,struct file_struct *f2) +static int hlink_compare + (const struct file_struct *f1, const struct file_struct *f2) { if (!S_ISREG(f1->mode) && !S_ISREG(f2->mode)) return 0; if (!S_ISREG(f1->mode)) return -1; @@ -60,7 +61,7 @@ qsort(hlink_list,flist->count, sizeof(hlink_list[0]), - (int (*)())hlink_compare); + (hlink_compare); hlink_count=flist->count; #endif
Make fails with "make: fatal error: line 65: Syntax error." when building on a Fujitsu VPP system (system_V). Make doesn't like the continuation to a blank line for LIBOBJ. Distribution version: LIBOBJ=lib/fnmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o \ lib/permstring.o \ ZLIBOBJ=zlib/deflate.o zlib/infblock.o zlib/infcodes.o zlib/inffast.o \ zlib/inflate.o zlib/inftrees.o zlib/infutil.o zlib/trees.o \ zlib/zutil.o zlib/adler32.o Corrected version: LIBOBJ=lib/fnmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o \ lib/permstring.o ZLIBOBJ=zlib/deflate.o zlib/infblock.o zlib/infcodes.o zlib/inffast.o \ zlib/inflate.o zlib/inftrees.o zlib/infutil.o zlib/trees.o \ zlib/zutil.o zlib/adler32.o Terry ----- -- +-------------------+----------------------------------+---------------------+ | Terry Raggett | | /~~\ /~~\ | | ECMWF | e-mail: terry.raggett@ecmwf.int | / \/ \ | | Shinfield Park | Tel: (+44 118) 949 9358 | ECMWF ECMWF | | Reading | Fax: (+44 118) 986 9450 | ECMWF ECMWF | | Berkshire RG2 9AX | Telex: (+44 118) 984 7908 | \ /\ / | | England | | \__/ \__/ | +-------------------+----------------------------------+---------------------+ | ECMWF is the European Centre for Medium-Range Weather Forecasts | +----------------------------------------------------------------------------+