=> Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xml2doc-20030510nb22 [32mBuilding xml2doc[0m /opt/pkg/bin/gmake -C src/ build gmake[1]: Entering directory '/Users/pbulk/build/textproc/xml2doc/work/xml2doc/src' gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" main.c main.c:28:19: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Doc=(DocStruct *)malloc(sizeof(DocStruct)); ^ main.c:28:19: note: include the header <stdlib.h> or explicitly provide a declaration for 'malloc' main.c:48:6: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ main.c:48:6: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' main.c:62:11: warning: passing arguments to 'parse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] err=parse(argv[2]); ^ 3 warnings generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" defs.c defs.c:10:35: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] DocS.add.colors=(struct_colors *)malloc(1); ^ defs.c:10:35: note: include the header <stdlib.h> or explicitly provide a declaration for 'malloc' defs.c:13:1: warning: non-void function does not return a value [-Wreturn-type] } ^ defs.c:31:4: warning: initializing 'xmlChar *' (aka 'unsigned char *') with an expression of type 'char[12]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "Times-Roman", // *fnt ^~~~~~~~~~~~~ defs.c:32:4: warning: initializing 'xmlChar *' (aka 'unsigned char *') with an expression of type 'char[3]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "./", // *path ^~~~ defs.c:58:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ defs.c:58:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' defs.c:60:18: warning: call to undeclared library function 'realloc' with type 'void *(void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Doc=(DocStruct*)realloc(Doc,sizeof(DocStruct)*(n+1)); ^ defs.c:60:18: note: include the header <stdlib.h> or explicitly provide a declaration for 'realloc' 6 warnings generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" parse.c In file included from parse.c:1: ./defs.h:112:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] parse(), ^ parse.c:3:5: note: conflicting prototype is here int parse(const char *file) ^ parse.c:26:25: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("default",Doc[n].cur->name)) { ^~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse.c:29:23: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("reset",Doc[n].cur->name)) { ^~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse.c:32:22: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("info",Doc[n].cur->name)) { ^~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse.c:35:22: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("page",Doc[n].cur->name)) { ^~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse.c:38:25: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("include",Doc[n].cur->name)) { ^~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse.c:41:21: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("add",Doc[n].cur->name)) { ^~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse.c:44:21: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("eof",Doc[n].cur->name)) { ^~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse.c:47:21: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strcmp("text",Doc[n].cur->name) && ^~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse.c:48:24: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcmp("comment",Doc[n].cur->name)) { ^~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse.c:50:4: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ parse.c:50:4: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' 11 warnings generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" parse_include.c parse_include.c:7:34: warning: passing 'char[4]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (( str=xmlGetProp(Doc[n].cur,"src") )) ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_include.c:10:8: warning: passing arguments to 'parse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parse(str); ^ parse_include.c:14:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ parse_include.c:14:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' 3 warnings generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" parse_info.c gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" parse_img.c In file included from parse_img.c:1: ./defs.h:116:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] parse_img(), ^ parse_img.c:3:5: note: conflicting prototype is here int parse_img(xmlNodePtr page) { ^ parse_img.c:8:23: warning: passing 'char[4]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!xmlGetProp(page,"src") ) { ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_img.c:10:29: warning: passing 'char[4]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] else src=xmlGetProp(page,"src"); ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_img.c:11:23: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] type=xmlGetProp(page,"type"); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_img.c:12:11: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] r=strlen(src)-3; ^~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ parse_img.c:15:21: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("png",src+r)) type="png"; else ^~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse_img.c:15:34: warning: assigning to 'xmlChar *' (aka 'unsigned char *') from 'char[4]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("png",src+r)) type="png"; else ^~~~~~ parse_img.c:16:20: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("pg",src+r+1)) type="jpeg"; else ^~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse_img.c:16:34: warning: assigning to 'xmlChar *' (aka 'unsigned char *') from 'char[5]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("pg",src+r+1)) type="jpeg"; else ^~~~~~~ parse_img.c:17:21: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("gif",src+r)) type="gif"; else ^~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse_img.c:17:34: warning: assigning to 'xmlChar *' (aka 'unsigned char *') from 'char[4]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("gif",src+r)) type="gif"; else ^~~~~~ parse_img.c:18:21: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("iff",src+r)) type="tiff"; ^~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse_img.c:18:34: warning: assigning to 'xmlChar *' (aka 'unsigned char *') from 'char[5]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("iff",src+r)) type="tiff"; ^~~~~~~ parse_img.c:21:23: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] text=xmlGetProp(page,"text"); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_img.c:23:34: warning: passing 'char[2]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] x = parm_value( xmlGetProp(page,"x"), ^~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_img.c:23:18: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] x = parm_value( xmlGetProp(page,"x"), ^~~~~~~~~~~~~~~~~~~~ ./parm.h:9:25: note: passing argument to parameter 'str' here int parm_value (char *str,int *ref,int total); ^ parse_img.c:26:34: warning: passing 'char[2]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] y = parm_value( xmlGetProp(page,"y"), ^~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_img.c:26:18: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] y = parm_value( xmlGetProp(page,"y"), ^~~~~~~~~~~~~~~~~~~~ ./parm.h:9:25: note: passing argument to parameter 'str' here int parm_value (char *str,int *ref,int total); ^ parse_img.c:29:22: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] buf=xmlGetProp(page,"scale"); ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_img.c:30:28: warning: call to undeclared function 'atof'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!buf) s=1.0f; else s=atof(buf); ^ parse_img.c:32:15: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] output_image(src,type,text,s,x,y); ^~~ ./output.h:22:21: note: passing argument to parameter 'f' here output_image(char *f,char *type, char *text, float s, int x, int y), ^ parse_img.c:32:19: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] output_image(src,type,text,s,x,y); ^~~~ ./output.h:22:29: note: passing argument to parameter 'type' here output_image(char *f,char *type, char *text, float s, int x, int y), ^ parse_img.c:32:24: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] output_image(src,type,text,s,x,y); ^~~~ ./output.h:22:41: note: passing argument to parameter 'text' here output_image(char *f,char *type, char *text, float s, int x, int y), ^ 23 warnings generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" parse_t.c In file included from parse_t.c:1: ./defs.h:115:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] parse_t(), ^ parse_t.c:3:5: note: conflicting prototype is here int parse_t(xmlNodePtr page) { ^ parse_t.c:8:22: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(page,"font")) ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:9:34: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].now.fnt=xmlGetProp(page,"font"); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:13:30: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_value(xmlGetProp(page,"size"), ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:13:14: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_value(xmlGetProp(page,"size"), ^~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:9:25: note: passing argument to parameter 'str' here int parm_value (char *str,int *ref,int total); ^ parse_t.c:18:38: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].now.font=PDF_findfont(DocS.p,Doc[n].now.fnt,"host",0); ^~~~~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/pdflib.h:239:34: note: passing argument to parameter 'fontname' here PDF_findfont(PDF *p, const char *fontname, const char *encoding, int embed); ^ parse_t.c:23:29: warning: passing 'char[10]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(page,"underline"),Doc[n].std.underline); ^~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:23:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(page,"underline"),Doc[n].std.underline); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:6:31: note: passing argument to parameter 'str' here bool parm_bool (const char *str, bool ref); ^ parse_t.c:25:29: warning: passing 'char[9]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(page,"overline"),Doc[n].std.overline); ^~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:25:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(page,"overline"),Doc[n].std.overline); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:6:31: note: passing argument to parameter 'str' here bool parm_bool (const char *str, bool ref); ^ parse_t.c:27:29: warning: passing 'char[10]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(page,"strikeout"),Doc[n].std.strikeout); ^~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:27:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(page,"strikeout"),Doc[n].std.strikeout); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:6:31: note: passing argument to parameter 'str' here bool parm_bool (const char *str, bool ref); ^ parse_t.c:29:29: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(page,"bold"),Doc[n].std.bold); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:29:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(page,"bold"),Doc[n].std.bold); ^~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:6:31: note: passing argument to parameter 'str' here bool parm_bool (const char *str, bool ref); ^ parse_t.c:31:28: warning: passing 'char[12]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((str2=xmlGetProp(page,"wordspacing"))) ^~~~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:32:26: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Doc[n].now.wordspacing=atoi(str2); ^ parse_t.c:35:28: warning: passing 'char[12]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((str2=xmlGetProp(page,"charspacing"))) ^~~~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:39:28: warning: passing 'char[12]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((str2=xmlGetProp(page,"linespacing"))) ^~~~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:46:29: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(page,"trim"),Doc[n].std.trim); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:46:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(page,"trim"),Doc[n].std.trim); ^~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:6:31: note: passing argument to parameter 'str' here bool parm_bool (const char *str, bool ref); ^ parse_t.c:48:35: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((str2=xmlGetProp(page,"align"))) ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:50:22: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(str2,"right")) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ parse_t.c:52:15: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(str2,"left")) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ parse_t.c:54:15: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(str2,"center")) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ parse_t.c:56:15: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(str2,"justify")) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ parse_t.c:62:29: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_color(xmlGetProp(page,"color"),Doc[n].now.text_c,Doc[n].std.text_c); ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:62:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_color(xmlGetProp(page,"color"),Doc[n].now.text_c,Doc[n].std.text_c); ^~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:8:31: note: passing argument to parameter 'str' here void parm_color (const char *str, unsigned char *ptr, unsigned char *ref); ^ parse_t.c:64:22: warning: passing 'char[2]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(page,"x")) Doc[n].now.textx = atof(xmlGetProp(page,"x")); ^~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:64:47: warning: call to undeclared function 'atof'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (xmlGetProp(page,"x")) Doc[n].now.textx = atof(xmlGetProp(page,"x")); ^ parse_t.c:64:68: warning: passing 'char[2]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(page,"x")) Doc[n].now.textx = atof(xmlGetProp(page,"x")); ^~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:65:29: warning: passing 'char[2]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ( (str2=xmlGetProp(page,"y")) ) ^~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:69:7: warning: equality comparison result unused [-Wunused-comparison] lead==PDF_get_value(DocS.p,"leading",0.0f); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ parse_t.c:69:7: note: use '=' to turn this equality comparison into an assignment lead==PDF_get_value(DocS.p,"leading",0.0f); ^~ = parse_t.c:71:15: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(str2,"up")) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ parse_t.c:77:43: warning: passing 'char[2]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].now.texty = atof(xmlGetProp(page,"y")); ^~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_t.c:80:10: warning: passing arguments to 'output_t' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] output_t(str); ^ 35 warnings generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" parse_page.c parse_page.c:14:35: warning: passing 'char[4]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(Doc[n].cur,"end"),Doc[n].std.page_end); ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_page.c:14:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(Doc[n].cur,"end"),Doc[n].std.page_end); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:6:31: note: passing argument to parameter 'str' here bool parm_bool (const char *str, bool ref); ^ parse_page.c:15:35: warning: passing 'char[8]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_color(xmlGetProp(Doc[n].cur,"bgcolor"), ^~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_page.c:15:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_color(xmlGetProp(Doc[n].cur,"bgcolor"), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:8:31: note: passing argument to parameter 'str' here void parm_color (const char *str, unsigned char *ptr, unsigned char *ref); ^ parse_page.c:19:35: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_color(xmlGetProp(Doc[n].cur,"color"), ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_page.c:19:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_color(xmlGetProp(Doc[n].cur,"color"), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:8:31: note: passing argument to parameter 'str' here void parm_color (const char *str, unsigned char *ptr, unsigned char *ref); ^ parse_page.c:38:28: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] str=xmlGetProp(Doc[n].cur,"type"); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_page.c:42:15: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(str,pages[i].name)) ^~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ parse_page.c:51:28: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(Doc[n].cur,"left")) ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_page.c:52:26: warning: call to undeclared function 'atof'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Doc[n].now.margeleft=atof(xmlGetProp(Doc[n].cur,"left")); ^ parse_page.c:52:53: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].now.margeleft=atof(xmlGetProp(Doc[n].cur,"left")); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_page.c:53:28: warning: passing 'char[4]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(Doc[n].cur,"top")) ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_page.c:54:70: warning: passing 'char[4]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].now.margetop=Doc[n].now.height-atof(xmlGetProp(Doc[n].cur,"top")); ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_page.c:55:28: warning: passing 'char[7]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(Doc[n].cur,"bottom")) ^~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_page.c:56:55: warning: passing 'char[7]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].now.margebottom=atof(xmlGetProp(Doc[n].cur,"bottom")); ^~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_page.c:59:35: warning: passing 'char[8]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(Doc[n].cur,"autonum"),Doc[n].std.autonum); ^~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_page.c:59:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(Doc[n].cur,"autonum"),Doc[n].std.autonum); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:6:31: note: passing argument to parameter 'str' here bool parm_bool (const char *str, bool ref); ^ parse_page.c:61:34: warning: passing 'char[4]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((str2=xmlGetProp(Doc[n].cur,"num"))) ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_page.c:62:13: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] DocS.page=atoi(str2); ^ parse_page.c:67:16: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for( i=strlen(str);i;i-- ) if(str[i]=='\n') str[i]=' '; ^~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ parse_page.c:71:19: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("t",page->name)) // Text block ^~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse_page.c:72:11: warning: passing arguments to 'parse_t' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parse_t(page); ^ parse_page.c:74:21: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("img",page->name)) // Image block ^~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse_page.c:75:13: warning: passing arguments to 'parse_img' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parse_img(page); ^ parse_page.c:77:26: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("bookmark",page->name)) // bookmark tag ^~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse_page.c:78:18: warning: passing arguments to 'parse_bookmark' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parse_bookmark(page); ^ parse_page.c:80:21: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("sep",page->name)) // Separator tag ^~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse_page.c:81:13: warning: passing arguments to 'parse_sep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parse_sep(page); ^ parse_page.c:83:22: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("list",page->name)) // Separator tag ^~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse_page.c:84:14: warning: passing arguments to 'parse_list' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parse_list(page); ^ parse_page.c:86:21: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp("eof",page->name)) { ^~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse_page.c:89:21: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strcmp("text",page->name)&& ^~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse_page.c:90:24: warning: passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcmp("comment",page->name)) ^~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here int strcmp(const char *__s1, const char *__s2); ^ parse_page.c:93:4: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ parse_page.c:93:4: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' 34 warnings generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" parse_default.c parse_default.c:7:28: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(Doc[n].cur,"font") ) ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:8:42: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].std.fnt=xmlGetProp(Doc[n].cur,"font"); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:11:35: warning: passing 'char[8]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(Doc[n].cur,"autonum"),Doc[n].std.autonum); ^~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:11:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(Doc[n].cur,"autonum"),Doc[n].std.autonum); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:6:31: note: passing argument to parameter 'str' here bool parm_bool (const char *str, bool ref); ^ parse_default.c:13:28: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(Doc[n].cur,"size")) ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:14:20: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Doc[n].std.fsize=atoi(xmlGetProp(Doc[n].cur,"size")); ^ parse_default.c:14:47: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].std.fsize=atoi(xmlGetProp(Doc[n].cur,"size")); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:15:28: warning: passing 'char[12]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(Doc[n].cur,"linespacing")) ^~~~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:16:53: warning: passing 'char[12]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].std.linespacing=atoi(xmlGetProp(Doc[n].cur,"linespacing")); ^~~~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:17:28: warning: passing 'char[12]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(Doc[n].cur,"wordspacing")) ^~~~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:18:53: warning: passing 'char[12]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].std.wordspacing=atoi(xmlGetProp(Doc[n].cur,"wordspacing")); ^~~~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:19:28: warning: passing 'char[12]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(Doc[n].cur,"charspacing")) ^~~~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:20:53: warning: passing 'char[12]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].std.charspacing=atoi(xmlGetProp(Doc[n].cur,"charspacing")); ^~~~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:21:28: warning: passing 'char[2]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(Doc[n].cur,"x")) ^~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:22:20: warning: call to undeclared function 'atof'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Doc[n].std.textx=atof(xmlGetProp(Doc[n].cur,"x")); ^ parse_default.c:22:47: warning: passing 'char[2]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].std.textx=atof(xmlGetProp(Doc[n].cur,"x")); ^~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:23:28: warning: passing 'char[2]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(Doc[n].cur,"y")) ^~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:24:47: warning: passing 'char[2]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].std.texty=atof(xmlGetProp(Doc[n].cur,"y")); ^~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:25:28: warning: passing 'char[9]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(Doc[n].cur,"margetop")) ^~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:26:50: warning: passing 'char[9]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].std.margetop=atof(xmlGetProp(Doc[n].cur,"margetop")); ^~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:27:28: warning: passing 'char[12]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(Doc[n].cur,"margebottom")) ^~~~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:28:53: warning: passing 'char[12]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].std.margebottom=atof(xmlGetProp(Doc[n].cur,"margebottom")); ^~~~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:29:28: warning: passing 'char[10]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(Doc[n].cur,"margeleft")) ^~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:30:51: warning: passing 'char[10]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].std.margeleft=atof(xmlGetProp(Doc[n].cur,"margeleft")); ^~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:31:28: warning: passing 'char[11]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (xmlGetProp(Doc[n].cur,"margeright")) ^~~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:32:69: warning: passing 'char[11]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].std.margeright=Doc[n].std.width-atof(xmlGetProp(Doc[n].cur,"margeright")); ^~~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:35:35: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(Doc[n].cur,"trim"), true); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:35:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(Doc[n].cur,"trim"), true); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:6:31: note: passing argument to parameter 'str' here bool parm_bool (const char *str, bool ref); ^ parse_default.c:37:35: warning: passing 'char[10]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(Doc[n].cur,"underline"), false); ^~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:37:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(Doc[n].cur,"underline"), false); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:6:31: note: passing argument to parameter 'str' here bool parm_bool (const char *str, bool ref); ^ parse_default.c:39:35: warning: passing 'char[9]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(Doc[n].cur,"overline"), false); ^~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:39:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(Doc[n].cur,"overline"), false); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:6:31: note: passing argument to parameter 'str' here bool parm_bool (const char *str, bool ref); ^ parse_default.c:41:35: warning: passing 'char[10]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(Doc[n].cur,"strikeout"), false); ^~~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:41:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_bool(xmlGetProp(Doc[n].cur,"strikeout"), false); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:6:31: note: passing argument to parameter 'str' here bool parm_bool (const char *str, bool ref); ^ parse_default.c:43:42: warning: passing 'char[8]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_color(xmlGetProp(Doc[n].cur,"bgcolor"), ^~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:43:20: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_color(xmlGetProp(Doc[n].cur,"bgcolor"), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:8:31: note: passing argument to parameter 'str' here void parm_color (const char *str, unsigned char *ptr, unsigned char *ref); ^ parse_default.c:47:42: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_color(xmlGetProp(Doc[n].cur,"color"), ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:47:20: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_color(xmlGetProp(Doc[n].cur,"color"), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:8:31: note: passing argument to parameter 'str' here void parm_color (const char *str, unsigned char *ptr, unsigned char *ref); ^ parse_default.c:51:33: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((str=xmlGetProp(Doc[n].cur,"align"))) ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_default.c:53:15: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(str,"right")) ^~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ parse_default.c:55:15: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(str,"left")) ^~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ parse_default.c:57:15: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(str,"center")) ^~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ parse_default.c:59:15: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(str,"justify")) ^~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ 43 warnings generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" parse_bookmark.c In file included from parse_bookmark.c:1: ./defs.h:117:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] parse_bookmark(), ^ parse_bookmark.c:3:5: note: conflicting prototype is here int parse_bookmark(xmlNodePtr p) { ^ parse_bookmark.c:7:32: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] open = parm_bool(xmlGetProp(p,"open"),false); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_bookmark.c:7:19: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] open = parm_bool(xmlGetProp(p,"open"),false); ^~~~~~~~~~~~~~~~~~~~ ./parm.h:6:31: note: passing argument to parameter 'str' here bool parm_bool (const char *str, bool ref); ^ parse_bookmark.c:9:25: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!(buf=xmlGetProp(p,"node"))) ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_bookmark.c:11:12: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] else node=atoi(buf); ^ parse_bookmark.c:13:25: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!(buf=xmlGetProp(p,"name"))) { ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_bookmark.c:15:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ parse_bookmark.c:15:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' parse_bookmark.c:23:28: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] PDF_add_bookmark(DocS.p,buf,node,open)); ^~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/pdflib.h:582:38: note: passing argument to parameter 'text' here PDF_add_bookmark(PDF *p, const char *text, int parent, int open); ^ 8 warnings generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" parse_add.c parse_add.c:15:31: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *type=xmlGetProp(Doc[n].cur,"type"), ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_add.c:16:31: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *name=xmlGetProp(Doc[n].cur,"name"); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_add.c:20:14: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(type,"color")) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ parse_add.c:25:16: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(name,DocS.add.colors[i].name)) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ parse_add.c:32:4: warning: call to undeclared library function 'realloc' with type 'void *(void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] realloc(DocS.add.colors, sizeof(struct_colors)*(i+1)); ^ parse_add.c:32:4: note: include the header <stdlib.h> or explicitly provide a declaration for 'realloc' parse_add.c:33:35: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] DocS.add.colors[i].name=(char *)malloc(strlen(name)+1); ^ parse_add.c:33:35: note: include the header <stdlib.h> or explicitly provide a declaration for 'malloc' parse_add.c:33:49: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] DocS.add.colors[i].name=(char *)malloc(strlen(name)+1); ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ parse_add.c:34:34: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(DocS.add.colors[i].name,name); ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/secure/_string.h:84:33: note: expanded from macro 'strcpy' __builtin___strcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^~~~~~~~~~~ parse_add.c:35:14: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_color(str,DocS.add.colors[i].rgb,Doc[n].std.text_c); ^~~ ./parm.h:8:31: note: passing argument to parameter 'str' here void parm_color (const char *str, unsigned char *ptr, unsigned char *ref); ^ parse_add.c:38:14: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(type,"size")) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ parse_add.c:41:14: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(type,"page")) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ 11 warnings generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" parse_list.c In file included from parse_list.c:1: ./defs.h:122:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] parse_list(); ^ parse_list.c:3:5: note: conflicting prototype is here int parse_list(xmlNodePtr page ) ^ parse_list.c:8:26: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] titol = xmlGetProp(page,"titol"); ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_list.c:9:23: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ( xmlGetProp(page,"depth") ) ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_list.c:10:11: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] depth = atoi(xmlGetProp(page,"depth") ); ^ parse_list.c:10:32: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] depth = atoi(xmlGetProp(page,"depth") ); ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_list.c:12:25: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] type = xmlGetProp(page,"type"); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_list.c:14:22: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (type && !strcmp(type,"index") && xmlGetProp(page,"pag") ) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ parse_list.c:14:55: warning: passing 'char[4]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (type && !strcmp(type,"index") && xmlGetProp(page,"pag") ) ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_list.c:16:30: warning: passing 'char[4]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] pag = atoi(xmlGetProp(page,"pag")); ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_list.c:18:22: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if( type && !strcmp(type,"index") && !xmlGetProp(page,"pag") ) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ parse_list.c:18:56: warning: passing 'char[4]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if( type && !strcmp(type,"index") && !xmlGetProp(page,"pag") ) ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_list.c:23:30: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_color( xmlGetProp(page,"color"), ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_list.c:23:14: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_color( xmlGetProp(page,"color"), ^~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:8:31: note: passing argument to parameter 'str' here void parm_color (const char *str, unsigned char *ptr, unsigned char *ref); ^ parse_list.c:25:25: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] link = xmlGetProp(page,"link"); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_list.c:31:23: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ( xmlGetProp(page,"space") ) ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_list.c:32:30: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] space=atoi(xmlGetProp(page,"space")); ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_list.c:34:17: warning: assigning to 'xmlChar *' (aka 'unsigned char *') from 'char[7]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!type) type="normal"; ^~~~~~~~~ parse_list.c:36:14: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] output_list(titol , type , depth , pag , link, space ); ^~~~~ ./output.h:25:21: note: passing argument to parameter 'titol' here output_list (char *titol,char *type , ^ parse_list.c:36:22: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] output_list(titol , type , depth , pag , link, space ); ^~~~ ./output.h:25:33: note: passing argument to parameter 'type' here output_list (char *titol,char *type , ^ 19 warnings generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" parse_sep.c In file included from parse_sep.c:1: ./defs.h:119:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] parse_sep(), ^ parse_sep.c:3:5: note: conflicting prototype is here int parse_sep(xmlNodePtr page) ^ parse_sep.c:10:29: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_color(xmlGetProp(page,"color"),Doc[n].now.text_c,Doc[n].std.text_c); ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_sep.c:10:13: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] parm_color(xmlGetProp(page,"color"),Doc[n].now.text_c,Doc[n].std.text_c); ^~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:8:31: note: passing argument to parameter 'str' here void parm_color (const char *str, unsigned char *ptr, unsigned char *ref); ^ parse_sep.c:12:36: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] line = parm_value(xmlGetProp(page,"line"), &line, 100); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_sep.c:12:20: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] line = parm_value(xmlGetProp(page,"line"), &line, 100); ^~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:9:25: note: passing argument to parameter 'str' here int parm_value (char *str,int *ref,int total); ^ parse_sep.c:13:37: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] space = parm_value(xmlGetProp(page,"space"), &space, 100); ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_sep.c:13:21: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] space = parm_value(xmlGetProp(page,"space"), &space, 100); ^~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:9:25: note: passing argument to parameter 'str' here int parm_value (char *str,int *ref,int total); ^ parse_sep.c:14:37: warning: passing 'char[5]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] size = parm_value(xmlGetProp(page,"size"), &size, 100); ^~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_sep.c:14:21: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] size = parm_value(xmlGetProp(page,"size"), &size, 100); ^~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:9:25: note: passing argument to parameter 'str' here int parm_value (char *str,int *ref,int total); ^ parse_sep.c:15:37: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] width = parm_value(xmlGetProp(page,"width"), &width, ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ parse_sep.c:15:21: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] width = parm_value(xmlGetProp(page,"width"), &width, ^~~~~~~~~~~~~~~~~~~~~~~~ ./parm.h:9:25: note: passing argument to parameter 'str' here int parm_value (char *str,int *ref,int total); ^ 11 warnings generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" output_t.c In file included from output_t.c:1: ./output.h:27:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] output_t(); ^ output_t.c:4:6: note: conflicting prototype is here void output_t(unsigned char *str) ^ output_t.c:9:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] len = strlen(str); ^~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ output_t.c:22:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] i+=strlen(str+i)+1; ^~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ output_t.c:39:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for( i=0;i<len;i+=strlen(str+i)+1 ) ^~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ output_t.c:42:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for(j=0;j<strlen(str+i);j++) ^~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ output_t.c:55:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for(i=0;i<len;i+=strlen(str+i)+1 ) ^~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ output_t.c:70:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for( i=0; i<len; i+=strlen(str+i)+1 ) ^~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ output_t.c:72:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strlen(str+i)+(int)(Doc[n].now.textx/10)>78) ^~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ output_t.c:89:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] len2=(int)((78-strlen(str+i))/2); ^~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ output_t.c:114:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for (i=0;i<len;i+=strlen(str+i)+1) ^~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ output_t.c:118:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] j=PDF_stringwidth(DocS.p,str+i,Doc[n].now.font,Doc[n].now.fsize); ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/pdflib.h:289:37: note: passing argument to parameter 'text' here PDF_stringwidth(PDF *p, const char *text, int font, float size); ^ output_t.c:122:32: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Doc[n].now.textx)*strlen(str+i))/j)-3; ^~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ output_t.c:131:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] PDF_stringwidth(DocS.p,str+i,Doc[n].now.font,Doc[n].now.fsize) )/2; ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/pdflib.h:289:37: note: passing argument to parameter 'text' here PDF_stringwidth(PDF *p, const char *text, int font, float size); ^ output_t.c:136:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] PDF_stringwidth(DocS.p,str+i,Doc[n].now.font,Doc[n].now.fsize) ); ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/pdflib.h:289:37: note: passing argument to parameter 'text' here PDF_stringwidth(PDF *p, const char *text, int font, float size); ^ output_t.c:143:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for( ws=0.0f,l=PDF_stringwidth(DocS.p,str+i,Doc[n].now.font,Doc[n].now.fsize); ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/pdflib.h:289:37: note: passing argument to parameter 'text' here PDF_stringwidth(PDF *p, const char *text, int font, float size); ^ output_t.c:150:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] l=PDF_stringwidth(DocS.p,str+i, ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/pdflib.h:289:37: note: passing argument to parameter 'text' here PDF_stringwidth(PDF *p, const char *text, int font, float size); ^ output_t.c:185:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] PDF_show(DocS.p,str+i); ^~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/pdflib.h:258:30: note: passing argument to parameter 'text' here PDF_show(PDF *p, const char *text); ^ output_t.c:217:16: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(Doc[n].now.fnt,"Helvetica",9)) ^~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:84:26: note: passing argument to parameter '__s1' here int strncmp(const char *__s1, const char *__s2, size_t __n); ^ output_t.c:220:16: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(Doc[n].now.fnt,"Courier",7)) ^~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:84:26: note: passing argument to parameter '__s1' here int strncmp(const char *__s1, const char *__s2, size_t __n); ^ output_t.c:226:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for(i=0;i<len;i+=strlen(str+i)+1) ^~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ output_t.c:231:16: warning: passing 'xmlChar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(Doc[n].now.fnt,"Courier",7)) ^~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:84:26: note: passing argument to parameter '__s1' here int strncmp(const char *__s1, const char *__s2, size_t __n); ^ 21 warnings generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" output_doc.c output_doc.c:14:4: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ output_doc.c:14:4: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' 1 warning generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" output_img.c gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" output_info.c output_info.c:6:43: warning: passing 'char[8]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] char *creator = xmlGetProp(Doc[n].cur,"creator"), ^~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ output_info.c:6:9: warning: initializing 'char *' with an expression of type 'xmlChar *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] char *creator = xmlGetProp(Doc[n].cur,"creator"), ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ output_info.c:7:38: warning: passing 'char[7]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *author = xmlGetProp(Doc[n].cur,"author"), ^~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ output_info.c:7:4: warning: initializing 'char *' with an expression of type 'xmlChar *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *author = xmlGetProp(Doc[n].cur,"author"), ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ output_info.c:8:38: warning: passing 'char[6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *title = xmlGetProp(Doc[n].cur,"title"), ^~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ output_info.c:8:4: warning: initializing 'char *' with an expression of type 'xmlChar *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *title = xmlGetProp(Doc[n].cur,"title"), ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ output_info.c:9:38: warning: passing 'char[8]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *subject = xmlGetProp(Doc[n].cur,"subject"), ^~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ output_info.c:9:4: warning: initializing 'char *' with an expression of type 'xmlChar *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *subject = xmlGetProp(Doc[n].cur,"subject"), ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ output_info.c:10:38: warning: passing 'char[9]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *keywords = xmlGetProp(Doc[n].cur,"keywords"), ^~~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ output_info.c:10:4: warning: initializing 'char *' with an expression of type 'xmlChar *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *keywords = xmlGetProp(Doc[n].cur,"keywords"), ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ output_info.c:11:38: warning: passing 'char[8]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *trapped = xmlGetProp(Doc[n].cur,"trapped"); ^~~~~~~~~ /Users/pbulk/build/textproc/xml2doc/work/.buildlink/include/libxml2/libxml/tree.h:1067:22: note: passing argument to parameter 'name' here const xmlChar *name); ^ output_info.c:11:4: warning: initializing 'char *' with an expression of type 'xmlChar *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *trapped = xmlGetProp(Doc[n].cur,"trapped"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ output_info.c:39:5: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ output_info.c:39:5: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' 13 warnings generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" output_page.c gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" output_sep.c gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" output_list.c output_list.c:34:43: warning: invalid conversion specifier '"' [-Wformat-invalid-specifier] fprintf(DocS.fd , "<TABLE width=\"100\%\"> "); ~~^ output_list.c:43:13: warning: passing arguments to 'output_t' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] output_t(titol); ^ output_list.c:50:38: warning: invalid conversion specifier '"' [-Wformat-invalid-specifier] fprintf(DocS.fd, "<TD width=\"90%\">"); ~^ output_list.c:54:13: warning: passing arguments to 'output_t' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] output_t(titol); ^ 4 warnings generated. gcc -I/opt/pkg/include/libxml2 -I/opt/pkg/include -pipe -Os -c -I. -DWITH_PDF -I/opt/pkg/include -DVERSION=\"20030510\" parm.c parm.c:58:26: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (plus) ret+=(total*atoi(str+ptr)/100); ^ parm.c:61:19: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (plus) ret+=atoi(str+ptr); ^ parm.c:67:13: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] } else ret=atoi(str); ^ 3 warnings generated. [32mLinking objects...[0m gcc -L/opt/pkg/lib -L/opt/pkg/lib -lxml2 -L/opt/pkg/lib -lpdf -L/opt/pkg/lib -lpng -ltiff -lz main.o defs.o parse.o parse_include.o parse_info.o parse_img.o parse_t.o parse_page.o parse_default.o parse_bookmark.o parse_add.o parse_list.o parse_sep.o output_t.o output_doc.o output_img.o output_info.o output_page.o output_sep.o output_list.o parm.o -o xml2doc Stripping symbols... fatal error: /Library/Developer/CommandLineTools/usr/bin/strip: no files specified gmake[1]: *** [Makefile:34: build] Error 1 gmake[1]: Leaving directory '/Users/pbulk/build/textproc/xml2doc/work/xml2doc/src' gmake: *** [Makefile:11: build] Error 2 *** Error code 2 Stop. bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/textproc/xml2doc *** Error code 1 Stop. bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/textproc/xml2doc