Re: Trouble compiling for Solaris 8

From: nishad(at)ptolemy(dot)tlg(dot)uci(dot)edu
To: borschow(at)roguewave(dot)com (Janet Borschowa)
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: Trouble compiling for Solaris 8
Date: 2003-09-26 19:17:19
Message-ID: 200309261917.MAA05455@attalus2.tlg.uci.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Janet Borschowa wrote:
>
> Hi,
> Try using the configure option --enable-pthreads. The undefined symbols are
> defined in the pthread library on solaris.

Hey, thanks! It turned out that I needed -lsocket -- you definitely
put me on the right track.

So, would the developers please consider adding -lsocket -lnsl to
configure for solaris, permanently? It won't link unless you specify
both libraries.

Cheers,

Nishad

>
> ========================
> Janet Borschowa
> Software Engineer, Database Products
> Rogue Wave Software
> (541) 753-1931 FAX: (541) 757-4630
> mailto:borschow(at)roguewave(dot)com http://www.roguewave.com
>
>
>
> -----Original Message-----
> From: Nishad Prakash [mailto:prakashn(at)uci(dot)edu]
> Sent: Wednesday, September 24, 2003 4:06 PM
> To: pgsql-odbc(at)postgresql(dot)org
> Subject: [ODBC] Trouble compiling for Solaris 8
>
>
>
> Hi,
>
> I've been trying to compile the psqlodbc driver for Solaris 8.
> I obtained the source from
> ftp://ftp3.ca.postgresql.org/pub/odbc/versions/src/psqlodbc-07.03.0100.tar.g
> z
>
> I run configure with prefix=/usr/local/pgsql. This finishes without any
> trouble. When I run make, I eventually get this:
>
>
> /usr/ccs/bin/ld -G -z defs -h psqlodbc.so -o .libs/psqlodbc.so info.lo
> bind.lo columninfo.lo connection.lo convert.lo drvconn.lo environ.lo
> execute.lo lobj.lo win_md5.lo misc.lo options.lo pgtypes.lo psqlodbc.lo
> qresult.lo results.lo socket.lo parse.lo statement.lo tuple.lo
> tuplelist.lo dlg_specific.lo odbcapi.lo multibyte.lo gpps.lo odbcapi30.lo
> pgapi30.lo info30.lo -lc
> Undefined first referenced
> symbol in file
> socket connection.lo
> send connection.lo
> recv socket.lo
> connect connection.lo
> inet_addr socket.lo
> gethostbyname socket.lo
> ld: fatal: Symbol referencing errors. No output written to
> .libs/psqlodbc.so
> *** Error code 1
> make: Fatal error: Command failed for target `psqlodbc.la'
> Current working directory /target1/download/psqlodbc-07.03.0100
> *** Error code 1
> make: Fatal error: Command failed for target `all'
>
>
> I already have postgres 7.3.3 installed on my system, and I am trying to
> add the odbc driver now.
>
> Could someone please help me with this?
>
> Cheers,
>
> Nishad
> --
> "Underneath the concrete, the dream is still alive" -- Talking Heads
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>

--
"Things ain't been the same since the blues walked into town."

-- Larry Love

Browse pgsql-odbc by date

  From Date Subject
Next Message Wayne W. Cheng 2003-09-27 06:03:15 C/C++ interpreter Ch for ODBC
Previous Message SZŰCS Gábor 2003-09-26 09:21:54 Fw: NonDelphiException may come from psqlodbc?