[Zope-DB] Trouble compiling Popy

Leonardo Fernandes leonardo.fernandes@ic.unicamp.br
Fri, 07 Feb 2003 10:08:02 -0200


Hello, I`m having some trouble to compile popy. I wonder if anyone could
help.

I type:

$ CPP=gcc ./configure --with-mxdatetime-headers=/usr/include
--with-postgres-includes=/usr/local/pgsql/include/
--with-postgres-libraries=/usr/local/pgsql/lib/

and get:

loading cache ./config.cache
checking for python... /usr/bin/python
checking python version... 1.5
checking python installation prefix... /usr
checking python installation exec_prefix... /usr
checking definitions in Python library makefile... sed: can't read
/usr/lib/python1.5/config/Makefile: No such file or directory
done
checking for install... /usr/bin/install
checking location of python library...
$(prefix)/lib/python1.5/site-packages
checking location of python shared modules...
$(exec_prefix)/lib/python1.5/site-packages
checking location of mxDateTime...
/usr/lib/python1.5/site-packages/DateTime
checking for PQconnectStart in -lpq... no
configure: error: can't build without PostgreSQL libraries

Here is some additional info:

$ ls /usr/local/pgsql/include/
Makefile     ecpgerrno.h  hash.h    lib          pg_config.h
printtup.h    skey.h       tupdesc.h
access       ecpglib.h    heapam.h  libpq        pg_config.h.in
regex         sql3types.h  tupmacs.h
attnum.h     ecpgtype.h   hio.h     libpq-fe.h   pg_config.h.win32
relscan.h     sqlca.h      tuptoaster.h
bootstrap    executor     htup.h    mb           pg_config_os.h
rewrite       stamp-h      utils
c.h          fmgr.h       ibit.h    miscadmin.h  pgstat.h
rmgr.h        storage      valid.h
catalog      funcapi.h    internal  nbtree.h     port
rtree.h       strat.h      xact.h
clog.h       genam.h      iqual.h   nodes        postgres.h
rtscan.h      strdup.h     xlog.h
commands     gist.h       istrat.h  optimizer    postgres_ext.h
rusagestub.h  tcop         xlogdefs.h
dynloader.h  gistscan.h   itup.h    parser       postgres_fe.h
sdir.h        transam.h    xlogutils.h


$ ls /usr/local/pgsql/lib/
ascii_and_mic.so       latin_and_mic.so  libpq.so.2
utf8_and_euc_jp.so     utf8_and_johab.so
cyrillic_and_mic.so    libecpg.a         libpq.so.2.2
utf8_and_euc_kr.so     utf8_and_sjis.so
euc_cn_and_mic.so      libecpg.so        plpgsql.so
utf8_and_euc_tw.so     utf8_and_tcvn.so
euc_jp_and_sjis.so     libecpg.so.3      utf8_and_ascii.so
utf8_and_gb18030.so    utf8_and_uhc.so
euc_kr_and_mic.so      libecpg.so.3.4.0  utf8_and_big5.so
utf8_and_gbk.so        utf8_and_win1250.so
euc_tw_and_big5.so     libpq.a           utf8_and_cyrillic.so
utf8_and_iso8859.so    utf8_and_win1256.so
latin2_and_win1250.so  libpq.so          utf8_and_euc_cn.so
utf8_and_iso8859_1.so  utf8_and_win874.so

$ ldd /usr/local/pgsql/lib/libpq.so
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40017000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x40045000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40054000)
        libc.so.6 => /lib/libc.so.6 (0x4006a000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

The config.log file:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:566: checking for python
configure:613: checking python version
configure:645: checking python installation prefix
configure:674: checking python installation exec_prefix
configure:693: checking definitions in Python library makefile
configure:785: checking for install
configure:823: checking location of python library
configure:844: checking location of python shared modules
configure:1052: checking location of mxDateTime
configure:1063: checking for PQconnectStart in -lpq
configure:1082:  -o conftest   -L/usr/local/pgsql/lib/  conftest.c -lpq
-lcrypt$
./configure: -o: command not found
configure: failed program was:
#line 1071 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char PQconnectStart();

int main() {
PQconnectStart()
; return 0; }

Thank you.