Article View: gnu.gcc.help
Article #52069Difficulties in making and using glibc with gcc
From: Dale Wellborn
Date: Sat, 27 Feb 1993 02:15
Date: Sat, 27 Feb 1993 02:15
87 lines
3952 bytes
3952 bytes
Hello.
This is my first ever posting to this group (and to the news net!), so please
have some compassion.
My news server only provided me with recent articles in this group, hence I
am unaware if this may be an "old" problem. My apologies if it is.
System: Sun 4/50 IPX
OS: SunOS 4.1.3
Configuration option for most/all Gnu products: sparc-sun-sunos4.1.3
Gnu software:
gcc-2.3.3
glibc-1.05.1
gas-1.38.1
ld distributed with binutils-2.0
The Problem:
I am unable to use scanf() to input floating point numbers: it appears that
the decimal place is lost (i.e. using scanf to input 1.6 results in 1600000
when output with prinf). The Sun tools work just fine.
*** I tried to use the gcc option: -fwritable-strings as suggested in the
manual, but this had no effect. I also tried to use a character array variable
rather than using the string "%lf" in the scanf() command; this had no effect.
***
Some Background:
I had gcc-2.2.2 running fine with the Sun library, assembler, and linker.
I wanted to utilize a library with function prototypes, so I installed
glibc-1.05.1. This did not install easily. The installation went easier
after I installed the gnu assembler and the gnu linker. Still, I was required
to manual correct some assembler files (.S) which contained negative signs (-)
in local labels (i.e. L.4.-3) [These were in the sub-dir ./gnulib].
Once the assembler labels were corrected, the library was made and installed.
Now I am unable to have a simple program which inputs floating point numbers
from a file and echo them to stdout work.
I realize that I am being somewhat vague in this mail (i.e. not providing
example output/input/code). I basically think that I have screwed up during
the installation and/or I don't know how to use gcc properly. So I don't
want to waste your time with too much information. I will be happy to
provide additional details/examples if this problem is "interesting" to
someone else.
Quite frankly, I can't imagine how a - dare I say - "production" tool
like gcc/glib could have such basic i/o errors. Hence, the problem is
probably at my end. I was hope the collective-YOU might tell me where to
begin looking for the problem.
BTW, I have not posted this to any of the official gnu bug lists (I'm too
embarrassed at this early time ;-)
That's about it for a late Friday night.
Remember, I'm new to this group (and news): If this query is inappropriate
for this group, could you please suggest an alternate group. I didn't
see a group specific to the glibc. Also, our news server restricts us to
only certain groups. Sigh.
Please email me your responses, and I'll post a summary to the group.
I'll manually include my return address here (I don't know if I set up
my .signature file properly)
dwellbor@sol.drao.nrc.ca
Thank you for your time (and tolerating a new user)
Dale Wellborn
Dominion Radio Astrophysical Observatory
Penticton, B.C.
Canada
--
Dale Wellborn
Internet : dwellbor@sol.drao.nrc.ca
Snailnet : Dominion Radio Astrophysical Observatory
P.O. Box 248, Penticton, BC, Canada V2A 6K3
BC Tel net: (604) 493-4357
Faxnet : (604) 493-7767
Sneakernet: RadioAstron building
Technical Details
Message-ID:
<1993Feb27.021518.23263@nrcnet0.nrc.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!cs.utexas.edu!torn!nott!nrcnet0!dwellborShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,d00f43d953234333,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-02-26 18:15:18 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!cs.utexas.edu!torn!nott!nrcnet0!dwellbor From: dwellbor@drao.nrc.ca (Dale Wellborn) Subject: Difficulties in making and using glibc with gcc Message-ID: <1993Feb27.021518.23263@nrcnet0.nrc.ca> Keywords: glibc, gcc Sender: root@nrcnet0.nrc.ca (Operator) Nntp-Posting-Host: sol.drao.nrc.ca Organization: Dominion Radio Astrophysical Observatory, Penticton, B.C., Canada Date: Sat, 27 Feb 93 02:15:18 GMT Lines: 87