Received: from message.fucam.ac.be (message.fucam.ac.be [193.190.244.2]) by hub.org (8.9.2/8.9.1) with ESMTP id HAA28187 for ; Wed, 3 Feb 1999 07:59:09 -0500 (EST) (envelope-from jourquin@message.fucam.ac.be) Received: from fucam.ac.be (fucam249.fucam.ac.be [193.190.244.249]) by message.fucam.ac.be (8.9.0/8.9.0) with ESMTP id NAA13646 for ; Wed, 3 Feb 1999 13:54:10 +0100 (MET) Sender: bart@message.fucam.ac.be Message-ID: <36B847CB.5C726DEE@fucam.ac.be> Date: Wed, 03 Feb 1999 13:57:47 +0100 From: "Bart A.M. Jourquin" Organization: F.U.Ca.M X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: [interface] PSQLODBC; make on Solaris fixes Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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