pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bart A.M. Jourquin <jourquin@message.fucam.ac.be>
To: pgsql-interfaces@postgresql.org
Subject: [interface] PSQLODBC; make on Solaris fixes
Date: Wed, 03 Feb 1999 13:57:47 +0100
Message-ID: <36B847CB.5C726DEE@fucam.ac.be> (raw)

Hi,

I've recently downloaded the psqlodbc driver for unix and tried to make
it work on Solaris 2.6 with the native Sun cc compiler.

Here are some minor changes:

1.) 'configure' makes reference to sparc_solaris instead of
solaris_sparc. This leads to an error while referring to the makefiles
and the templates. Replace it by solaris_sparc at line 606. Same is true
at the next line for solaris_i386

2.) One have to "force" the usage of the 'local' routines in shared
libraries by  adding "-Bsymbolic" to the linker options in
Makefile.shlib (One have of course then also to "manually" add the
librairies that contain usual things, i.e.,   -lc -lsocket -lnsl -lm

=> Makefile.shlib now contains : 
ifeq ($(PORTNAME), solaris_sparc)
  install-shlib-dep	:= install-shlib
  shlib				:=
lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
  LDFLAGS_SL		:= -G -Bsymbolic -lc -lsocket -lnsl -lm
  CFLAGS			+= $(CFLAGS_SL)
endif

3.) in misc.h, the GNU convention used to define qlog as qlog(args...)
is not understood by the cc compiler. A conditional must be included in
order to define it as qlog when no GNU compiler is used.

4.) The cc compiler doesn't accept C++ comments ( // instead of /* */)
in c sources, unless the -xCC compiler option is used. To be added in
the relevant template

Thats'all. Hope it helps....



-- 
Dr Bart A.M. JOURQUIN, Senior researcher
F.U.Ca.M. - Group Transport & Mobility (GTM)
Ch. de Binche, 151a, B7000 Mons, Belgium
Phone +32 (65) 32.32.93    Fax +32 (65) 32.56.91
http://www.fucam.ac.be/~jourquin



Message-ID: <36B847CB.5C726DEE@fucam.ac.be>
Permalink:  ../36B847CB.5C726DEE@fucam.ac.be/
Also on:    postgresql.org/message-id/36B847CB.5C726DEE@fucam.ac.be

 · 

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: jourquin@message.fucam.ac.be
  Subject: Re: [interface] PSQLODBC; make on Solaris fixes
  In-Reply-To: <36B847CB.5C726DEE@fucam.ac.be>

* 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