Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-docspgsql-interfacespgsql-jdbcpgsql-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, -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
> /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

pgsql-docs by date

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

pgsql-odbc by date

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

pgsql-interfaces by date

Next:From: Jeremy BuchmannDate: 2001-02-05 19:26:33
Subject: Re: DBI/ problems
Previous:From: v jDate: 2001-02-05 12:15:47
Subject: JDBC APPLET Problem

pgsql-jdbc by date

Next:From: R9PilotDate: 2001-02-05 23:56:53
Subject: [JDBC][INTERFACES][NOVICE] Postgresql inteface to Star Office using JDBC
Previous:From: v jDate: 2001-02-05 09:44:07

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group