Re: ODBC Installation woes - Mailing list pgsql-odbc

From Thomas Lockhart
Subject Re: ODBC Installation woes
Date
Msg-id 3A7EDA55.89907F1F@alumni.caltech.edu
Whole thread Raw
In response to ODBC Installation woes  (Chris Hayner <hayner80@astro.ocis.temple.edu>)
List pgsql-odbc
> When trying to install ODBC on a solaris 7 machine i get the following
> make error:

You need something like a "-shared" flag on the link step to get a
shared library. The linker is trying instead to find the entry point for
a program, and of course none exists...

Not sure why this isn't happening for you automatically; perhaps it is
because of the Solaris/gcc combination??

                    - Thomas

> gcc -Wall -Wmissing-prototypes -Wmissing-declarations -fPIC -G
> -Wl,-soname,libpsqlodbc.so.0 -Wl,-Bsymbolic info.o bind.o columninfo.o
> connection.o convert.o drvconn.o environ.o execute.o lobj.o misc.o
> options.o pgtypes.o psqlodbc.o qresult.o results.o socket.o parse.o
> statement.o gpps.o tuple.o tuplelist.o dlg_specific.o -lm -ldl -lsocket
> -lresolv -lnsl -lm -lc -Wl,-rpath,/usr/local/pgsql/lib -o
> libpsqlodbc.so.0.26
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/crt1.o: In function
> `_start':
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/crt1.o(.text+0x5c):
> undefined reference to `main'
> collect2: ld returned 1 exit status
>
> The database made and installed without a hitch. this leaves me confused.
>
> Any help with this bafflement would be appreciated.
> thanks,
> chris

pgsql-odbc by date:

Previous
From: Chris Hayner
Date:
Subject: ODBC Installation woes
Next
From: "David Zoll"
Date:
Subject: Invalid Page Fault in PSQLODBC.DLL