Return-Path: owner-postman 
Delivery-Date: Thu, 12 May 94 06:05:43 -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 CAA08384 for postgres-redist; Thu, 12 May 1994 02:45:06 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199405120945.CAA08384@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 CAA08364 for <postgres@nobozo.CS.Berkeley.EDU>; Thu, 12 May 1994 02:42:21 -0700
Received: from marie.physik.TU-Berlin.DE by mailgzrz.TU-Berlin.DE (5.65c/ZRZ-MX)
          for <postgres@nobozo.CS.Berkeley.EDU>
	  id AA29365; Thu, 12 May 1994 10:24:47 +0200
Received: by marie.physik.tu-berlin.de (5.0/SMI-SVR4)
	id AA02348; Thu, 12 May 1994 10:23:57 --100
From: wpp@marie.physik.tu-berlin.de (Kai Petzke)
Message-Id: <9405120823.AA02348@marie.physik.tu-berlin.de>
Subject: Re: what do I have??
To: joerg.plewe@mpi-dortmund.mpg.de (J.Plewe)
Date: Thu, 12 May 1994 10:24:27 +0200 (MET DST)
Cc: postgres@postgres.Berkeley.EDU
In-Reply-To: <9405110816.AA08025@e90021.mpi-dortmund.mpg.de> from "J.Plewe" at May 11, 94 10:16:01 am
X-Mailer: ELM [version 2.4 PL23]
Content-Type: text
Content-Length: 1300
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Thu, 12 May 94 02:45:05 -0700
Resent-XMts: smtp

> 
> Hello!
> 
> I have installed PG4.0.1 from a Linux-CD (DLD 1.1.1c) in binary form.

I don't have that CD.  Unlike Yggdrasil, they have not given me a
free copy of it.  I have not seen any other bug report about the
Posgres as it is on the DLD CD, though.

> I changed the source of circle.c to use atof1() instead of atof()
> and suddenly it worked.
>  
> So now my question: what do I have installed? A mutant?
> Is this a known bug? Or a feature?

I do not know exactly, what is going on.  My guess is, that the
reason for the problem is caused by the handling of atof():

- Older versions of the linux C library had atof() unconditionally
  defined as a macro, that calls strtod() instead.
- Newer versions only define that macro, if optimization is
  turned on.
- No macro is defined, if you do not include the <stdlib.h>
  header file.

An atof() function should be defined in the C library, though.
The dynamical loader should link in that one, if it is needed.
Maybe, they have put outdated library stubs on your CD.  Try
compiling (without optimiser!) and linking a simple function,
which uses atof.  If that fails, too, their CD is the problem,
not postgres.

To get circle.c compiled correctly:
- Make sure, it includes <stdlib.h>
- Compile it using the -O or -O2 optimiser flag.


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

