Compiling Postgresq 7.2.1l with ODBC

From: Juan Castillo <Juan(at)Centillium(dot)com>
To: "'pgsql-odbc(at)postgresql(dot)org'" <pgsql-odbc(at)postgresql(dot)org>
Subject: Compiling Postgresq 7.2.1l with ODBC
Date: 2002-06-22 00:01:31
Message-ID: 3F070553DAF4D411B6F500306E0164EB15521E@mailhost.centillium.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc


I am trying to compile postgresql 7.2.1 with ODBC and having some problems.
I have compiled and installed both iodbc and unixODBC.

Is there anything specific that I have to do?. I read the INSTALL file and
did not see anything there.

These are a few lines of the output before it fails including the error.

dlg_specific.o: In function `getCommonDefaults':
dlg_specific.o(.text+0x37c0): undefined reference to `strcmp'
dlg_specific.o(.text+0x37e0): undefined reference to `strcpy'
dlg_specific.o(.text+0x381c): undefined reference to `strcpy'
dlg_specific.o(.text+0x38e8): undefined reference to `atoi'
dlg_specific.o(.text+0x3958): undefined reference to `strcmp'
dlg_specific.o(.text+0x3980): undefined reference to `strcpy'
dlg_specific.o(.text+0x39b4): undefined reference to `strcpy'
collect2: ld returned 1 exit status
make[3]: *** [libpsqlodbc.so.0.27] Error 1
make[3]: Leaving directory
`/var/local/sources/postgresql-7.2.1/src/interfaces/odbc'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/var/local/sources/postgresql-7.2.1/src/interfaces'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/local/sources/postgresql-7.2.1/src'
make: *** [all] Error 2

This is being compiled in a Sunblade 1000 with Solaris 8 and gcc 2.95.

It works if I don't use any of the ODBC options (--enable-odbc,
--with-iodbc, --with-unixodbc). I have compiled successfully using most of
the other options.

Thanks in advance for your help.


Juan Castillo
Centillium Communications
(510) 771-3478

Browse pgsql-odbc by date

  From Date Subject
Next Message Bruce Momjian 2002-06-22 04:02:36 Re: ODBC Patch to prevent setting of KSQO on 7.3+ servers
Previous Message Thomas Sandford 2002-06-21 21:53:25 "Multiple-step OLE DB operation generated errors" in pgAdmin II:frmSQLOutput.LoadGrid