Open Aetherus opened 7 years ago
Hi,
Thank you for your information. The project is only tested on the CentOS and Ubuntu. Maybe the OS is not compatible.
2017-02-05 8:40 GMT+08:00 aetherus notifications@github.com:
OS: Elementary OS Loki Postgresql 9.5.5 Logged in as sudoer
Source downloaded into ~/Downloads/
Running command USE_PGXS=1 make
stdout:
[gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o pg_scws.o pg_scws.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/charset.o libscws/charset.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/crc32.o libscws/crc32.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/pool.o libscws/pool.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/scws.o libscws/scws.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/xdict.o libscws/xdict.c libscws/xdict.c: In function ‘_xdict_open_txt’: libscws/xdict.c:108:23: warning: ignoring return value of ‘realpath’, declared with attribute warn_unused_result [-Wunused-result]
define _realpath realpath
^
libscws/xdict.c:120:2: note: in expansion of macro ‘_realpath’ _realpath(fpath, buf); ^ gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/darray.o libscws/darray.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/rule.o libscws/rule.c libscws/rule.c: In function ‘scws_rule_new’: libscws/rule.c:190:17: warning: ‘rtail’ may be used uninitialized in this function [-Wmaybe-uninitialized] rtail->next = a; ^ gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/lock.o libscws/lock.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/xdb.o libscws/xdb.c libscws/xdb.c: In function ‘xdb_create’: libscws/xdb.c:233:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(x->fd, &xhdr, sizeof(xhdr)); ^ libscws/xdb.c: In function ‘xdb_close’: libscws/xdb.c:255:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(x->fd, &x->fsize, sizeof(x->fsize)); ^ libscws/xdb.c: In function ‘_xdb_read_data’: libscws/xdb.c:61:3: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result] read(x->fd, buf, len); ^ libscws/xdb.c: In function ‘xdb_nput’: libscws/xdb.c:310:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(x->fd, value, vlen); ^ libscws/xdb.c:316:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(x->fd, &vlen, sizeof(vlen)); ^ libscws/xdb.c:339:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(x->fd, buf, pnew.len); ^ libscws/xdb.c:340:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(x->fd, value, vlen); ^ libscws/xdb.c:346:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(x->fd, &pnew, sizeof(pnew)); ^ libscws/xdb.c: In function ‘_xdb_reset_nodes’: libscws/xdb.c:531:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(x->fd, &ptr, sizeof(xptr_st)); ^ gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/xtree.o libscws/xtree.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -shared -o pg_scws.so pg_scws.o libscws/charset.o libscws/crc32.o libscws/pool.o libscws/scws.o libscws/xdict.o libscws/darray.o libscws/rule.o libscws/lock.o libscws/xdb.o libscws/xtree.o -L/usr/lib/x86_64-linux-gnu -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -L/usr/lib/mit-krb5 -L/usr/lib/x86_64-linux-gnu/mit-krb5 -Wl,--as-needed ](url)
Should I download the source into specific directory? Should I run make with sudo? Should I run make install with sudo?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jaiminpan/pg_scws/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ABVd6QLa2CuhnXWbKN1tsz6l7suL8uA5ks5rZRqHgaJpZM4L3VyD .
Same issue on CentOS as well. Linux VM_99_148_centos 3.10.0-514.26.2.el7.x86_64
Did some research on this.https://blog.pgaddict.com/posts/why-pgxn-distribution-tests-fail
@Aetherus It turned out to be the environment variable not preserved in sudo
sudo "PATH=$PATH" USE_PGXS=1 make install
OS: Elementary OS Loki Postgresql 9.5.5 Logged in as sudoer
Source downloaded into
~/Downloads/
Running command
USE_PGXS=1 make && make install
stdout:
Should I download the source into specific directory? Should I run
make
withsudo
? Should I runmake install
withsudo
?