This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Failed to compile tst-mqueue8x.c
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: libc-ports at sourceware dot org
- Date: Thu, 3 May 2007 00:19:38 -0400
- Subject: Failed to compile tst-mqueue8x.c
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=j2ya/P1lPtAGRmYUIUk3uPEUn9E7FiYRXd70es0s995FS4yULLIJx/XYV2gt4nv1WF7LemJegFHhLm575vNXAVI/FEdEgxSOwZd6byQrvv/f7GL96vmsZ7BG08CysbvUTzJPG9OqbvSHzh6CKyORZxdYmq17zGacoDazrvzPsVs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=iZBME/hwXo898m8tqHpvcxvyjdLBKnt/PjV+flPODOOc83dIHisnAsLbdi3PrrJrlqbnso+YUVObYIPaUOth/2ZJvYhTCjck2SyymxQaGbUmdtpOm0ta18t7zI36o4JHzMGNyAxqE0ZgWP0CvfueVbxXTX4W8TMQf1csCFgUPgE=
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