[interface] PSQLODBC; make on Solaris fixes - Mailing list pgsql-interfaces

From Bart A.M. Jourquin
Subject [interface] PSQLODBC; make on Solaris fixes
Date
Msg-id 36B847CB.5C726DEE@fucam.ac.be
Whole thread Raw
List 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

pgsql-interfaces by date:

Previous
From: Dirk Lutzebaeck
Date:
Subject: Re: [INTERFACES] ERROR: RestrictionClauseSelectivity: bad value -1.998477
Next
From: Karsten Kaus
Date:
Subject: [NOVICE] ODBC-Setup