Thread: Trouble compiling for Solaris 8

Trouble compiling for Solaris 8

From
Nishad Prakash
Date:
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.gz

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


Re: Trouble compiling for Solaris 8

From
nishad@ptolemy.tlg.uci.edu
Date:
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@roguewave.com  http://www.roguewave.com
>
>
>
> -----Original Message-----
> From: Nishad Prakash [mailto:prakashn@uci.edu]
> Sent: Wednesday, September 24, 2003 4:06 PM
> To: pgsql-odbc@postgresql.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