From: Alexandre Oliva <oliva@dcc.unicamp.br>
To: Jason Merrill <jason@cygnus.com>
Cc: mlawson@drfmc.ceng.cea.fr (Max Lawson), egcs@cygnus.com
Subject: Re: 970929 snapshot. undefined reference in libstdc++.so. Help needed !
Date: Fri, 03 Oct 1997 12:55:00 -0000 [thread overview]
Message-ID: <orn2kqr5ni.fsf@sunsite.dcc.unicamp.br> (raw)
In-Reply-To: <u9zposyp6u.fsf@yorick.cygnus.com>
[-- Attachment #1: Type: text/plain, Size: 471 bytes --]
Jason Merrill writes:
>>>>>> Max Lawson <mlawson@drfmc.ceng.cea.fr> writes:
>> /usr/local/lib/libstdc++.so: undefined reference to '_IO_outfloat'
> + echo "#define ${macro_prefix}HAVE_PRINTF_FP 0"
Sometimes HAVE_PRINTF_FP is tested with #ifdef instead of #if. Here's
a patch that allows me to build libio in SunOS 4.1.3, after applying
your patch.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
Universidade Estadual de Campinas, SP, Brasil
[-- Attachment #2: libio.diff --]
[-- Type: text/x-diff, Size: 892 bytes --]
* libio.h: _G_HAVE_PRINTF_FP's value must be tested, not its
definition
* iostream.cc: ditto
--- libio/libio.h~ Wed Oct 1 09:41:05 1997
+++ libio/libio.h Fri Oct 3 16:35:38 1997
@@ -71,7 +71,7 @@
# define const
#endif
#define _IO_UNIFIED_JUMPTABLES 1
-#ifndef _G_HAVE_PRINTF_FP
+#if !_G_HAVE_PRINTF_FP
# define _IO_USE_DTOA 1
#endif
--- libio/iostream.cc~ Wed Oct 1 09:41:05 1997
+++ libio/iostream.cc Fri Oct 3 16:36:22 1997
@@ -615,7 +615,7 @@
prec = 6; /* default */
// Do actual conversion.
-#ifdef _G_HAVE_PRINTF_FP
+#if _G_HAVE_PRINTF_FP
{
struct printf_info info = { prec: prec,
width: width(0),
@@ -718,7 +718,7 @@
if (prec <= 0 && !(flags() & ios::fixed))
prec = 6; /* default */
-#ifdef _G_HAVE_PRINTF_FP
+#if _G_HAVE_PRINTF_FP
// Do actual conversion.
struct printf_info info = { prec: prec,
width: width(0),
next prev parent reply other threads:[~1997-10-03 12:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <9710021831.AA25072.cygnus.egcs@drfmc.ceng.cea.fr>
1997-10-02 11:52 ` Jason Merrill
1997-10-03 12:55 ` Alexandre Oliva [this message]
1997-10-02 11:32 Max Lawson
1997-10-02 13:17 ` H.J. Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=orn2kqr5ni.fsf@sunsite.dcc.unicamp.br \
--to=oliva@dcc.unicamp.br \
--cc=egcs@cygnus.com \
--cc=jason@cygnus.com \
--cc=mlawson@drfmc.ceng.cea.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).