agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: Kai Petzke <wpp@marie.physik.tu-berlin.de>
To: J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: ADT with Linux
Date: Tue, 10 May 1994 14:10:00 +0200 (MET DST)
Message-ID: <9405101209.AA19560@marie.physik.tu-berlin.de> (raw)
In-Reply-To: <9405100730.AA07250@e90021.mpi-dortmund.mpg.de>
>
> Hello!
>
> This is a very technical question from a newcomer:
>
> How do I have to compile user's data types with gcc under Linux?
In general you cannot do much wrong. Use:
cc -c <your-program>
If loading of that program fails later, very likely, it has one of
the following reasons:
1) User "postgres" has no access to your object file. Note, that
the postgres backend does a "cd" into the database directory,
so that it needs the full pathname to access your files. Any
intervening directories must be executable.
2) You "strip"ped the postgres backend. In that case, it will
not be able to link in the new file.
3) You reference functions, which are neither defined in the
backend nor in the standard C and math library.
In general, when you do a report about a bug or problem, it is
very important, that you include exact information about what you
did, and what the (wrong) result was. Under Linux, you can use
the program "script" for this purpose. For example, type:
script
cc -I ~postgres/include -c <your-program>
monitor
load <your-program-object-file>
exit
And then include the output, which was saved in "scriptfile".
Don't forget to state important version numbers as well. This
makes helping *much* easier!
Kai
===============================================================================
To add/remove yourself from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
===============================================================================
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: postgres@postgres.berkeley.edu
Cc: wpp@marie.physik.tu-berlin.de, joerg.plewe@mpi-dortmund.mpg.de
Subject: Re: ADT with Linux
In-Reply-To: <9405101209.AA19560@marie.physik.tu-berlin.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox