X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 067CE9DCA31 for ; Thu, 23 Mar 2006 05:31:31 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 89117-01 for ; Thu, 23 Mar 2006 05:31:32 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from MX03.KONTENT.De (mx03.kontent.de [81.88.34.122]) by postgresql.org (Postfix) with ESMTP id 9DCC19DC83C for ; Thu, 23 Mar 2006 05:31:28 -0400 (AST) Received: from Mail2.KONTENT.De (mail2.kontent.de [81.88.34.59]) by MX03.KONTENT.De (Postfix) with ESMTP id 359911800109 for ; Thu, 23 Mar 2006 10:25:11 +0100 (CET) Received: from jedi.behrens.de (p50842DCE.dip0.t-ipconnect.de [80.132.45.206]) by Mail2.KONTENT.De (Postfix) with ESMTP id A4B7A38800B for ; Thu, 23 Mar 2006 10:31:28 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by jedi.behrens.de (Postfix) with ESMTP id E333927541 for ; Thu, 23 Mar 2006 10:31:27 +0100 (CET) Received: from jedi.behrens.de ([127.0.0.1]) by localhost (jedi [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21959-05 for ; Thu, 23 Mar 2006 10:31:26 +0100 (CET) Received: from [192.168.150.239] (mac.behrens.de [192.168.150.239]) by jedi.behrens.de (Postfix) with ESMTP id B907E19965 for ; Thu, 23 Mar 2006 10:31:26 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v623) In-Reply-To: <1c017229b8e8c48ceab2dc31b3968b49@lollisoft.de> References: <480c2c50162084990b48f0f1ed62356f@lollisoft.de> <16507.1143040116@sss.pgh.pa.us> <038501c64dc4$9358ffd0$01324d80@hiroshi5jz7dqj> <5ecae49f57cb0628c1f0a2c6c1fae87d@lollisoft.de> <17743.1143048499@sss.pgh.pa.us> <1c017229b8e8c48ceab2dc31b3968b49@lollisoft.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: Lothar Behrens Subject: Re: Compiling psqlodbc REL-07_03_ENHANCED and 07.03.260 Date: Thu, 23 Mar 2006 10:31:26 +0100 To: pgsql-odbc@postgresql.org X-Mailer: Apple Mail (2.623) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200603/157 X-Sequence-Number: 7443 I have it ! While going back until reading configuration from ini files, I=20 determined, that ODBC_INI is a file with that name: .odbc.ini Copying my configuration to the right place solved the problem. On Mac OS X, the ODBC setup application saves the user's configuration=20= in ~/Library/ODBC/odbc.ini where as the driver searches it at ~/.odbc.ini. My suggestion would be to distinuish between UNIX and Mac OS X by=20 another #define and on Mac first try ~/Library/ODBC/odbc.ini in SQLGetPrivateProfileString, then ~/.odbc.ini. Regards, Lothar Am 23.03.2006 um 09:17 schrieb Lothar Behrens: > Yes, > > linking against ssl solved the SSL_read problem. But it didn't solved=20= > the md5 functions problem. > I have prefixed them with psql_ and that helped. > > I am not sure changing all references to these changes. > > At the end, I get the same error as with the 07.03.200 driver version. > Also I didn't see any debug message, only log messages that didn't=20 > tell me much :-( > > I'll try more today... > > Lothar > > Here is a diff: > > Index: config.h.in > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvsroot/psqlodbc/psqlodbc/Attic/config.h.in,v > retrieving revision 1.2.2.5 > diff -u -r1.2.2.5 config.h.in > --- config.h.in 15 Mar 2006 14:31:22 -0000 1.2.2.5 > +++ config.h.in 23 Mar 2006 08:10:56 -0000 > @@ -109,7 +109,7 @@ > #undef WITH_UNIXODBC > > /* Define to 1 if your declares `struct tm'. */ > -#undef TM_IN_SYS_TIME > +#define TM_IN_SYS_TIME 1 > > /* Force define to 1 to build with unicode support */ > #undef UNICODE_SUPPORT > Index: md5.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvsroot/psqlodbc/psqlodbc/md5.c,v > retrieving revision 1.10.4.3 > diff -u -r1.10.4.3 md5.c > --- md5.c 24 Jan 2006 12:03:42 -0000 1.10.4.3 > +++ md5.c 23 Mar 2006 08:11:02 -0000 > @@ -305,7 +305,7 @@ > * > */ > bool > -md5_hash(const void *buff, size_t len, char *hexsum) > +psql_md5_hash(const void *buff, size_t len, char *hexsum) > { > uint8 sum[16]; > > @@ -328,7 +328,7 @@ > * Returns TRUE if okay, FALSE on error (out of memory). > */ > bool > -EncryptMD5(const char *passwd, const char *salt, size_t salt_len, > +psql_EncryptMD5(const char *passwd, const char *salt, size_t = salt_len, > char *buf) > { > size_t passwd_len =3D strlen(passwd); > @@ -343,7 +343,7 @@ > memcpy(crypt_buf + passwd_len, salt, salt_len); > > strcpy(buf, "md5"); > - ret =3D md5_hash(crypt_buf, passwd_len + salt_len, buf + 3); > + ret =3D psql_md5_hash(crypt_buf, passwd_len + salt_len, buf + = 3); > > pfree(crypt_buf); > > Index: md5.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvsroot/psqlodbc/psqlodbc/md5.h,v > retrieving revision 1.8.6.2 > diff -u -r1.8.6.2 md5.h > --- md5.h 18 Jan 2006 09:52:15 -0000 1.8.6.2 > +++ md5.h 23 Mar 2006 08:11:02 -0000 > @@ -42,8 +42,8 @@ > typedef unsigned int uint32; /* =3D=3D 32 bits */ > #endif /* not HAVE_UINT8 */ > > -extern bool md5_hash(const void *buff, size_t len, char *hexsum); > -extern bool EncryptMD5(const char *passwd, const char *salt, > +extern bool psql_md5_hash(const void *buff, size_t len, char = *hexsum); > +extern bool psql_EncryptMD5(const char *passwd, const char *salt, > size_t salt_len, char *buf); > > #endif > > > > Am 22.03.2006 um 18:28 schrieb Tom Lane: > >> Lothar Behrens writes: >>> gcc -r -keep_private_externs -nostdlib -o=20 >>> .libs/psqlodbc30w.so-master.o >>> info.lo bind.lo columninfo.lo connection.lo convert.lo drvconn.lo >>> environ.lo execute.lo lobj.lo win_md5.lo misc.lo options.lo=20 >>> pgtypes.lo >>> psqlodbc.lo qresult.lo results.lo socket.lo parse.lo statement.lo >>> tuple.lo dlg_specific.lo loadlib.lo multibyte.lo odbcapi.lo >>> descriptor.lo odbcapi30.lo pgapi30.lo info30.lo mylog.lo && gcc=20 >>> -bundle >>> -o .libs/psqlodbc30w.so .libs/psqlodbc30w.so-master.o -L/sw/lib=20= >>> -lpq >>> -L/usr/local/lib -lodbcinst -lc >>> ld: .libs/psqlodbc30w.so-master.o illegal reference to symbol: >>> _SSL_read defined in indirectly referenced dynamic library >>> /usr/lib/libssl.0.9.7.dylib >> >> I think Darwin's linker may insist on -lssl appearing in the link=20 >> command. >> >> regards, tom lane >> >> ---------------------------(end of=20 >> broadcast)--------------------------- >> TIP 6: explain analyze is your friend >> >> > -- > Lothar Behrens | Rapid Prototyping ... > Rosmarinstr 3 |=09 > 40235 D=FCsseldorf | www.lollisoft.de > > > > ---------------------------(end of=20 > broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that = your > message can get through to the mailing list cleanly > > -- Lothar Behrens | Rapid Prototyping ... Rosmarinstr 3 |=09 40235 D=FCsseldorf | www.lollisoft.de