Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5GQe-00034v-H1 for pgsql-committers@arkaria.postgresql.org; Wed, 26 Sep 2018 20:29:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g5GQc-0001mp-9I for pgsql-committers@arkaria.postgresql.org; Wed, 26 Sep 2018 20:28:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5GQb-0001mi-QO for pgsql-committers@lists.postgresql.org; Wed, 26 Sep 2018 20:28:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5GQY-00024x-Ax for pgsql-committers@lists.postgresql.org; Wed, 26 Sep 2018 20:28:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w8QKSqkc011162; Wed, 26 Sep 2018 16:28:52 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Incorporate strerror_r() into src/port/snprintf.c, too. In-reply-to: References: Comments: In-reply-to Peter Eisentraut message dated "Wed, 26 Sep 2018 20:04:39 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11160.1537993732.1@sss.pgh.pa.us> Date: Wed, 26 Sep 2018 16:28:52 -0400 Message-ID: <11161.1537993732@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > Somehow, this is not working for me: > Undefined symbols for architecture x86_64: > "_libintl_gettext", referenced from: > _pg_strerror_r in strerror.o > ld: symbol(s) not found for architecture x86_64 > collect2: error: ld returned 1 exit status > make[4]: *** [../../../../src/Makefile.shlib:303: libpgtypes.3.12.dylib] > Error 1 > It works if I don't use --enable-nls. More context please? I'm guessing this is on macOS? Where did you get libintl from? Is it, as it looks, getting through libpq and failing in ecpg? My first bet would be that ecpg for some reason lacks needed NLS infrastructure ... have we ever tried to internationalize it? Right now might not be the best time to try --- perhaps the path of least resistance is to defeat strerror.c's NLS support when it's being compiled in ecpg. regards, tom lane