[Bug libfortran/35471] libgfortran fails with nonstandard <complex.h>

george at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Apr 1 08:24:00 GMT 2008



------- Comment #7 from george at gcc dot gnu dot org  2008-04-01 08:24 -------
Can't verify that the patch provided works.  After three attempts at a build
(one just by patching libgfortran.h followed by a "make", one by "make
clean-target-libgfortran" followed by "make" and one built from scratch in an
empty object directory), all fail in a way similar as this (can't show initial
make commands because they overflow my 10,000 line default conversation
buffer):

...
.libs/in_unpack_generic.o: In function `putc_unlocked':
.libs/in_unpack_generic.o(.text+0x2220): multiple definition of `putc_unlocked'
.libs/backtrace.o(.text+0x27c0): first defined here
.libs/in_unpack_generic.o: In function `fputc_unlocked':
.libs/in_unpack_generic.o(.text+0x2280): multiple definition of
`fputc_unlocked'
.libs/backtrace.o(.text+0x2820): first defined here
.libs/in_unpack_generic.o: In function `putchar':
.libs/in_unpack_generic.o(.text+0x22e0): multiple definition of `putchar'
.libs/backtrace.o(.text+0x2880): first defined here
.libs/in_unpack_generic.o: In function `getchar_unlocked':
.libs/in_unpack_generic.o(.text+0x2310): multiple definition of
`getchar_unlocked'
.libs/backtrace.o(.text+0x28b0): first defined here
.libs/in_unpack_generic.o: In function `getc_unlocked':
.libs/in_unpack_generic.o(.text+0x2360): multiple definition of `getc_unlocked'
.libs/backtrace.o(.text+0x2900): first defined here
.libs/in_unpack_generic.o: In function `getchar':
.libs/in_unpack_generic.o(.text+0x23b0): multiple definition of `getchar'
.libs/backtrace.o(.text+0x2950): first defined here
.libs/in_unpack_generic.o: In function `vprintf':
.libs/in_unpack_generic.o(.text+0x23e0): multiple definition of `vprintf'
.libs/backtrace.o(.text+0x2980): first defined here
collect2: ld returned 1 exit status
gmake[3]: *** [libgfortran.la] Error 1
gmake[3]: Leaving directory
`/usr2/local/src/gcc-4.3-20080204/gcc-linux/i686-pc-linux-gnu/libgfortran'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/usr2/local/src/gcc-4.3-20080204/gcc-linux/i686-pc-linux-gnu/libgfortran'
gmake[1]: *** [all-target-libgfortran] Error 2
gmake[1]: Leaving directory `/usr2/local/src/gcc-4.3-20080204/gcc-linux'
gmake: *** [all] Error 2

gmake is GNU make 3.81 (if not used, the build fails due to outdated make
unable to cope with features of newer make versions)

configured with

../gcc/configure MAKE=gmake --enable-languages=fortran

gmp 4.2.2 configure: ./configure
mpfr 2.3.0 configure: ./configure LDFLAGS=-L/usr/local/lib


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35471



More information about the Gcc-bugs mailing list