Problem compiling on CentOS - Mailing list pgsql-general

From Robin Ericsson
Subject Problem compiling on CentOS
Date
Msg-id c014a9590706191542k38139ebev7a615c7bc5f0f8db@mail.gmail.com
Whole thread Raw
Responses Re: Problem compiling on CentOS
List pgsql-general
Hi,

I'm trying to recompile the SRPM with ldap support (maybe this should
be added as an option to the spec?) but it fails to check for ldap_r
due to problems finding my pthread flag in configure.

Snip from configure:
checking whether pthreads work with -pthread... no
...
checking for ldap_simple_bind in -lldap_r... no
configure: error: library 'ldap_r' is required for LDAP

checking the log for why pthread failed:
configure:16390: checking whether pthreads work with -pthread
configure:16478: gcc -o conftest -O2 -g -march=i386 -mcpu=i686
-I/usr/include/et -Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-pthread -D_GNU_SOURCE  -I/usr/include   -L/usr/lib conftest.c   -lpam
-lssl -lcrypto -lkrb5 -lz -lreadline -ltermcap -lcrypt -ldl -lm  >&5
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
conftest.c: In function 'main':
conftest.c:139: warning: null argument where non-null required (argument 1)
conftest.c:140: warning: null argument where non-null required (argument 1)
conftest.c:140: warning: null argument where non-null required (argument 3)
conftest.c:138: warning: 'th' is used uninitialized in this function
configure:16484: $? = 0
configure:16488: test -z
                         || test ! -s conftest.err
configure:16491: $? = 0
configure:16494: test -s conftest
configure:16497: $? = 0
configure:16535: result: no

Any ideas? This is a CentOS5 installation, only special I can think of
is that it runs as Xen domU, and I have the same problem on the dom0,
no non Xen available at the moment.

--
        regards,
        Robin

pgsql-general by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Historical Data Question
Next
From: Rich Shepard
Date:
Subject: Re: Historical Data Question