Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eA7MGps94434 for ; Tue, 7 Nov 2000 17:16:51 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.1/8.11.1) with ESMTP id eA7MGN519962; Tue, 7 Nov 2000 17:16:23 -0500 (EST) To: Will Dennis cc: pgsql-interfaces@postgresql.org Subject: Re: PoPy make error In-reply-to: <3A0867C7.FAEC393F@p-wave.com> References: <3A0867C7.FAEC393F@p-wave.com> Comments: In-reply-to Will Dennis message dated "Tue, 07 Nov 2000 15:36:23 -0500" Date: Tue, 07 Nov 2000 17:16:22 -0500 Message-ID: <19959.973635382@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200011/93 X-Sequence-Number: 129 Will Dennis writes: > There *is* an os.h file in /usr/include/pgsql, but it is a symlink to > ".././include/port/linux.h". The problem is that I have no "linux.h" on > my system. Yes, this is a known glitch in the RPMs --- they install a symlink rather than the file it should have referenced :-(. Remove the symlink and replace it with a copy of src/include/port/linux.h, which you can get from the PG 7.0.2 source RPM or source tarball. (But it's short, so I'll throw in the 7.0.2 version just to save you a download.) I think this is fixed for 7.0.3, if not, then 7.1 for sure. regards, tom lane /* __USE_POSIX, __USE_BSD, and __USE_BSD_SIGNAL used to be defined either here or with -D compile options, but __ macros should be set and used by C library macros, not Postgres code. __USE_POSIX is set by features.h, __USE_BSD is set by bsd/signal.h, and __USE_BSD_SIGNAL appears not to be used. */ #define JMP_BUF #define USE_POSIX_TIME #if defined(__i386__) typedef unsigned char slock_t; #define HAS_TEST_AND_SET #elif defined(__sparc__) typedef unsigned char slock_t; #define HAS_TEST_AND_SET #elif defined(__powerpc__) typedef unsigned int slock_t; #define HAS_TEST_AND_SET #elif defined(__alpha__) typedef long int slock_t; #define HAS_TEST_AND_SET #elif defined(__mips__) typedef unsigned int slock_t; #define HAS_TEST_AND_SET #elif defined(__arm__) typedef unsigned char slock_t #define HAS_TEST_AND_SET #endif #if defined(__GLIBC__) && (__GLIBC__ >= 2) #ifdef HAVE_INT_TIMEZONE #undef HAVE_INT_TIMEZONE #endif #endif #if defined(__powerpc__) #undef HAVE_INT_TIMEZONE #endif