X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 09CE2D1B513 for ; Wed, 8 Oct 2003 02:01:44 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 37929-06 for ; Tue, 7 Oct 2003 23:00:58 -0300 (ADT) Received: from waltsathlon.localhost.net (12-229-144-126.client.attbi.com [12.229.144.126]) by svr1.postgresql.org (Postfix) with ESMTP id DDEBDD1B4F6 for ; Tue, 7 Oct 2003 23:00:53 -0300 (ADT) Received: from 127.0.0.1 (unknown [127.0.0.1]) by injector.domain.extention (Postfix) with SMTP id 482CD1BCCD3 for ; Wed, 8 Oct 2003 02:00:57 +0000 (UTC) Received: from comcast.net (waltsathlon.localhost.net [192.168.0.1]) by waltsathlon.localhost.net (Postfix) with ESMTP id 9B34C1BCCCD for ; Tue, 7 Oct 2003 19:00:56 -0700 (PDT) Message-ID: <3F836FD8.4000206@comcast.net> Date: Tue, 07 Oct 2003 19:00:56 -0700 From: Walt H User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031005 X-Accept-Language: en-us MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Error in convert.c when compiling w/ odbcver=0x0300 X-Enigmail-Version: 0.76.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/44 X-Sequence-Number: 3357 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