Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T7Sgh-0007oC-Ud for pgsql-bugs@postgresql.org; Fri, 31 Aug 2012 14:59:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T7Sgg-0004Jk-Ss for pgsql-bugs@postgresql.org; Fri, 31 Aug 2012 14:59:11 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q7VEx3oJ012791; Fri, 31 Aug 2012 10:59:04 -0400 (EDT) From: Tom Lane To: Andrew Hastie cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6758: ./configure script sets HAVE_WCSTOMBS_L 1 In-reply-to: <5040ABAC.4070808@ahastie.net> References: <503E46CC.5000202@ahastie.net> <28049.1346260600@sss.pgh.pa.us> <5040ABAC.4070808@ahastie.net> Comments: In-reply-to Andrew Hastie message dated "Fri, 31 Aug 2012 13:18:52 +0100" Date: Fri, 31 Aug 2012 10:59:03 -0400 Message-ID: <12790.1346425143@sss.pgh.pa.us> X-Pg-Spam-Score: -2.1 (--) X-Archive-Number: 201208/257 X-Sequence-Number: 33981 Andrew Hastie writes: > Thanks for the pointers. Hopefully some of the following may shed some > light on the issue. Thanks for the results. It seems difficult to come to any conclusion other than that AIX has got wcstombs_l but not mbstowcs_l ... which is darn bizarre; I'd suggest reporting it as a bug to IBM. In the meantime, it seems like what we had better do is explicitly test for both functions, rather than making the assumption that they would both or neither be present. I'm not sure if we can provide any extra functionality if only wcstombs_l is available --- that will have to emerge in making the patch. We can certainly build without it though. As a temporary workaround, you should probably just modify pg_config.h after configure runs, to remove the HAVE_WCSTOMBS_L symbol. regards, tom lane