* Re: 970929 snapshot. undefined reference in libstdc++.so. Help needed !
[not found] <9710021831.AA25072.cygnus.egcs@drfmc.ceng.cea.fr>
@ 1997-10-02 11:52 ` Jason Merrill
1997-10-03 12:55 ` Alexandre Oliva
0 siblings, 1 reply; 4+ messages in thread
From: Jason Merrill @ 1997-10-02 11:52 UTC (permalink / raw)
To: Max Lawson, egcs
>>>>> Max Lawson <mlawson@drfmc.ceng.cea.fr> writes:
> /usr/local/lib/libstdc++.so: undefined reference to '_IO_outfloat'
You will need to force a reconfigure after applying this patch, by running
./config.status in the libio build directory.
Thu Oct 2 10:36:49 1997 Jason Merrill <jason@yorick.cygnus.com>
* gen-params: Fix __printf_fp test.
* config/linuxlibc1.mt (gxx_includedir): Don't define.
Thu Oct 2 10:36:26 1997 Ulrich Drepper <drepper@rtl.cygnus.com>
* config/linuxlibc1.mt (_G_CONFIG_H): Don't define.
* gen-params: Add test for __printf_fp.
Index: gen-params
===================================================================
RCS file: /cvs/cvsfiles/egcs/libio/gen-params,v
retrieving revision 1.2
retrieving revision 1.3
diff -c -r1.2 -r1.3
*** gen-params 1997/09/27 04:06:55 1.2
--- gen-params 1997/10/02 17:39:35 1.3
***************
*** 692,697 ****
--- 692,713 ----
echo "#define ${macro_prefix}USE_INT32_FLAGS 1"
fi
+ # A little test program to check if __printf_fp is available.
+ cat >dummy.c <<EOF
+ int main()
+ {
+ return __printf_fp ();
+ }
+ EOF
+
+ if ${CC} dummy.c >/dev/null 2>&1 ; then
+ echo "#define ${macro_prefix}HAVE_PRINTF_FP 1"
+ echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO 1"
+ else
+ echo "#define ${macro_prefix}HAVE_PRINTF_FP 0"
+ echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO 0"
+ fi
+
# Uncomment the following line if you don't have working templates.
# echo "#define ${macro_prefix}NO_TEMPLATES"
Index: config/linuxlibc1.mt
===================================================================
RCS file: /cvs/cvsfiles/egcs/libio/config/linuxlibc1.mt,v
retrieving revision 1.2
retrieving revision 1.3
diff -c -r1.2 -r1.3
*** config/linuxlibc1.mt 1997/09/27 04:06:59 1.2
--- linuxlibc1.mt 1997/10/02 17:39:40 1.3
***************
*** 1,16 ****
# Use the libio which comes with the local libc.
- # That is where we keep the g++ header files.
- gxx_includedir =$(prefix)/include/g++
-
# Comment this out to avoid including the stdio functions in libiostream.a:
# LIBIOSTREAM_OBJECTS = $(IO_OBJECTS) $(IOSTREAM_OBJECTS) $(STDIO_WRAP_OBJECTS) $(OSPRIM_OBJECTS)
# LIBIOSTREAM_DEP = $(LIBIOSTREAM_OBJECTS) stdio.list
# LIBIOSTREAM_USE = $(LIBIOSTREAM_OBJECTS) `cat stdio.list`
-
- # Comment the above and uncomment the below to use the code in the Linux libc:
- # We have _G_config.h in /usr/include.
- _G_CONFIG_H=
# We must not see the libio.h file from this library.
LIBIO_INCLUDE=
--- 1,9 ----
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 970929 snapshot. undefined reference in libstdc++.so. Help needed !
1997-10-02 11:52 ` 970929 snapshot. undefined reference in libstdc++.so. Help needed ! Jason Merrill
@ 1997-10-03 12:55 ` Alexandre Oliva
0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 1997-10-03 12:55 UTC (permalink / raw)
To: Jason Merrill; +Cc: Max Lawson, egcs
[-- 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),
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 970929 snapshot. undefined reference in libstdc++.so. Help needed !
1997-10-02 11:32 Max Lawson
@ 1997-10-02 13:17 ` H.J. Lu
0 siblings, 0 replies; 4+ messages in thread
From: H.J. Lu @ 1997-10-02 13:17 UTC (permalink / raw)
To: Max Lawson; +Cc: egcs
>
> Hi.
>
> I've downloaded the 970929 snapshot and succeded building
> the compiler (make bootstrap LANGUAGES="c c++" BOOT_CFLAGS="-g -O2").
> My box is i586-pc-linux-gnulibc1
>
> I've made the installation (make install LANGUAGES="c c++" CFLAGS ="-g -O2").
> As I tried to compile a test-program (that the pevious snapshot didn't succeed
> compile), I got a linker error.... To summarize, I can't link the
> following program:
>
Please get libc 5.4.39 at
ftp://tsx-11.mit.edu/pub/linux/packages/GCC/private/tofu
H.J.
^ permalink raw reply [flat|nested] 4+ messages in thread
* 970929 snapshot. undefined reference in libstdc++.so. Help needed !
@ 1997-10-02 11:32 Max Lawson
1997-10-02 13:17 ` H.J. Lu
0 siblings, 1 reply; 4+ messages in thread
From: Max Lawson @ 1997-10-02 11:32 UTC (permalink / raw)
To: egcs
Hi.
I've downloaded the 970929 snapshot and succeded building
the compiler (make bootstrap LANGUAGES="c c++" BOOT_CFLAGS="-g -O2").
My box is i586-pc-linux-gnulibc1
I've made the installation (make install LANGUAGES="c c++" CFLAGS ="-g -O2").
As I tried to compile a test-program (that the pevious snapshot didn't succeed
compile), I got a linker error.... To summarize, I can't link the
following program:
--------------------test.cc----
#include <iostream.h>
int main() { cout << "hello\n"; return 0; }
--------------------cc.tset----
$ g++ -g test.cc
/usr/local/lib/libstdc++.so: undefined reference to '_IO_outfloat'
collect2: ld returned 1 exit status.
Thanx in advance for your help, Max
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-10-03 12:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <9710021831.AA25072.cygnus.egcs@drfmc.ceng.cea.fr>
1997-10-02 11:52 ` 970929 snapshot. undefined reference in libstdc++.so. Help needed ! Jason Merrill
1997-10-03 12:55 ` Alexandre Oliva
1997-10-02 11:32 Max Lawson
1997-10-02 13:17 ` H.J. Lu
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).