pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Lockhart <lockhart@alumni.caltech.edu>
To: Chris Hayner <hayner80@astro.ocis.temple.edu>
Cc: PostgreSQL-interfaces <pgsql-interfaces@postgresql.org>
Cc: PostgreSQL odbc list <pgsql-odbc@postgresql.org>
Subject: Re: [ODBC] ODBC Installation woes
Date: Mon, 05 Feb 2001 16:52:37 +0000
Message-ID: <3A7EDA55.89907F1F@alumni.caltech.edu> (raw)
References: <Pine.OSF.4.32.0101301603530.10013-100000@typhoon.ocis.temple.edu>

> 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



view thread (2+ messages)

Message-ID: <3A7EDA55.89907F1F@alumni.caltech.edu>
Permalink:  ../3A7EDA55.89907F1F@alumni.caltech.edu/
Also on:    postgresql.org/message-id/3A7EDA55.89907F1F@alumni.caltech.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: lockhart@alumni.caltech.edu, hayner80@astro.ocis.temple.edu, pgsql-odbc@postgresql.org
  Subject: Re: [ODBC] ODBC Installation woes
  In-Reply-To: <3A7EDA55.89907F1F@alumni.caltech.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox