agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Kai Petzke <wpp@marie.physik.tu-berlin.de>
To: J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: what do I have??
Date: Thu, 12 May 1994 10:24:27 +0200 (MET DST)
Message-ID: <9405120823.AA02348@marie.physik.tu-berlin.de> (raw)
In-Reply-To: <9405110816.AA08025@e90021.mpi-dortmund.mpg.de>

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




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: what do I have??
  In-Reply-To: <9405120823.AA02348@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