This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Failed to compile tst-mqueue8x.c


When running the glibc testsuite, tst-mqueue8x.c fails to compile
(missing personality routine).

tst-mqueue8x.o: In function `__pthread_cleanup_routine':
tst-mqueue8x.o:(.rodata+0x10): undefined reference to `__gcc_personality_v0'

The heavy handed fix is shown below. Unfortunately I don't think this
is the correct solution. My gut feeling is that this means something
else is broken.

Any clues as to what is originally broken?

Index: sysdeps/pthread/Makefile
===================================================================
RCS file: /cvs/glibc/libc/nptl/sysdeps/pthread/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- sysdeps/pthread/Makefile    28 Feb 2006 07:09:41 -0000      1.8
+++ sysdeps/pthread/Makefile    3 May 2007 04:10:55 -0000
@@ -41,7 +41,9 @@ endif

ifeq ($(have-forced-unwind),yes)
tests += tst-mqueue8x
+ldflags-libgcc_s = --as-needed -lgcc_s --no-as-needed
CFLAGS-tst-mqueue8x.c += -fexceptions
+LDFLAGS-tst-mqueue8x += $(ldflags-libgcc_s)
endif
endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]