Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id C6905BEAE5A for ; Wed, 25 Jul 2012 06:49:52 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1StyE1-0007NE-6n for pgsql-bugs@postgresql.org; Wed, 25 Jul 2012 09:49:51 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1StyDn-0000Wc-NU for pgsql-bugs@postgresql.org; Wed, 25 Jul 2012 09:49:36 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1StyDn-0004Nd-F3 for pgsql-bugs@postgresql.org; Wed, 25 Jul 2012 09:49:35 +0000 Date: Wed, 25 Jul 2012 09:49:35 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6758: ./configure script sets HAVE_WCSTOMBS_L 1 To: pgsql-bugs@postgresql.org From: jez.wain@bull.net X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/193 X-Sequence-Number: 33669 The following bug has been logged on the website: Bug reference: 6758 Logged by: jez wain Email address: jez.wain@bull.net PostgreSQL version: 9.1.4 Operating system: AIX 7.1 Description: = Building Postgresql on AIX7.1 with IBM's xlc compiler I got an undefined symbol error on the link phase for the 'postgres' binary: ld: 0711-317 ERROR: Undefined symbol: .mbstowcs_l ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. AIX7 supports the mbstowcs API but not mbstowcs_l. In src/include/pg_config.h I commented out the define for HAVE_WCSTOMBS_L 1, recompiled src/backend/utils/adt/pg_locale.c and the build completed successfully. This indicates that the ./configure script does not correctly detect the absence of the locale specific wide-character/multi-byte API's (xxxx_l), on AIX (near line 18945)