pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedlibpg++ under SUSE Linux 7.0 (problem with link os.h)
3+ messages / 3 participants
[nested] [flat]
* libpg++ under SUSE Linux 7.0 (problem with link os.h)
@ 2001-01-22 15:28 Markus Jung <diplomarbeit.markusjung@gmx.net>
0 siblings, 1 reply; 3+ messages in thread
From: Markus Jung @ 2001-01-22 15:28 UTC (permalink / raw)
To: pgsql-interfaces
Hi all,
I installed Postgres with the SUSE distribution 7.0 and it works fine.
However if I try to use the libpg++ library and link it to my C++ programm I
receive some error message about the include file.
The "libpg++.h" contains several other include files which again contain
other include files. I went through the include files and came to a link
called "os.h" which links to "linux.h".
I could not find this "linux.h" on my system and was wondering whether this
file should be part of my linux distribution or comes with Postgres?
Where should I link os.h to?
Thanks for the help
Markus
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: libpg++ under SUSE Linux 7.0 (problem with link os.h)
@ 2001-01-22 16:19 Tom Lane <tgl@sss.pgh.pa.us>
parent: Cedar Cox <cedarc@visionforisrael.com>
0 siblings, 0 replies; 3+ messages in thread
From: Tom Lane @ 2001-01-22 16:19 UTC (permalink / raw)
To: Cedar Cox <cedarc@visionforisrael.com>; +Cc: Markus Jung <diplomarbeit.markusjung@gmx.net>; pgsql-interfaces
Cedar Cox <cedarc@visionforisrael.com> writes:
> I believe this is referring to the linux.h in the linux kernel source
> code.
No, it's referring to the Postgres file src/include/port/linux.h. There
is a packaging error in the 7.0 RPMs that causes them to create the
installed os.h as a symlink, rather than a copy of the port .h file as
it should be.
Markus, you can replace os.h with the attached (7.0's linux.h file).
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] 3+ messages in thread
* Re: libpg++ under SUSE Linux 7.0 (problem with link os.h)
@ 2001-01-22 16:31 Cedar Cox <cedarc@visionforisrael.com>
parent: Markus Jung <diplomarbeit.markusjung@gmx.net>
0 siblings, 1 reply; 3+ messages in thread
From: Cedar Cox @ 2001-01-22 16:31 UTC (permalink / raw)
To: Markus Jung <diplomarbeit.markusjung@gmx.net>; +Cc: pgsql-interfaces
I believe this is referring to the linux.h in the linux kernel source
code. If you don't have the kernel source installed and can do so easily,
do it. If not, maybe someone else has a trick up their sleeve.
-Cedar
On Mon, 22 Jan 2001, Markus Jung wrote:
> Hi all,
>
> I installed Postgres with the SUSE distribution 7.0 and it works fine.
>
> However if I try to use the libpg++ library and link it to my C++ programm I
> receive some error message about the include file.
>
> The "libpg++.h" contains several other include files which again contain
> other include files. I went through the include files and came to a link
> called "os.h" which links to "linux.h".
>
> I could not find this "linux.h" on my system and was wondering whether this
> file should be part of my linux distribution or comes with Postgres?
>
> Where should I link os.h to?
>
>
> Thanks for the help
>
> Markus
>
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2001-01-22 16:31 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-22 15:28 libpg++ under SUSE Linux 7.0 (problem with link os.h) Markus Jung <diplomarbeit.markusjung@gmx.net>
2001-01-22 16:31 ` Cedar Cox <cedarc@visionforisrael.com>
2001-01-22 16:19 ` 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