[interface] PSQLODBC; make on Solaris fixes

From: "Bart A(dot)M(dot) Jourquin" <jourquin(at)message(dot)fucam(dot)ac(dot)be>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: [interface] PSQLODBC; make on Solaris fixes
Date: 1999-02-03 12:57:47
Message-ID: 36B847CB.5C726DEE@fucam.ac.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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

Browse pgsql-interfaces by date

  From Date Subject
Next Message Byron Nikolaidis 1999-02-03 14:45:41 Re: [INTERFACES] LinuxODBC
Previous Message Dirk Lutzebaeck 1999-02-03 09:18:44 Re: [INTERFACES] ERROR: RestrictionClauseSelectivity: bad value -1.998477