pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PoPy make error
2+ messages / 2 participants
[nested] [flat]

* PoPy make error
@ 2000-11-07 20:36  Will Dennis <willd@p-wave.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Will Dennis @ 2000-11-07 20:36 UTC (permalink / raw)
  To: pgsql-interfaces

Hello all,

I have downloaded and am trying to make PoPy 1.4.1 on my server, which
is running RedHat 6.1, and PostgreSQL 7.0.2 installed via RPMs off the
postgresql.org site. The problem I am having is that make complains
about the "os.h" header file being missing:

/usr/include/pgsql/config.h:540: os.h: No such file or directory

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. Does anyone know what this header file is, and where I can
obtain it (for RedHat 6.1)?

Thanks in advance, and please copy my email as well as pgsql-interface
if you would as I do not currently subscribe to the mailing list (I read
the archives via the web.)

Will Dennis
P-Wave, Inc.
http://www.p-wave.com/






^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: PoPy make error
@ 2000-11-07 22:16  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Will Dennis <willd@p-wave.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2000-11-07 22:16 UTC (permalink / raw)
  To: Will Dennis <willd@p-wave.com>; +Cc: pgsql-interfaces

Will Dennis <willd@p-wave.com> 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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-11-07 22:16 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-11-07 20:36 PoPy make error Will Dennis <willd@p-wave.com>
2000-11-07 22:16 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox