Re: [ODBC] ODBC Installation woes

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: Chris Hayner <hayner80(at)astro(dot)ocis(dot)temple(dot)edu>
Cc: PostgreSQL-interfaces <pgsql-interfaces(at)postgresql(dot)org>, PostgreSQL odbc list <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: [ODBC] ODBC Installation woes
Date: 2001-02-05 16:52:37
Message-ID: 3A7EDA55.89907F1F@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-interfaces pgsql-jdbc 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

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2001-02-05 17:04:08 Re: [DOCS] Re: postgres limitation
Previous Message James R. R. Service 2001-02-01 18:08:36 Re: How to install SQL 7.0

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jeremy Buchmann 2001-02-05 19:26:33 Re: DBI/Pg.pm problems
Previous Message v j 2001-02-05 12:15:47 JDBC APPLET Problem

Browse pgsql-jdbc by date

  From Date Subject
Next Message R9Pilot 2001-02-05 23:56:53 [JDBC][INTERFACES][NOVICE] Postgresql inteface to Star Office using JDBC
Previous Message v j 2001-02-05 09:44:07 Re: [INTERFACES] JDBC APPLET Problem

Browse pgsql-odbc by date

  From Date Subject
Next Message Fred Yankowski 2001-02-05 17:04:05 build WIN32 ODBC using VC++, not Cygwin/gcc
Previous Message Hiroshi Inoue 2001-02-05 01:22:25 Re: Visio, new DLL