X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 6273ED1B50B for ; Fri, 26 Sep 2003 18:03:17 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 83603-07 for ; Fri, 26 Sep 2003 15:03:08 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id EE754D1B4E9 for ; Fri, 26 Sep 2003 15:03:05 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h8QI32A19866; Fri, 26 Sep 2003 14:03:02 -0400 (EDT) From: Bruce Momjian Message-Id: <200309261803.h8QI32A19866@candle.pha.pa.us> Subject: Re: Fw: Case Insensitive Test In-Reply-To: <24982.1064599081@sss.pgh.pa.us> To: Tom Lane Date: Fri, 26 Sep 2003 14:03:02 -0400 (EDT) Cc: Stephan Szabo , "[ADMIN]" X-Mailer: ELM [version 2.4ME+ PL106 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/444 X-Sequence-Number: 10532 Tom Lane wrote: > and the problem is that HAS_CRYPT_R has gotten defined but "struct > crypt_data" has not. It's been awhile since I looked at this, but I > think that Perl configures HAS_CRYPT_R on the basis of a link-only test > for crypt_r(), which will succeed regardless of -D symbols. And (in > this Linux version, anyway) /usr/include/crypt.h only defines struct > crypt_data if __USE_GNU is defined (which comes from _GNU_SOURCE). > So we're more or less stuck --- perl.h simply does not compile without > _GNU_SOURCE on this platform. > > This is arguably a configuration bug in Perl; we have hit comparable > difficulties in PG, and had to solve them by the expedient of testing > for both compile-time and link-time presence of library features. > They're not being careful enough. > > Experimenting, I notice that ecpg also currently fails to compile > without _GNU_SOURCE on that box. It looks to me like the system headers > have a rather arbitrary set of ideas on what to remove when _GNU_SOURCE > isn't defined... I know the Pg:DBD guys had to define _GNU_SOURCE to get something working, but it wasn't per-platform, and I was concerned about that. They found another way to do it and have to test to see if it is going to work for all configuration. I just don't know if _GNU_SOURCE opens up other problems that we will only find later --- it seems like a large knob, but if it is required, it is required, I guess. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073