pxtools icon indicating copy to clipboard operation
pxtools copied to clipboard

Needed build instructions

Open simolev opened this issue 3 years ago • 1 comments

I feel there's a need for build instructions since this repo doesn't come with the paradigmal ./configure. Also, there's a weirdness in that both po/makefile.in and po/Makefile.in.in are needed. For latest commit 53c164b from 14 Sep 2015, this is what worked for me on Ubuntu 20.04:

git clone https://github.com/ustramooner/pxtools.git
cd pxtools
apt install automake gettext
cp po/Makefile.in.in po/Makefile.in
./autogen.sh
./configure
make
sudo make install

simolev avatar Jun 24 '21 09:06 simolev

After "make" command i get below errors. Can You help resolve this? Ubuntu 22.04

ubuntu@ubuntu:~/Pulpit/pxview/pxtoolss$ make make all-recursive make[1]: Wejście do katalogu '/home/ubuntu/Pulpit/pxview/pxtoolss' Making all in src make[2]: Wejście do katalogu '/home/ubuntu/Pulpit/pxview/pxtoolss/src' CC pxparse.o pxparse.c: In function ‘PXparseBlocks’: pxparse.c:337:41: warning: pointer targets in passing argument 2 of ‘copy_from_le’ differ in signedness [-Wpointer-sign] 337 | copy_from_le(x, block + block_index, size);
| ~~~~~~^~~~~~~~~~~~~ | | | unsigned char * pxparse.c:344:17: note: in expansion of macro ‘BLOCK_COPY_S’ 344 | BLOCK_COPY_S(&nextBlock, sizeof(nextBlock)); | ^~~~~~~~~~~~ In file included from pxparse.c:10: pxconvert.h:18:42: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 18 | void copy_from_le(void *dst, const char *src, int len); | ~~~~~~~~~~~~^~~ pxparse.c:337:41: warning: pointer targets in passing argument 2 of ‘copy_from_le’ differ in signedness [-Wpointer-sign] 337 | copy_from_le(x, block + block_index, size);
| ~~~~~~^~~~~~~~~~~~~ | | | unsigned char * pxparse.c:345:17: note: in expansion of macro ‘BLOCK_COPY_S’ 345 | BLOCK_COPY_S(&prevBlock, sizeof(prevBlock)); | ^~~~~~~~~~~~ In file included from pxparse.c:10: pxconvert.h:18:42: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 18 | void copy_from_le(void *dst, const char *src, int len); | ~~~~~~~~~~~~^~~ pxparse.c:337:41: warning: pointer targets in passing argument 2 of ‘copy_from_le’ differ in signedness [-Wpointer-sign] 337 | copy_from_le(x, block + block_index, size);
| ~~~~~~^~~~~~~~~~~~~ | | | unsigned char * pxparse.c:346:17: note: in expansion of macro ‘BLOCK_COPY_S’ 346 | BLOCK_COPY_S(&addDataSize, sizeof(addDataSize)); | ^~~~~~~~~~~~ In file included from pxparse.c:10: pxconvert.h:18:42: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 18 | void copy_from_le(void *dst, const char *src, int len); | ~~~~~~~~~~~~^~~ CC pxconvert.o pxconvert.c: In function ‘PXtoDouble’: pxconvert.c:172:32: warning: pointer targets in passing argument 2 of ‘copy_from_be’ differ in signedness [-Wpointer-sign] 172 | copy_from_be(d,s,8); | ^ | | | unsigned char * pxconvert.c:69:43: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 69 | void copy_from_be(void *_dst, const char *src, int len) { | ~~~~~~~~~~~~^~~ pxconvert.c:176:34: warning: pointer targets in passing argument 1 of ‘fix_sign’ differ in signedness [-Wpointer-sign] 176 | fix_sign(d, 8); | ^ | | | unsigned char * pxconvert.c:93:22: note: expected ‘char *’ but argument is of type ‘unsigned char *’ 93 | void fix_sign (char *dst, int len) { | ~~~~~~^~~ pxconvert.c: In function ‘PXNametoQuotedName’: pxconvert.c:347:28: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 347 | unsigned char *s = str; | ^~~ pxconvert.c: In function ‘PXMEMOtoString’: pxconvert.c:453:29: warning: variable ‘_length’ set but not used [-Wunused-but-set-variable] 453 | int _start, _length; | ^~~~~~~ pxconvert.c: In function ‘PXBLOBtoBinary’: pxconvert.c:570:29: warning: variable ‘_length’ set but not used [-Wunused-but-set-variable] 570 | int _start, _length; | ^~~~~~~ pxconvert.c: In function ‘PXMEMOtoString’: pxconvert.c:420:17: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 420 | read(fd, head, sizeof(head)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ pxconvert.c:461:17: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 461 | read(fd, head, sizeof(head)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ pxconvert.c: In function ‘PXBLOBtoBinary’: pxconvert.c:536:17: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 536 | read(fd, head, sizeof(head)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ pxconvert.c:578:17: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 578 | read(fd, head, sizeof(head)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘copy_from_le’, inlined from ‘PXMEMOtoString’ at pxconvert.c:424:3: pxconvert.c:88:24: warning: ‘__builtin_memcpy’ forming offset [9, 10] is out of the bounds [0, 9] of object ‘head’ with type ‘char[9]’ [-Warray-bounds] 88 | dst[i] = src[i]; | ~~~~~~~^~~~~~~~ pxconvert.c: In function ‘PXMEMOtoString’: pxconvert.c:415:22: note: ‘head’ declared here 415 | char head[9]; | ^~~~ In function ‘copy_from_le’, inlined from ‘PXBLOBtoBinary’ at pxconvert.c:540:3: pxconvert.c:88:24: warning: ‘__builtin_memcpy’ forming offset [9, 10] is out of the bounds [0, 9] of object ‘head’ with type ‘char[9]’ [-Warray-bounds] 88 | dst[i] = src[i]; | ~~~~~~~^~~~~~~~ pxconvert.c: In function ‘PXBLOBtoBinary’: pxconvert.c:531:22: note: ‘head’ declared here 531 | char head[9]; | ^~~~ CC pxinfo.o pxinfo.c: In function ‘showRecord’: pxinfo.c:154:48: warning: pointer targets in passing argument 2 of ‘PXtoQuotedString’ differ in signedness [-Wpointer-sign] 154 | PXtoQuotedString(qstr, str, felder[i]->type); | ^~~ | | | char * In file included from pxinfo.c:15: pxconvert.h:13:58: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ 13 | int PXtoQuotedString(char *dst, const unsigned char *src, int type); | ~~~~~~~~~~~~~~~~~~~~~^~~ CCLD pxinfo CC pxsqldump.o pxsqldump.c: In function ‘create_sql_CREATE’: pxsqldump.c:37:22: warning: pointer targets in passing argument 1 of ‘quote’ differ in signedness [-Wpointer-sign] 37 | name = quote(PXNametoQuotedName(header->tableName), name_quoting); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * pxsqldump.c:30:35: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ 30 | char * quote(const unsigned char *src, const unsigned int name_quoting); | ~~~~~~~~~~~~~~~~~~~~~^~~ pxsqldump.c:44:30: warning: pointer targets in passing argument 1 of ‘quote’ differ in signedness [-Wpointer-sign] 44 | name = quote(PXNametoQuotedName(felder[i]->name), name_quoting); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * pxsqldump.c:30:35: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ 30 | char * quote(const unsigned char *src, const unsigned int name_quoting); | ~~~~~~~~~~~~~~~~~~~~~^~~ pxsqldump.c: In function ‘create_sql_INSERT’: pxsqldump.c:95:28: warning: pointer targets in passing argument 1 of ‘quote’ differ in signedness [-Wpointer-sign] 95 | name = quote(header->tableName, name_quoting); | ~~~~~~^~~~~~~~~~~ | | | char * pxsqldump.c:30:35: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ 30 | char * quote(const unsigned char *src, const unsigned int name_quoting); | ~~~~~~~~~~~~~~~~~~~~~^~~ pxsqldump.c:115:48: warning: pointer targets in passing argument 2 of ‘PXtoQuotedString’ differ in signedness [-Wpointer-sign] 115 | PXtoQuotedString(qstr, str, felder[i]->type); | ^~~ | | | char * In file included from pxsqldump.c:15: pxconvert.h:13:58: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ 13 | int PXtoQuotedString(char *dst, const unsigned char *src, int type); | ~~~~~~~~~~~~~~~~~~~~~^~~ pxsqldump.c:116:44: warning: pointer targets in passing argument 1 of ‘str_to_sql’ differ in signedness [-Wpointer-sign] 116 | qqstr = str_to_sql(qstr); | ^~~~ | | | char * pxsqldump.c:28:40: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ 28 | char * str_to_sql(const unsigned char *src); | ~~~~~~~~~~~~~~~~~~~~~^~~ pxsqldump.c:330:50: warning: pointer targets in passing argument 1 of ‘str_to_sql’ differ in signedness [-Wpointer-sign] 330 | qqstr = str_to_sql(s ? s : (char *)blob); | ~~~~~~^~~~~~~~~~~~~~ | | | char * pxsqldump.c:28:40: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ 28 | char * str_to_sql(const unsigned char *src); | ~~~~~~~~~~~~~~~~~~~~~^~~ pxsqldump.c: In function ‘quote’: pxsqldump.c:498:39: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 498 | len = (name_quoting) ? strlen(src) + 2 : strlen(src); | ^~~ | | | const unsigned char * In file included from pxsqldump.c:6: /usr/include/string.h:407:35: note: expected ‘const char *’ but argument is of type ‘const unsigned char *’ 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ pxsqldump.c:498:57: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 498 | len = (name_quoting) ? strlen(src) + 2 : strlen(src); | ^~~ | | | const unsigned char * In file included from pxsqldump.c:6: /usr/include/string.h:407:35: note: expected ‘const char *’ but argument is of type ‘const unsigned char *’ 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ pxsqldump.c:500:75: warning: pointer targets in passing argument 2 of ‘strcpy’ differ in signedness [-Wpointer-sign] 500 | (name_quoting) ? (void) sprintf(dst, ""%s"", src) : strcpy(dst, src); | ^~~ | | | const unsigned char * In file included from /usr/include/features.h:486, from /usr/include/unistd.h:25, from pxsqldump.c:1: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:77:1: note: expected ‘const char * restrict’ but argument is of type ‘const unsigned char *’ 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ CCLD pxsqldump CC pxcsvdump.o pxcsvdump.c: In function ‘create_csv_line’: pxcsvdump.c:71:45: warning: pointer targets in passing argument 2 of ‘PXtoCSVString’ differ in signedness [-Wpointer-sign] 71 | PXtoCSVString(qstr, str, felder[i]->type); | ^~~ | | | char * pxcsvdump.c:23:51: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ 23 | int PXtoCSVString(char *dst, const unsigned char *src, int type) | ~~~~~~~~~~~~~~~~~~~~~^~~ pxcsvdump.c:72:48: warning: pointer targets in passing argument 2 of ‘PXtoQuotedString’ differ in signedness [-Wpointer-sign] 72 | PXtoQuotedString(qstr, qstr, felder[i]->type); | ^~~~ | | | char * In file included from pxcsvdump.c:19: pxconvert.h:13:58: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ 13 | int PXtoQuotedString(char *dst, const unsigned char *src, int type); | ~~~~~~~~~~~~~~~~~~~~~^~~ pxcsvdump.c:265:53: warning: pointer targets in passing argument 2 of ‘PXtoCSVString’ differ in signedness [-Wpointer-sign] 265 | PXtoCSVString(qstr, s, felder[i]->type); | ^ | | | char * pxcsvdump.c:23:51: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ 23 | int PXtoCSVString(char *dst, const unsigned char *src, int type) | ~~~~~~~~~~~~~~~~~~~~~^~~ pxcsvdump.c:266:56: warning: pointer targets in passing argument 2 of ‘PXtoQuotedString’ differ in signedness [-Wpointer-sign] 266 | PXtoQuotedString(qstr, qstr, felder[i]->type); | ^~~~ | | | char * In file included from pxcsvdump.c:19: pxconvert.h:13:58: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ 13 | int PXtoQuotedString(char *dst, const unsigned char *src, int type); | ~~~~~~~~~~~~~~~~~~~~~^~~ pxcsvdump.c:274:53: warning: pointer targets in passing argument 2 of ‘PXtoCSVString’ differ in signedness [-Wpointer-sign] 274 | PXtoCSVString(qstr, (char *)blob, felder[i]->type); | ^~~~~~~~~~~~ | | | char * pxcsvdump.c:23:51: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ 23 | int PXtoCSVString(char *dst, const unsigned char *src, int type) | ~~~~~~~~~~~~~~~~~~~~~^~~ pxcsvdump.c:275:56: warning: pointer targets in passing argument 2 of ‘PXtoQuotedString’ differ in signedness [-Wpointer-sign] 275 | PXtoQuotedString(qstr, qstr, felder[i]->type); | ^~~~ | | | char * In file included from pxcsvdump.c:19: pxconvert.h:13:58: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ 13 | int PXtoQuotedString(char *dst, const unsigned char *src, int type); | ~~~~~~~~~~~~~~~~~~~~~^~~ pxcsvdump.c:310:41: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 310 | write(fd, s, s_size); | ^~~~~~~~~~~~~~~~~~~~ CCLD pxcsvdump CC pxxmldump.o pxxmldump.c: In function ‘get_xml_tag’: pxxmldump.c:42:44: warning: array subscript 11 is above array bounds of ‘const char [11]’ [-Warray-bounds] 42 | case PX_Field_Type_Time: return tags[11]; | ~~~~^~~~ pxxmldump.c:17:13: note: while referencing ‘tags’ 17 | const char tags [] = { | ^~~~ CCLD pxxmldump make[2]: Opuszczenie katalogu '/home/ubuntu/Pulpit/pxview/pxtoolss/src' Making all in doc make[2]: Wejście do katalogu '/home/ubuntu/Pulpit/pxview/pxtoolss/doc' make[2]: Nie ma nic do zrobienia w 'all'. make[2]: Opuszczenie katalogu '/home/ubuntu/Pulpit/pxview/pxtoolss/doc' Making all in po make[2]: Wejście do katalogu '/home/ubuntu/Pulpit/pxview/pxtoolss/po' ( if test 'x.' != 'x.'; then
posrcprefix='../';
else
posrcprefix="../";
fi;
rm -f POTFILES-t POTFILES
&& (sed -e '/^#/d' -e '/^[ ]
$/d'
-e "s@.
@ $posrcprefix& \\@" < ./POTFILES.in
| sed -e '$s/\$//') > POTFILES-t
&& chmod a-w POTFILES-t
&& mv POTFILES-t POTFILES ) cd ..
&& CONFIG_FILES=po/Makefile.in CONFIG_HEADERS=
/bin/sh ./config.status config.status: creating po/Makefile.in config.status: WARNING: 'po/Makefile.in.in' seems to ignore the --datarootdir setting config.status: executing depfiles commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile make[2]: Nie ma nic do zrobienia w 'all'. make[2]: Opuszczenie katalogu '/home/ubuntu/Pulpit/pxview/pxtoolss/po' make[2]: Wejście do katalogu '/home/ubuntu/Pulpit/pxview/pxtoolss' make[2]: Opuszczenie katalogu '/home/ubuntu/Pulpit/pxview/pxtoolss' make[1]: Opuszczenie katalogu '/home/ubuntu/Pulpit/pxview/pxtoolss'

pcholewa avatar Feb 07 '24 13:02 pcholewa