[OpenAFS-devel] Compiling openafs cvs checkout on dux_51 (Was:
RE: [OpenAFS-devel] Testers needed for Prototypes cvs branch ofopenafs)
Martin MOKREJŠ
mmokrejs@natur.cuni.cz
Thu, 25 Apr 2002 15:11:10 +0200 (CEST)
Hi,
this is getting long. As I'm new to this list and won't help you much
with the development (coding), I can do only the testing work. I guess you
expect the error files to lookup on web, so will I do next time.
On 25 Apr 2002, Mattias Amnefelt wrote:
> Martin MOKREJŠ <mmokrejs@natur.cuni.cz> writes:
>
> > case alpha_dux51 in *_linux* ) cc -O2 -I/scratch/mokrejs/openafs/include -I/scratch/mokrejs/openafs/src/config -I. -I. -O2 -o compile_et compile_et.o error_table.o -L/scratch/mokrejs/openafs/lib -lafsutil;; * ) cc -O2 -I/scratch/mokrejs/openafs/include -I/scratch/mokrejs/openafs/src/config -I. -I. -O2 -o compile_et compile_et.o error_table.o -L/scratch/mokrejs/openafs/lib -lafsutil -ll;; esac
> > ld:
> > Unresolved:
> > yylineno
>
> You'll want to call flex with -l on OSF to get yylineno defined.
OK, editing config.status to supply "flex -l" instead of flex and
rerunning it helps, so here's one error, which I "fixed" myself ....
[...]
echo 'char cml_version_number[]="@(#) OpenAFS devel built ' `date +"%Y-%m-%d"` '";' >AFS_component_version_number.c
echo 'char* AFSVersion = "openafs devel"; ' >>AFS_component_version_number.c
cc -O2 -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c AFS_component_version_number.c
rm -f libcmd.a
ar crv libcmd.a cmd_errors.o cmd.o AFS_component_version_number.o
a - cmd_errors.o
a - cmd.o
a - AFS_component_version_number.o
ranlib libcmd.a
/scratch/mokrejs/openafs/src/pinstall/pinstall libcmd.a /scratch/mokrejs/openafs/lib/libcmd.a
/scratch/mokrejs/openafs/src/pinstall/pinstall cmd.h /scratch/mokrejs/openafs/include/afs/cmd.h
cd src; cd lwp ; make all
case "alpha_dux51" in rs_aix*) cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -c ./lwp.c;; *) cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c ./lwp.c;; esac
cc: Warning: ./lwp.c, line 44: In this declaration, parameter 1 has a different type than specified in an earlier declaration of this function. (mismatparam)
extern void *malloc(int size);
-------------^
cc: Error: ./lwp.c, line 44: In this declaration, the type of "malloc" is not compatible with the type of a previous declaration of "malloc" at line number 158 in file /usr/include/stdlib.h. (notcompat)
extern void *malloc(int size);
-------------^
cc: Warning: ./lwp.c, line 45: In this declaration, parameter 2 has a different type than specified in an earlier declaration of this function. (mismatparam)
extern void *realloc(void *ptr, int size);
-------------^
cc: Error: ./lwp.c, line 45: In this declaration, the type of "realloc" is not compatible with the type of a previous declaration of "realloc" at line number 159 in file /usr/include/stdlib.h. (notcompat)
extern void *realloc(void *ptr, int size);
-------------^
cc: Warning: ./lwp.c, line 805: Non-void function "Dispatcher" does not contain a return statement. (missingreturn)
static int Dispatcher() /* Lightweight process dispatcher */
^
cc: Info: ./lwp.c, line 893: In this statement, the return type for intrinsic "strlen" is being changed from "size_t" to "int". (intrinsicint)
write (2, timeStamp, strlen(timeStamp));
-------------------------^
cc: Warning: ./lwp.c, line 911: Non-void function "Exit_LWP" does not contain a return statement. (missingreturn)
static int Exit_LWP()
^
*** Exit 1
Stop.
quoted from /usr/include/stdlib.h
/**********
** Functions that are methods
**********/
extern int mblen __((const char *, size_t));
extern size_t mbstowcs __((wchar_t *, const char *, size_t));
extern int mbtowc __((wchar_t *, const char *, size_t));
extern size_t wcstombs __((char *, const wchar_t *, size_t));
extern int wctomb __((char *, wchar_t));
#if defined(_OSF_SOURCE) || defined(_XOPEN_SOURCE_EXTENDED)
#ifdef _OSF_SOURCE
extern int rpmatch __((const char *));
#endif
extern void *valloc __((size_t ));
#endif /*_OSF_SOURCE || _XOPEN_SOURCE_EXTENDED */
extern double atof __((const char *));
extern int atoi __((const char *));
extern long int atol __((const char *));
extern double strtod __((const char *, char **));
extern float strtof __((const char *, char **));
extern long int strtol __((const char *, char **, int ));
extern long double strtold __((const char *, char **));
extern unsigned long int strtoul __((const char *, char **, int ));
extern int rand __((void));
extern void srand __((unsigned int ));
extern void *calloc __((size_t , size_t ));
extern void free __((void *));
extern void *malloc __((size_t ));
extern void *realloc __((void *, size_t ));
#ifdef _XOPEN_SOURCE_EXTENDED
#include <sys/wait.h>
#endif
Commenting out both defines as below in src/lwp/lwp.c:
#ifdef AFS_OSF_ENV
/*extern void *malloc(int size);
extern void *realloc(void *ptr, int size);*/
#endif
pushes me further, but at the end another error:
$ make all
case "alpha_dux51" in rs_aix*) cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -c ./lwp.c;; *) cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c ./lwp.c;; esac
cc: Warning: ./lwp.c, line 805: Non-void function "Dispatcher" does not contain a return statement. (missingreturn)
static int Dispatcher() /* Lightweight process dispatcher */
^
cc: Info: ./lwp.c, line 893: In this statement, the return type for intrinsic "strlen" is being changed from "size_t" to "int". (intrinsicint)
write (2, timeStamp, strlen(timeStamp));
-------------------------^
cc: Warning: ./lwp.c, line 911: Non-void function "Exit_LWP" does not contain a return statement. (missingreturn)
static int Exit_LWP()
^
[...]
cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c waitkey.c
cc: Info: waitkey.c, line 216: In this statement, the return type for intrinsic "strlen" is being changed from "size_t" to "int". (intrinsicint)
linelen = strlen(linebuf);
------------^
[....]
cc -I. -I/scratch/mokrejs/openafs/include -I/scratch/mokrejs/openafs/src/config -O2 -c rpc_parse.c
cc: Warning: rpc_parse.c, line 1723: Non-void function "er_Proc_CodeGeneration" does not contain a return statement. (missingreturn)
int
^
cc: Warning: rpc_parse.c, line 1775: In this statement, the expression "fprintf(...)" modifies "defp", and fetches its value in a computation that is not used to produce the modified value without an intervening sequence point. This behavior is undefined. (undefvarfetch)
f_print(fout, "\nstatic afs_int32 (*StubProcsArray%d[])() = {_%s%s%s", PackageIndex, prefix, defp->pc.proc_prefix, (defp = (definition *)listp->val)->pc.proc_name);
------------^
cc: Warning: rpc_parse.c, line 1872: Non-void function "h_opcode_stats" does not contain a return statement. (missingreturn)
int h_opcode_stats()
^
cc: Warning: rpc_parse.c, line 1909: The function "generate_multi_macros" returns a value, but no value is given in this return statement. (noreturnval)
if (!hflag) return;
----------------^
cc -I. -I/scratch/mokrejs/openafs/include -I/scratch/mokrejs/openafs/src/config -O2 -c rpc_scan.c
cc: Info: rpc_scan.c, line 560: In this statement, an array subscript expression is either less than zero or greater than the largest value that can be represented by the size_t type. (badsubscript)
where = curline - 1;
------------------------------^
[....]
cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c rmtsysnet.c
cc: Warning: rmtsysnet.c, line 444: The scalar variable "lptr" is fetched but not initialized. And there may be other such fetches of this variable that have not been reported in this compilation. (uninit1)
*lptr = htonl(*lptr);
-----------------^
cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c rmtsysc.c
cc: Warning: rmtsysc.c, line 186: In this statement, the referenced type of the pointer value "groups" is "int", which is not compatible with "unsigned int" because they differ by signed/unsigned attribute. (ptrmismatch1)
if (setgroups(ngroups, groups) == -1) {
---------------------------^
cc: Warning: rmtsysc.c, line 326: In this statement, the referenced type of the pointer value "groups" is "int", which is not compatible with "unsigned int" because they differ by signed/unsigned attribute. (ptrmismatch1)
ngroups = getgroups(NGROUPS_MAX, groups);
-------------------------------------^
[...]
cc -g -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -DAFS_KERBEROS_ENV -c ./ktc.c -o ktc.krb.o
cc: Info: File not optimized; use -g3 if both optimization and debug wanted. (suppressoptlvl)
cc: Warning: ./ktc.c, line 1620: In this declaration, "ktc_LocalCell" is declared with both internal and external linkage. The previous declaration is at line number 134 in file ./ktc.c. (mixlinkage)
static ktc_LocalCell()
-------^
[...]
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I. -I/scratch/mokrejs/openafs/include -O2 -c ubik.c
cc: Info: ubik.c, line 370: In this statement, "ContactQuorum", which was declared with an old-style function definition, expects 9 arguments, but 3 are supplied. (toofewargso)
code = ContactQuorum(DISK_Begin, tt, 0);
---------------^
cc: Info: ubik.c, line 374: In this statement, "ContactQuorum", which was declared with an old-style function definition, expects 9 arguments, but 3 are supplied. (toofewargso)
ContactQuorum(DISK_Abort, tt, 0); /* force aborts to the others */
------------^
cc: Info: ubik.c, line 434: In this statement, "ContactQuorum", which was declared with an old-style function definition, expects 9 arguments, but 3 are supplied. (toofewargso)
code = ContactQuorum(DISK_Abort, transPtr, 0);
-----------^
cc: Info: ubik.c, line 488: In this statement, "ContactQuorum", which was declared with an old-style function definition, expects 9 arguments, but 3 are supplied. (toofewargso)
if (code == 0) code = ContactQuorum(DISK_Commit, transPtr, CStampVersion);
--------------------------^
cc: Info: ubik.c, line 496: In this statement, "ContactQuorum", which was declared with an old-style function definition, expects 9 arguments, but 3 are supplied. (toofewargso)
ContactQuorum(DISK_ReleaseLocks, transPtr, 0);
--------^
cc: Info: ubik.c, line 535: In this statement, "ContactQuorum", which was declared with an old-style function definition, expects 9 arguments, but 3 are supplied. (toofewargso)
ContactQuorum(DISK_ReleaseLocks, transPtr, 0);
----^
cc: Info: ubik.c, line 590: In this statement, "ContactQuorum", which was declared with an old-style function definition, expects 9 arguments, but 5 are supplied. (toofewargso)
code = ContactQuorum(DISK_WriteV, transPtr, 0,
-----------^
cc: Info: ubik.c, line 594: In this statement, "ContactQuorum", which was declared with an old-style function definition, expects 9 arguments, but 3 are supplied. (toofewargso)
ContactQuorum(DISK_Abort, transPtr, 0); /* force aborts to the others */
-------^
cc: Info: ubik.c, line 742: In this statement, "ContactQuorum", which was declared with an old-style function definition, expects 9 arguments, but 5 are supplied. (toofewargso)
code = ContactQuorum(DISK_Truncate, transPtr, 0, transPtr->seekFile, length);
---------------^
cc: Info: ubik.c, line 747: In this statement, "ContactQuorum", which was declared with an old-style function definition, expects 9 arguments, but 3 are supplied. (toofewargso)
ContactQuorum(DISK_Abort, transPtr, 0); /* force aborts to the others */
--------^
cc: Info: ubik.c, line 784: In this statement, "ContactQuorum", which was declared with an old-style function definition, expects 9 arguments, but 7 are supplied. (toofewargso)
code = ContactQuorum(DISK_Lock, atrans, 0, 0,
-------------------^
cc: Info: ubik.c, line 790: In this statement, "ContactQuorum", which was declared with an old-style function definition, expects 9 arguments, but 3 are supplied. (toofewargso)
ContactQuorum(DISK_Abort, atrans, 0); /* force aborts to the others */
------------^
cc: Warning: ubik.c, line 832: Non-void function "panic" does not contain a return statement. (missingreturn)
int panic(a, b, c, d)
^
[...]
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I. -I/scratch/mokrejs/openafs/include -O2 -g -I. -I/scratch/mokrejs/openafs/include -I/scratch/mokrejs/openafs/include/afs -c ./udebug.c
cc: Info: File not optimized; use -g3 if both optimization and debug wanted. (suppressoptlvl)
cc: Warning: ./udebug.c, line 152: In this statement, the referenced type of the pointer value "&udebug" is "struct ubik_debug", which is not compatible with "struct ubik_debug_old". (ptrmismatch)
code = VOTE_DebugOld(tconn, &udebug);
------------------------------------^
cc: Warning: ./udebug.c, line 168: In this statement, this argument to printf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
printf("%s ", afs_inet_ntoa(htonl(udebug.interfaceAddr[j])));
--------------------------^
cc: Warning: ./udebug.c, line 171: In this statement, this argument to printf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
printf("Host's %s time is %s\n", inet_ntoa(inhostAddr), times);
--------------------------------------^
cc: Warning: ./udebug.c, line 196: In this statement, this argument to printf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
inet_ntoa(inhostAddr), diff, ((udebug.lastYesState)?"":"not "));
--------------^
cc: Warning: ./udebug.c, line 230: In this statement, this argument to printf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
printf("Lowest host %s was set %d secs ago\n", inet_ntoa(inhostAddr), diff);
-------------------------------------------------------^
cc: Warning: ./udebug.c, line 234: In this statement, this argument to printf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
printf("Sync host %s was set %d secs ago\n", inet_ntoa(inhostAddr), diff);
-----------------------------------------------------^
cc: Warning: ./udebug.c, line 266: In this statement, the referenced type of the pointer value "&usdebug" is "struct ubik_sdebug", which is not compatible with "struct ubik_sdebug_old". (ptrmismatch)
code = VOTE_SDebugOld(tconn, i, &usdebug);
----------------------------------------------------^
cc: Warning: ./udebug.c, line 278: In this statement, this argument to printf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
printf("\nServer (%s", afs_inet_ntoa(htonl(usdebug.addr)));
-----------------------------------^
cc: Warning: ./udebug.c, line 281: In this statement, this argument to printf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
printf(" %s", afs_inet_ntoa(htonl(usdebug.altAddr[j])));
------------------------------^
[...]
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I. -I/scratch/mokrejs/openafs/include -O2 -c utst_server.c
cc: Warning: utst_server.c, line 316: In this statement, this argument to sprintf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
sprintf(dbfileName, "%s/testdb", gettmpdir());
-------------------------------------^
[...]
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I. -I/scratch/mokrejs/openafs/include -O2 -c utst_int.ss.c
cc: Warning: utst_int.ss.c, line 25: In this statement, the referenced type of the pointer value "z_call" is "struct rx_call", which is not compatible with "struct rx_connection". (ptrmismatch)
z_result = SAMPLE_Inc(z_call);
------------------------------^
cc: Warning: utst_int.ss.c, line 38: In this statement, the referenced type of the pointer value "z_call" is "struct rx_call", which is not compatible with "struct rx_connection". (ptrmismatch)
z_result = SAMPLE_Get(z_call, &temp);
------------------------------^
cc: Warning: utst_int.ss.c, line 53: In this statement, the referenced type of the pointer value "z_call" is "struct rx_call", which is not compatible with "struct rx_connection". (ptrmismatch)
z_result = SAMPLE_Trun(z_call);
-------------------------------^
cc: Warning: utst_int.ss.c, line 65: In this statement, the referenced type of the pointer value "z_call" is "struct rx_call", which is not compatible with "struct rx_connection". (ptrmismatch)
z_result = SAMPLE_Test(z_call);
-------------------------------^
cc: Warning: utst_int.ss.c, line 78: In this statement, the referenced type of the pointer value "z_call" is "struct rx_call", which is not compatible with "struct rx_connection". (ptrmismatch)
z_result = SAMPLE_QGet(z_call, &temp);
-------------------------------^
[...]
cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c utils.c
cc: Warning: utils.c, line 49: In this statement, the referenced type of the pointer value "aname" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
for (i=strlen(aname),aname += i-1;i--;aname--)
------------------^
[...]
cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c pts.c
cc: Warning: pts.c, line 86: The function "CleanUp" returns a value, but no value is given in this return statement. (noreturnval)
if (!strcmp(as->name,"help")) return;
----------------------------------^
cc: Warning: pts.c, line 700: In this statement, this argument to sscanf is of "pointer to int" type and is not appropriate for the conversion specifier "%lo". The value may overwrite other data or produce unexpected results. (inptrtype)
sscanf (access, "%lo", &flags);
-----------------------------------^
[...]
cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c pt_util.c
cc: Warning: pt_util.c, line 221: In this statement, this argument to fprintf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
name, error_message(code));
----------------------------------------------^
cc: Warning: pt_util.c, line 229: In this statement, this argument to fprintf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
u->name, error_message(code));
-----------------------------------------^
cc: Warning: pt_util.c, line 245: In this statement, this argument to fprintf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
mem, name, error_message(code));
---------------------------------------^
cc: Warning: pt_util.c, line 264: In this statement, this argument to fprintf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
name, error_message(code));
----------------------------------^
cc: Warning: pt_util.c, line 276: In this statement, this argument to fprintf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
name, error_message(code));
--------------------------------------^
cc: Warning: pt_util.c, line 283: In this statement, this argument to fprintf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
u->name, error_message(PRBADNAM));
---------------------------------^
cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c ubik.c
cc: Warning: ubik.c, line 85: Non-void function "panic" does not contain a return statement. (missingreturn)
int panic(a, b, c, d)
^
[...]
cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c db_verify.c
cc: Warning: db_verify.c, line 54: Non-void function "printheader" does not contain a return statement. (missingreturn)
afs_int32 printheader(h)
^
cc: Warning: db_verify.c, line 131: In this statement, the referenced type of the pointer value "aname" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
for (i=strlen(aname),aname += i-1;i--;aname--)
------------------^
cc: Warning: db_verify.c, line 1057: In this statement, the referenced type of the pointer value "getDirPath(...)" is const, but the referenced type of the target of this assignment is not. (notconstqual)
pr_dbaseName = AFSDIR_SERVER_PRDB_FILEPATH;
----^
cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c display.c
cc: Info: display.c, line 124: In this statement, the return type for intrinsic "strlen" is being changed from "size_t" to "int". (intrinsicint)
if (strlen (e->name) >= PR_MAXNAMELEN)
------------^
[...]
cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c readgroup.c
cc: Warning: readgroup.c, line 49: In this statement, this argument to fprintf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
fprintf(stderr,"%s (%d).\n",pr_ErrorMsg(code),code);
------------------------------------^
cc: Warning: readgroup.c, line 102: In this statement, this argument to fprintf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
fprintf(stderr,"%s (%d).\n",pr_ErrorMsg(code),code);
------------------------------------^
cc: Warning: readgroup.c, line 134: In this statement, this argument to fprintf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
fprintf(stderr,"%s (%d).\n",pr_ErrorMsg(code),code);
------------------------------------------------^
cc: Warning: readgroup.c, line 156: In this statement, this argument to fprintf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
fprintf(stderr,"%s (%d).\n",pr_ErrorMsg(code),code);
--------------------------------------------------------^
cc: Warning: readgroup.c, line 187: In this statement, this argument to fprintf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
fprintf(stderr,"%s (%d).\n",pr_ErrorMsg(code),code);
----------------------------------------------------^
[...]
cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c readpwd.c
cc: Warning: readpwd.c, line 103: In this statement, this argument to fprintf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
fprintf(stderr,"%s (%d).\n",pr_ErrorMsg(code),code);
----------------------------------------^
[...]
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c ./kaprocs.c
cc: Warning: ./kaprocs.c, line 1432: In this statement, the referenced type of the pointer value "&nfailures" is "int", which is not compatible with "unsigned int" because they differ by signed/unsigned attribute. (ptrmismatch1)
kaux_read( to, &nfailures, &locktime );
-------------------^
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c kalog.c
cc: Warning: kalog.c, line 54: In this statement, the referenced type of the pointer value "getDirPath(...)" is const, but the referenced type of the target of this assignment is not. (notconstqual)
kalog_db = dbm_open(AFSDIR_SERVER_KALOG_FILEPATH, O_WRONLY | O_CREAT, KALOG_DB_MODE);
------------------------^
/scratch/mokrejs/openafs/src/rxgen/rxgen -x -S -o kauth.ss.c ./kauth.rg
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c kauth.ss.c
/scratch/mokrejs/openafs/src/rxgen/rxgen -x -c -o kauth.xdr.c ./kauth.rg
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c kauth.xdr.c
echo 'char cml_version_number[]="@(#) OpenAFS devel built ' `date +"%Y-%m-%d"` '";' >AFS_component_version_number.c
echo 'char* AFSVersion = "openafs devel"; ' >>AFS_component_version_number.c
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c AFS_component_version_number.c
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c kaserver.c
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c kaaux.c
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c krb_udp.c
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c kaauxdb.c
cc: Warning: kaauxdb.c, line 146: In this statement, the referenced type of the pointer value "&nfailures" is "int", which is not compatible with "unsigned int" because they differ by signed/unsigned attribute. (ptrmismatch1)
kaux_read(to, &nfailures, &lasttime);
------------------^
[...]
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c admin_tools.c
cc: Warning: admin_tools.c, line 388: In this statement, this argument to sscanf is of "pointer to int" type and is not appropriate for the conversion specifier "%lx". The value may overwrite other data or produce unexpected results. (inptrtype)
sscanf (str, "0x%lx", &f);
----------------------------------^
cc: Warning: admin_tools.c, line 390: In this statement, this argument to sscanf is of "pointer to int" type and is not appropriate for the conversion specifier "%lo". The value may overwrite other data or produce unexpected results. (inptrtype)
sscanf (str, "%lo", &f);
--------------------------------^
cc: Warning: admin_tools.c, line 392: In this statement, this argument to sscanf is of "pointer to int" type and is not appropriate for the conversion specifier "%lx". The value may overwrite other data or produce unexpected results. (inptrtype)
sscanf (str, "%lx", &f);
--------------------------------^
cc: Warning: admin_tools.c, line 1196: The function "MyAfterProc" returns a value, but no value is given in this return statement. (noreturnval)
if (!strcmp(as->name,"help")) return;
----------------------------------^
[...]
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c authclient.c
cc: Info: authclient.c, line 550: In this statement, "kawrap_ubik_Call", which was declared with an old-style function definition, expects 11 arguments, but 9 are supplied. (toofewargso)
code = kawrap_ubik_Call (KAA_AuthenticateV2, conn, 0,
-----------^
[...]
cc -I. -I. -O2 -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c kdb.c
cc: Warning: kdb.c, line 89: In this statement, the referenced type of the pointer value "getDirPath(...)" is const, but the referenced type of the target of this assignment is not. (notconstqual)
dbmfile = AFSDIR_SERVER_KALOGDB_FILEPATH;
----^
[...]
cc -g -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c afsd.c
cc: Info: File not optimized; use -g3 if both optimization and debug wanted. (suppressoptlvl)
cc: Warning: /scratch/mokrejs/openafs/include/potpourri.h, line 96: The redefinition of the macro "assert" conflicts with a current definition because the spelling of one or more parameters is different. The redefinition is now in effect. (macroredef)
#define assert(ex) {if (!(ex)){fprintf(stderr,"Assertion failed: file %s, line %d\n", __FILE__, __LINE__);fprintf(stderr, "\t%s\n", # ex); abort();}}
---------------^
[...]
cc -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c -g siad.c -o siad.o
cc: Info: File not optimized; use -g3 if both optimization and debug wanted. (suppressoptlvl)
cc: Warning: siad.c, line 136: In this statement, the referenced type of the pointer value "err_msg" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
(void) sprintf(err_msg, "Unable to authenticate to AFS because %s",
-----------------------^
cc: Warning: siad.c, line 138: In this statement, the referenced type of the pointer value "err_msg" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
sia_warning(collect, err_msg);
-----------------------------^
cc: Warning: siad.c, line 370: The function "siad_ses_reauthent" returns a value, but no value is given in this return statement. (noreturnval)
return;
--------^
[...]
cc -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -DAFS_KERBEROS_ENV -c -g siad.c -o siad_krb.o
cc: Info: File not optimized; use -g3 if both optimization and debug wanted. (suppressoptlvl)
cc: Warning: siad.c, line 136: In this statement, the referenced type of the pointer value "err_msg" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
(void) sprintf(err_msg, "Unable to authenticate to AFS because %s",
-----------------------^
cc: Warning: siad.c, line 138: In this statement, the referenced type of the pointer value "err_msg" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
sia_warning(collect, err_msg);
-----------------------------^
cc: Warning: siad.c, line 370: The function "siad_ses_reauthent" returns a value, but no value is given in this return statement. (noreturnval)
return;
--------^
[...]
cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c bumon.ss.c
cc: Warning: bumon.ss.c, line 34: In this statement, the referenced type of the pointer value "z_call" is "struct rx_call", which is not compatible with "struct rx_connection". (ptrmismatch)
z_result = BC_Print(z_call, code, flags, message);
----------------------------^
[...]
cc -I. -I. -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c usd_file.c
cc: Info: usd_file.c, line 367: In this statement, the return type for intrinsic "strlen" is being changed from "size_t" to "int". (intrinsicint)
usd->fullPathName = (char *)malloc(strlen(path)+1);
---------------------------------------^
[...]
cc -O2 -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c dir.c
cc: Info: dir.c, line 131: In this statement, the return type for intrinsic "strlen" is being changed from "size_t" to "int". (intrinsicint)
i = strlen(name)+1;
--------^
cc -O2 -I/scratch/mokrejs/openafs/src/config -I/scratch/mokrejs/openafs/include -O2 -c salvage.c
cc: Info: salvage.c, line 281: In this statement, the return type for intrinsic "strlen" is being changed from "size_t" to "int". (intrinsicint)
j = strlen(ep->name);
----------------^
[...]
case alpha_dux51 in sgi_*) echo "SGI efs not supported" ;; *) echo No efs stuff for alpha_dux51;; esac
----------------------------------------------------------------------^ EFS or UFS? Fileserver run on AdvFS only?
No efs stuff for alpha_dux51
cd src; cd vol ; make all
case alpha_dux51 in *linux* | sgi_* | *fbsd* ) echo "Don't build gi on alpha_dux51";; *) cc -Dalpha_dux51 -O2 -I/scratch/mokrejs/openafs/src/config -I. -I. -I/scratch/mokrejs/openafs/include -O2 -g -c ./gi.c ; cc -O2 -o gi gi.o /scratch/mokrejs/openafs/lib/libsys.a;; esac
cc: Info: File not optimized; use -g3 if both optimization and debug wanted. (suppressoptlvl)
cc: Warning: ./gi.c, line 65: In this statement, the number of conversion specifiers to printf exceeds the number of values to be converted. Conversion specifiers from "%d" onward will process meaningless and perhaps invalid data. (outtoofew)
printf("Inode status: dev=%d, ino=%d, mode=%o, nlink=%d, uid=%d, gid=%d, size=%d, mtime=%d, blocks=%d\n", status.st_dev, status.st_ino, status.st_mode, status.st_nlink, status.st_uid, status.st_gid, status.st_size, status.st_mtime);
-----------------------^
echo 'char cml_version_number[]="@(#) OpenAFS devel built ' `date +"%Y-%m-%d"` '";' >AFS_component_version_number.c
echo 'char* AFSVersion = "openafs devel"; ' >>AFS_component_version_number.c
cc -Dalpha_dux51 -O2 -I/scratch/mokrejs/openafs/src/config -I. -I. -I/scratch/mokrejs/openafs/include -O2 -g -c vnode.c
cc: Info: File not optimized; use -g3 if both optimization and debug wanted. (suppressoptlvl)
cc: Info: vnode.c, line 233: In this statement, "VNLog", which was declared with an old-style function definition, expects 6 arguments, but 4 are supplied. (toofewargso)
VNLog(1, 2, vnp->vnodeNumber, (afs_int32) vnp);
----^
cc: Info: vnode.c, line 306: In this statement, "VNLog", which was declared with an old-style function definition, expects 6 arguments, but 3 are supplied. (toofewargso)
VNLog(2, 1, vnodeNumber);
----^
cc: Info: vnode.c, line 317: In this statement, "VNLog", which was declared with an old-style function definition, expects 6 arguments, but 4 are supplied. (toofewargso)
VNLog(3, 2, vnodeNumber, (afs_int32) vnp);
--------^
cc: Info: vnode.c, line 395: In this statement, "VNLog", which was declared with an old-style function definition, expects 6 arguments, but 4 are supplied. (toofewargso)
VNLog(4, 2, vnodeNumber, (afs_int32) vnp);
--------^
cc: Info: vnode.c, line 398: In this statement, "VNLog", which was declared with an old-style function definition, expects 6 arguments, but 3 are supplied. (toofewargso)
VNLog(5, 1, (afs_int32) vnp);
----^
cc: Info: vnode.c, line 449: In this statement, "VNLog", which was declared with an old-style function definition, expects 6 arguments, but 3 are supplied. (toofewargso)
VNLog(100, 1, vnodeNumber);
----^
cc: Info: vnode.c, line 610: In this statement, "VNLog", which was declared with an old-style function definition, expects 6 arguments, but 4 are supplied. (toofewargso)
VNLog(101, 2, vnodeNumber, (afs_int32) vnp);
--------^
cc: Info: vnode.c, line 636: In this statement, "VNLog", which was declared with an old-style function definition, expects 6 arguments, but 4 are supplied. (toofewargso)
VNLog(102, 2, vnodeNumber, (afs_int32) vnp);
----^
cc: Info: vnode.c, line 684: In this statement, "VNLog", which was declared with an old-style function definition, expects 6 arguments, but 4 are supplied. (toofewargso)
VNLog(200, 2, vnp->vnodeNumber, (afs_int32) vnp);
----^
cc: Info: vnode.c, line 694: In this statement, "VNLog", which was declared with an old-style function definition, expects 6 arguments, but 4 are supplied. (toofewargso)
VNLog(201, 2, (afs_int32) vnp,
--------^
cc: Info: vnode.c, line 708: In this statement, "VNLog", which was declared with an old-style function definition, expects 6 arguments, but 4 are supplied. (toofewargso)
VNLog(202, 2, vnp->vnodeNumber, (afs_int32) vnp);
----------------^
cc: Info: vnode.c, line 821: In this statement, "VNLog", which was declared with an old-style function definition, expects 6 arguments, but 4 are supplied. (toofewargso)
VNLog(300, 2, vnp->vnodeNumber, (afs_int32) vnp);
----^
cc: Info: vnode.c, line 833: In this statement, "VNLog", which was declared with an old-style function definition, expects 6 arguments, but 4 are supplied. (toofewargso)
VNLog(301, 2, (afs_int32) vnp,
----^
cc -Dalpha_dux51 -O2 -I/scratch/mokrejs/openafs/src/config -I. -I. -I/scratch/mokrejs/openafs/include -O2 -g -c volume.c
cc: Info: File not optimized; use -g3 if both optimization and debug wanted. (suppressoptlvl)
cc: Warning: volume.c, line 1617: The scalar variable "retVal" is fetched but not initialized. And there may be other such fetches of this variable that have not been reported in this compilation. (uninit1)
return retVal;
-----------^
[...]
cc -Dalpha_dux51 -O2 -I/scratch/mokrejs/openafs/src/config -I. -I. -I/scratch/mokrejs/openafs/include -O2 -g -c devname.c
cc: Info: File not optimized; use -g3 if both optimization and debug wanted. (suppressoptlvl)
cc: Info: devname.c, line 246: In this statement, the return type for intrinsic "strlen" is being changed from "size_t" to "int". (intrinsicint)
i = strlen(devfile);
------^
[...]
cc -Dalpha_dux51 -O2 -I/scratch/mokrejs/openafs/src/config -I. -I. -I/scratch/mokrejs/openafs/include -O2 -g -c ./fs_conv_411.c
cc: Info: File not optimized; use -g3 if both optimization and debug wanted. (suppressoptlvl)
cc: Info: ./fs_conv_411.c, line 323: In this statement, the return type for intrinsic "strlen" is being changed from "size_t" to "int". (intrinsicint)
if (!strncmp(part, namep, strlen(part)+1)) {
----------------------------------------------^
cc: Warning: ./fs_conv_411.c, line 445: In this statement, the referenced type of the pointer value "&ufsargs" is "struct ufs_args", which is not compatible with "char". (ptrmismatch)
code = mount(MOUNT_UFS, path, 0, &ufsargs);
----------------------------------------^
cc: Error: ./fs_conv_411.c, line 487: In this statement, "umount" expects 2 arguments, but 1 are supplied. (toofewargs)
umount(path);
-------^
cc: Warning: ./fs_conv_411.c, line 516: In this statement, this argument to printf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
printf("errno %d: %s\n", errno, strerror(errno));
---------------------------------------^
cc: Warning: ./fs_conv_411.c, line 565: In this statement, this argument to printf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
printf("%d: %s\n", errno, strerror(errno));
-----------------------------------^
cc: Warning: ./fs_conv_411.c, line 579: In this statement, this argument to printf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
printf("errno %d: %s\n", errno, strerror(errno));
-----------------------------------------------^
cc: Warning: ./fs_conv_411.c, line 852: In this statement, this argument to printf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
printf("errno %d: %s\n", errno, strerror(errno));
-----------------------------------------------^
cc: Warning: ./fs_conv_411.c, line 859: In this statement, this argument to printf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype)
printf("errno %d: %s\n", errno, strerror(errno));
--------------------------------------------------^
cc: Warning: ./fs_conv_411.c, line 939: In this statement, "strrchr(...)" of type "int", is being converted to "pointer to char". (cvtdiftypes)
if ((dp = strrchr(name, '/')) == 0)
-------------^
cc: Warning: ./fs_conv_411.c, line 958: In this statement, "strrchr(...)" of type "int", is being converted to "pointer to char". (cvtdiftypes)
if ((dp = strrchr(name, '/')) == 0)
-------------^
*** Exit 1
--
Martin Mokrejs <mmokrejs@natur.cuni.cz>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics <http://mips.gsf.de>
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3616 , fax: +49-89-3187 3585