[Buildroot] [PATCH v1] postgresql: fix xtensa pthread linking flags

Max Filippov jcmvbkbc at gmail.com
Thu Mar 19 21:42:04 UTC 2015


On Fri, Mar 20, 2015 at 12:29 AM, Peter Seiderer <ps.report at gmx.net> wrote:
> Caused by pthread flags autodetection failure while configure (from config.log):
> configure:12436: checking whether pthreads work with -pthread
> configure:12521: host/usr/bin/xtensa-linux-gcc -o conftest -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -mlongcalls -mtext-section-literals  -Os   -pthread -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE    conftest.c   -lssl -lcrypto -lz -lrt -lcrypt -ldl -lm  >&5
> conftest.c: In function 'main':
> conftest.c:140:27: warning: 'th' is used uninitialized in this function [-Wuninitialized]
>  pthread_t th; pthread_join(th, 0);
>                            ^
> host/usr/xtensa-buildroot-linux-uclibc/sysroot/usr/lib/libcrypto.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.
> configure:12521: $? = 0

But the test has actually succeeded according to the exit code.
Maybe we'd better fix configure?

> configure:12556: result: no

-- 
Thanks.
-- Max


More information about the buildroot mailing list