public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] check_pf.c: Include alloca.h
@ 2007-07-06 21:55 Kaz Kojima
  2007-07-06 22:23 ` Ulrich Drepper
  0 siblings, 1 reply; 6+ messages in thread
From: Kaz Kojima @ 2007-07-06 21:55 UTC (permalink / raw)
  To: libc-hacker

I've tried the build with gcc-4.2 for SH and got an error like

  xsh-libc-gcc4/libc.so.6: undefined reference to `__libc_use_alloca'

It seems that the undefined reference happens on check_pf.os.
Currently sysdeps/unix/sysv/linux/check_pf.c uses alloca without
including alloca.h.  Although this is not a problem on x86 because
alloca.h is included indirectly on that architecture, it looks
that other users of alloca function include alloca.h explicitly.
How about the attached one-liner?

Regards,
	kaz
--
2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>

	* sysdeps/unix/sysv/linux/check_pf.c: Include alloca.h.

--- ORIG/libc/sysdeps/unix/sysv/linux/check_pf.c	2007-06-18 09:03:48.000000000 +0900
+++ LOCAL/libc/sysdeps/unix/sysv/linux/check_pf.c	2007-07-04 09:13:50.000000000 +0900
@@ -25,6 +25,7 @@
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
+#include <alloca.h>
 #include <sys/socket.h>
 
 #include <asm/types.h>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-07-07  1:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-06 21:55 [PATCH] check_pf.c: Include alloca.h Kaz Kojima
2007-07-06 22:23 ` Ulrich Drepper
2007-07-06 22:43   ` Kaz Kojima
2007-07-06 23:54     ` Ulrich Drepper
2007-07-07  0:10     ` Kaz Kojima
2007-07-07  1:54       ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).