Received: from golem.fourpalms.org (www.fourpalms.org [64.3.68.148]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f15GkUx31487; Mon, 5 Feb 2001 11:46:31 -0500 (EST) (envelope-from lockhart@alumni.caltech.edu) Received: from alumni.caltech.edu (localhost.localdomain [127.0.0.1]) by golem.fourpalms.org (Postfix) with ESMTP id A0496FEC2; Mon, 5 Feb 2001 16:52:37 +0000 (UTC) Message-ID: <3A7EDA55.89907F1F@alumni.caltech.edu> Date: Mon, 05 Feb 2001 16:52:37 +0000 From: Thomas Lockhart Reply-To: lockhart@fourpalms.org Organization: Yes X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.17-21mdksmp i686) X-Accept-Language: en MIME-Version: 1.0 To: Chris Hayner Cc: PostgreSQL-interfaces , PostgreSQL odbc list Subject: Re: [ODBC] ODBC Installation woes References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/12 X-Sequence-Number: 962 > 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