X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id A4BC5D1B4E5 for ; Fri, 24 Oct 2003 02:31:20 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 82491-10 for ; Thu, 23 Oct 2003 23:30:53 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id C4575D1B50E for ; Thu, 23 Oct 2003 23:30:47 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h9O2UmG25354; Thu, 23 Oct 2003 22:30:48 -0400 (EDT) From: Bruce Momjian Message-Id: <200310240230.h9O2UmG25354@candle.pha.pa.us> Subject: Re: Error in convert.c when compiling w/ odbcver=0x0300 In-Reply-To: <3F836FD8.4000206@comcast.net> To: Walt H Date: Thu, 23 Oct 2003 22:30:48 -0400 (EDT) Cc: pgsql-odbc@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/79 X-Sequence-Number: 3392 Can you suggest a patch to fix this? --------------------------------------------------------------------------- Walt H wrote: > Hello, > > In my never ending quest in an attempt to get PostgreSQL to work with > blob data within our application, I attempted to compile the latest odbc > drivers with odbc v. 3.00 support. This fails with: > > /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -g > -O2 -c -o convert.lo `test -f 'convert.c' || echo './'`convert.c > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c convert.c -MT convert.lo -MD > -MP -MF .deps/convert.TPlo -fPIC -DPIC -o convert.lo > convert.c: In function `copy_and_convert_field': > convert.c:1194: incompatible types in assignment > convert.c:1196: incompatible types in assignment > convert.c:1202: incompatible types in assignment > convert.c:1204: incompatible types in assignment > > This code evidently compiles in Windows since the odbc driver appears to > be v. 3.00 capable. I'm attempting this on Linux using gcc-3.2.3 and > glibc-2.3.2. I've tried various other compilers including gcc-2.95.3 > and gcc-3.3.1, and have been met with the same results. > > Ultimately, I'm trying to use odbc to connect to PostgreSQL within our > app, which is an Omnis Studio application. I need to be able to > store/retrieve binary (blob) data, and have been only partially > successful. Any ideas for a code fix / workaround? I've been > unsuccessful in my attempts so far with odbc < 3.00 - I've had partial > success when running our app under wine and using the native windows > ODBC driver, but due to the added layers/complexity, I'm not sure I > trust the results. Hence the need for native linux w/ odbc v. 3.00 Any > help is appreciated. Thanks, > > -Walt > > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073