Обсуждение: postgres build with xml support on Ubuntu 12.04 LTS
Hi
I tried to build postgres with libxml and libxslt and see the following errors in the config.log file.Please let me know if you need more information.
Raj
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by PostgreSQL configure 9.2.2, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ ./configure --prefix=/home/rajanikanth/POSTGRES --with-libxml --with-libxslt
## --------- ##
## Platform. ##
## --------- ##
hostname = Vishwam
uname -m = x86_64
uname -r = 3.2.0-35-generic
uname -s = Linux
uname -v = #55-Ubuntu SMP Wed Dec 5 17:42:16 UTC 2012
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /home/rajanikanth/POSTGRES/bin
PATH: /usr/lib/lightdm/lightdm
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
configure:7493: gcc -o conftest -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -D_GNU_SOURCE -I/usr/include/libxml2 -L/usr/lib/x86_64-linux-gnu conftest.c -lm >&5
configure:7500: $? = 0
configure:7521: result: yes
configure:7532: checking for library containing setproctitle
configure:7573: gcc -o conftest -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -D_GNU_SOURCE -I/usr/include/libxml2 -L/usr/lib/x86_64-linux-gnu conftest.c -lm >&5
/tmp/ccp1EA6e.o: In function `main':
conftest.c:(.text.startup+0x7): undefined reference to `setproctitle'
collect2: ld returned 1 exit status
configure:7493: gcc -o conftest -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -D_GNU_SOURCE -I/usr/include/libxml2 -L/usr/lib/x86_64-linux-gnu conftest.c -lm >&5
configure:7500: $? = 0
configure:7521: result: yes
configure:7532: checking for library containing setproctitle
configure:7573: gcc -o conftest -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -D_GNU_SOURCE -I/usr/include/libxml2 -L/usr/lib/x86_64-linux-gnu conftest.c -lm >&5
/tmp/ccp1EA6e.o: In function `main':
conftest.c:(.text.startup+0x7): undefined reference to `setproctitle'
collect2: ld returned 1 exit status
Rajanikanth Jammalamadaka <rajanikanth@gmail.com> writes: > I tried to build postgres with libxml and libxslt and see the following > errors in the config.log file. I don't see any errors there. The extract of the log that you quoted seems to just be configure finding out that your platform doesn't have setproctitle(), which is hardly surprising on Linux (it's a BSD-ism). In any case that would have nothing to do with libxml or libxslt. What actual problem are you having? regards, tom lane