agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
what do I have??
2+ messages / 2 participants
[nested] [flat]

* what do I have??
@ 1994-05-11 08:16  J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
  0 siblings, 1 reply; 2+ messages in thread

From: J.Plewe @ 1994-05-11 08:16 UTC (permalink / raw)
  To: legacy

Hello!

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

I had some problems 'load'ing object files. After some investigation,
it turned out that the symbol _atof is missing. Instead I found 
a symbol _atof1 in the PG executable. 
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?


- Joerg Plewe



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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: what do I have??
@ 1994-05-12 08:24  Kai Petzke <wpp@marie.physik.tu-berlin.de>
  parent: J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Kai Petzke @ 1994-05-12 08:24 UTC (permalink / raw)
  To: J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>; +Cc: legacy

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~1994-05-12 08:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1994-05-11 08:16 what do I have?? J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
1994-05-12 08:24 ` Kai Petzke <wpp@marie.physik.tu-berlin.de>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox