X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 91964535DA for ; Mon, 4 Apr 2005 06:54:12 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 87710-08 for ; Mon, 4 Apr 2005 05:54:07 +0000 (GMT) Received: from hub.org (hub.org [200.46.204.220]) by svr1.postgresql.org (Postfix) with ESMTP id 91CC3536D0 for ; Mon, 4 Apr 2005 06:54:07 +0100 (BST) Received: from localhost (unknown [200.46.204.144]) by hub.org (Postfix) with ESMTP id 601E5129328 for ; Mon, 4 Apr 2005 02:54:07 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 87703-08 for ; Mon, 4 Apr 2005 05:54:02 +0000 (GMT) Received: from ganymede.hub.org (blk-224-181-254.eastlink.ca [24.224.181.254]) by hub.org (Postfix) with ESMTP id A49D612931F for ; Mon, 4 Apr 2005 02:54:01 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1000) id F3DA236EC9; Mon, 4 Apr 2005 02:54:01 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id F233C36E5D for ; Mon, 4 Apr 2005 02:54:01 -0300 (ADT) X-Return-Path: X-Received: from localhost ([unix socket]) by ganymede.hub.org (Cyrus v2.2.12) with LMTPA; Mon, 04 Apr 2005 00:51:24 -0300 X-Sieve: CMU Sieve 2.2 X-Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id EF12835A9C for ; Mon, 4 Apr 2005 00:50:28 -0300 (ADT) X-Received: from mail.postgresql.org [200.46.204.71] by localhost with IMAP (fetchmail-6.2.5) for scrappy@localhost (single-drop); Mon, 04 Apr 2005 00:50:28 -0300 (ADT) X-Received: from svr1.postgresql.org ([unix socket]) by svr1.postgresql.org (Cyrus v2.2.12) with LMTPA; Mon, 04 Apr 2005 04:47:39 +0100 X-Sieve: CMU Sieve 2.2 X-Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C0DE753792 for ; Mon, 4 Apr 2005 04:47:39 +0100 (BST) X-Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 55280-07 for ; Mon, 4 Apr 2005 03:47:39 +0000 (GMT) X-Received: from postgresql.org (svr1.postgresql.org [200.46.204.71]) by svr1.postgresql.org (Postfix) with ESMTP id 725D853781 for ; Mon, 4 Apr 2005 04:47:39 +0100 (BST) X-Original-To: pgsql-odbc-postgresql.org-owner@localhost.postgresql.org X-Delivered-To: pgsql-odbc-postgresql.org-owner@localhost.postgresql.org X-Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9903F5362E for ; Mon, 4 Apr 2005 04:47:37 +0100 (BST) X-Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 55280-06 for ; Mon, 4 Apr 2005 03:47:27 +0000 (GMT) X-Received: from mail110.dandomain.dk (mail110.dandomain.dk [194.255.46.110]) by svr1.postgresql.org (Postfix) with ESMTP id DCB72538C9 for ; Mon, 4 Apr 2005 04:47:25 +0100 (BST) X-Received: from [10.0.0.40] ([217.157.136.78]) by mail110.dandomain.dk (DanDomain Mailserver) with ASMTP id BJA74811 for ; Mon, 04 Apr 2005 05:47:23 +0200 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Mon, 04 Apr 2005 05:47:22 +0200 Subject: ODBC on MacOS X From: Per Erik R=?ISO-8859-1?B?+A==?=nne To: Message-ID: Mime-version: 1.0 Content-type: multipart/alternative; boundary="B_3195438444_546452" X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-DCC: : X-Spam-Pyzor: Reported 0 times. ReSent-Date: Mon, 4 Apr 2005 02:53:57 -0300 (ADT) Resent-From: "Marc G. Fournier" Resent-To: pgsql-odbc@postgresql.org ReSent-Subject: ODBC on MacOS X ReSent-Message-ID: <20050404025357.C18194@ganymede.hub.org> X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.242 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, HTML_10_20, HTML_MESSAGE X-Spam-Level: * X-Archive-Number: 200504/18 X-Sequence-Number: 5177 > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3195438444_546452 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable I have downloaded and installed PostgreSQL 8.01 on my Macintosh with no problems, but want to install ODBC too in order to make useful user interfaces. Consequently I have ODBC from: http://gborg.postgresql.org/project/psqlodbc/genpage.php?downloads and since no Macintosh version was available {only Windows}, I downloaded the source code instead. But it simply doesn=B9t work. My Macintosh runs MacOS X 10.3.8, a BSD UNIX system. And a listing of what happens in the shell: G4:~/psqlodbc per$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking dependency style of gcc... gcc3 checking for SQLGetPrivateProfileString in -lodbcinst... no checking for SQLGetPrivateProfileString in -liodbcinst... yes checking for ODBC version number... 0x0300 checking for strtoul... yes checking for strtoll... yes checking for socket in -lsocket... no checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking build system type... powerpc-apple-darwin7.8.0 checking host system type... powerpc-apple-darwin7.8.0 checking for a sed that does not truncate output... /usr/bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -p checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fl32... no checking for af77... no checking for fort77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for lf95... no checking for g95... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 65536 checking command to parse /usr/bin/nm -p output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fno-common checking if gcc PIC flag -fno-common works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin7.8.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common checking if g++ PIC flag -fno-common works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin7.8.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking for dlopen in -ldl... (cached) yes checking whether a program can dlopen itself... (cached) yes checking whether a statically linked program can dlopen itself... (cached) yes appending configuration tag "F77" to libtool checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking for uint8... no checking for int timezone... no checking for long... yes checking size of long... 4 checking for long long... yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands G4:~/psqlodbc per$ make make all-am if /bin/sh ./libtool --mode=3Dcompile gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT info.lo -MD -MP -MF ".deps/info.Tpo" \ -c -o info.lo `test -f 'info.c' || echo './'`info.c; \ then mv -f ".deps/info.Tpo" ".deps/info.Plo"; \ else rm -f ".deps/info.Tpo"; exit 1; \ fi mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT info.lo -MD -MP -MF .deps/info.Tpo -c info.c -fno-common -DPIC -o .libs/info.o In file included from info.c:19: psqlodbc.h:46:23: sqlucode.h: No such file or directory In file included from info.c:19: psqlodbc.h:326: error: parse error before '*' token psqlodbc.h:327: error: parse error before '*' token psqlodbc.h:328: error: parse error before "SQLWCHAR" info.c: In function `PGAPI_GetInfo': info.c:752: error: `SQLWCHAR' undeclared (first use in this function) info.c:752: error: (Each undeclared identifier is reported only once info.c:752: error: for each function it appears in.) info.c:757: error: parse error before ')' token info.c:757: error: parse error before ')' token make[1]: *** [info.lo] Error 1 make: *** [all] Error 2 G4:~/psqlodbc per$=20 --=20 Per Erik R=F8nne, MSc Frederikssundsvej 308B, DK-2700 Br=F8nsh=F8j Telephone & fax 38 89 00 16, mobile 28 23 09 92 Denmark --B_3195438444_546452 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable ODBC on MacOS X I hav= e downloaded and installed PostgreSQL 8.01 on my Macintosh with no problems,= but want to install ODBC too in order to make useful user interfaces. Conse= quently I have ODBC from:

