Return-Path: owner-postman 
Delivery-Date: Tue, 10 May 94 14:39:22 -0700
Return-Path: owner-postman
Received: from localhost (localhost [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id JAA07932 for postgres-redist; Tue, 10 May 1994 09:11:21 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199405101611.JAA07932@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from mailgzrz.TU-Berlin.DE (mailgzrz.TU-Berlin.DE [130.149.4.10]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id IAA07830 for <postgres@nobozo.CS.Berkeley.EDU>; Tue, 10 May 1994 08:59:28 -0700
Received: from marie.physik.TU-Berlin.DE by mailgzrz.TU-Berlin.DE (5.65c/ZRZ-MX)
          for <postgres@nobozo.CS.Berkeley.EDU>
	  id AA03997; Tue, 10 May 1994 14:09:28 +0200
Received: by marie.physik.tu-berlin.de (5.0/SMI-SVR4)
	id AA19560; Tue, 10 May 1994 14:09:26 --100
From: wpp@marie.physik.tu-berlin.de (Kai Petzke)
Message-Id: <9405101209.AA19560@marie.physik.tu-berlin.de>
Subject: Re: ADT with Linux
To: joerg.plewe@mpi-dortmund.mpg.de (J.Plewe)
Date: Tue, 10 May 1994 14:10:00 +0200 (MET DST)
Cc: postgres@postgres.Berkeley.EDU
In-Reply-To: <9405100730.AA07250@e90021.mpi-dortmund.mpg.de> from "J.Plewe" at May 10, 94 09:30:02 am
X-Mailer: ELM [version 2.4 PL23]
Content-Type: text
Content-Length: 1273
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Tue, 10 May 94 09:11:20 -0700
Resent-XMts: smtp

> 
> 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.
===============================================================================

