This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Multiple definitions of __copysign?
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 14 Nov 2006 17:26:53 -0500
- Subject: Multiple definitions of __copysign?
libc-alpha,
There is a definition of __copysign() in math/math_private.h and also
in sysdeps/ieee754/dbl-64/s_copysign.c. I have been testing gcc by
building glibc, and today with a recent compiler this failed to build.
hppa-linux-gcc ../sysdeps/ieee754/dbl-64/s_copysign.c -c -std=gnu99
-O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g
-Wstrict-prototypes -Wno-uninitialized -D__NO_MATH_INLINES
-D__LIBC_INTERNAL_MATH_INLINES -DNO_LONG_DOUBLE
-D_Mlong_double_=double -I../include
-I/home/carlos/fsrc/glibc-work/builds/libc-tls-nptl/math
-I/home/carlos/fsrc/glibc-work/builds/libc-tls-nptl
-I../ports/sysdeps/hppa/elf
-I../ports/sysdeps/unix/sysv/linux/hppa/nptl
-I../ports/sysdeps/unix/sysv/linux/hppa
-I../ports/sysdeps/unix/sysv/linux -I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../ports/sysdeps/unix/sysv -I../nptl/sysdeps/unix/sysv
-I../sysdeps/unix/sysv -I../ports/sysdeps/unix -I../nptl/sysdeps/unix
-I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/hppa/hppa1.1
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754/dbl-64 -I../ports/sysdeps/hppa/fpu
-I../ports/sysdeps/hppa/nptl -I../ports/sysdeps/hppa
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic
-I../ports -I../nptl -I.. -I../libio -I. -I
/lib/modules/2.6.18-rc5-pa1/build/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h -o
/home/carlos/fsrc/glibc-work/builds/libc-tls-nptl/math/s_copysign.o
-MD -MP -MF /home/carlos/fsrc/glibc-work/builds/libc-tls-nptl/math/s_copysign.o.dt
-MT /home/carlos/fsrc/glibc-work/builds/libc-tls-nptl/math/s_copysign.o
../sysdeps/ieee754/dbl-64/s_copysign.c:32: error: redefinition of '__copysign'
./math_private.h:196: error: previous definition of '__copysign' was here
Is this a genuine bug? I'm a bit surprised.
Cheers,
Carlos.