X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.4 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org From: "Hughes, Gregory Mark (PSG Consumer Experience)" To: "cygwin AT cygwin DOT com" Date: Tue, 8 Mar 2011 18:53:00 +0000 Subject: 1.7.8: undefined reference to __xpg_strerror_r Message-ID: <7BE45EFA3B51A945A5CE66BAF647536DBC7499D87C@GVW1119EXC.americas.hpqcorp.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi, After updating to Cygwin 1.7.8-1, I am seeing an unresolved reference to __= xpg_strerror_r=20 This test program links successfully if I define _GNU_SOURCE to so select t= he alternate strerror_r entrypoint. Compile with "gcc test.c": #include #include int main() { char err_buf[256]; strerror_r(errno, err_buf, sizeof(err_buf)); } It appears the leading double underscore has been added to the symbol twice= , I see an ____xpg_strerror_r in libcygwin.a.=20=20 $ nm /lib/libcygwin.a | grep __xpg_strerror_r 00000000 I __imp____xpg_strerror_r 00000000 T ___xpg_strerror_r U __imp____xpg_strerror_r Regards, Greg. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple