Thread: Compiling Postgresq 7.2.1l with 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
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