This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 970929 snapshot. undefined reference in libstdc++.so. Help needed !
- To: mlawson at drfmc dot ceng dot cea dot fr (Max Lawson), egcs at cygnus dot com
- Subject: Re: 970929 snapshot. undefined reference in libstdc++.so. Help needed !
- From: Jason Merrill <jason at cygnus dot com>
- Date: 02 Oct 1997 11:50:33 -0700
- References: <9710021831.AA25072.cygnus.egcs@drfmc.ceng.cea.fr>
>>>>> 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 ----