http://gborg.postgresql.org/project/psqlodbc/genpage.php?downloads

and since no Macintosh version was available {only Windows}, I downloaded t= he source code instead. But it simply doesn’t work.

My Macintosh runs MacOS X 10.3.8, a BSD UNIX system.

And a listing of what happens in the shell:

G4:~/psqlodbc per$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no<= BR> checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for SQLGetPrivateProfileString in -lodbcinst... no
checking for SQLGetPrivateProfileString in -liodbcinst... yes
checking for ODBC version number... 0x0300
checking for strtoul... yes
checking for strtoll... yes
checking for socket in -lsocket... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking build system type... powerpc-apple-darwin7.8.0
checking host system type... powerpc-apple-darwin7.8.0
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fl32... no
checking for af77... no
checking for fort77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for lf95... no
checking for g95... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 65536
checking command to parse /usr/bin/nm -p output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... = yes
checking dynamic linker characteristics... darwin7.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... = yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... = yes
checking dynamic linker characteristics... darwin7.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) = yes
appending configuration tag "F77" to libtool
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for uint8... no
checking for int timezone... no
checking for long... yes
checking size of long... 4
checking for long long... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
G4:~/psqlodbc per$ make
make  all-am
if /bin/sh ./libtool --mode=3Dcompile gcc -DHAVE_CONFIG_H -I. -I. -I.  &= nbsp;  -g -O2 -MT info.lo -MD -MP -MF ".deps/info.Tpo" \=
  -c -o info.lo `test -f 'info.c' || echo './'`info.c; \
then mv -f ".deps/info.Tpo" ".deps/info.Plo"; \
else rm -f ".deps/info.Tpo"; exit 1; \
fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT info.lo -MD -MP -MF .deps/= info.Tpo -c info.c  -fno-common -DPIC -o .libs/info.o
In file included from info.c:19:
psqlodbc.h:46:23: sqlucode.h: No such file or directory
In file included from info.c:19:
psqlodbc.h:326: error: parse error before '*' token
psqlodbc.h:327: error: parse error before '*' token
psqlodbc.h:328: error: parse error before "SQLWCHAR"
info.c: In function `PGAPI_GetInfo':
info.c:752: error: `SQLWCHAR' undeclared (first use in this function)
info.c:752: error: (Each undeclared identifier is reported only once
info.c:752: error: for each function it appears in.)
info.c:757: error: parse error before ')' token
info.c:757: error: parse error before ')' token
make[1]: *** [info.lo] Error 1
make: *** [all] Error 2
G4:~/psqlodbc per$

--
Per Erik Rønne, MSc
Frederikssundsvej 308B, DK-2700 Brønshøj
Telephone & fax 38 89 00 16, mobile 28 23 09 92
Denmark
--B_3195438444_546452--