public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* glibc build fails on x86_64
@ 2003-09-03 10:13 Andreas Jaeger
  2003-09-03 10:22 ` Jakub Jelinek
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Jaeger @ 2003-09-03 10:13 UTC (permalink / raw)
  To: GNU libc hackers

[-- Attachment #1: Type: text/plain, Size: 595 bytes --]


I just got on x86_64:
loadmsgcat.c: In function `_nl_load_domain':
loadmsgcat.c:917: error: `__NR_open_not_cancel_2' undeclared (first use in this function)
loadmsgcat.c:917: error: (Each undeclared identifier is reported only once
loadmsgcat.c:917: error: for each function it appears in.)
loadmsgcat.c:965: error: `__NR_read_not_cancel' undeclared (first use in this function)

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

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

* Re: glibc build fails on x86_64
  2003-09-03 10:13 glibc build fails on x86_64 Andreas Jaeger
@ 2003-09-03 10:22 ` Jakub Jelinek
  2003-09-03 11:07   ` Andreas Jaeger
  0 siblings, 1 reply; 5+ messages in thread
From: Jakub Jelinek @ 2003-09-03 10:22 UTC (permalink / raw)
  To: Andreas Jaeger; +Cc: GNU libc hackers

On Wed, Sep 03, 2003 at 12:13:47PM +0200, Andreas Jaeger wrote:
> 
> I just got on x86_64:
> loadmsgcat.c: In function `_nl_load_domain':
> loadmsgcat.c:917: error: `__NR_open_not_cancel_2' undeclared (first use in this function)
> loadmsgcat.c:917: error: (Each undeclared identifier is reported only once
> loadmsgcat.c:917: error: for each function it appears in.)
> loadmsgcat.c:965: error: `__NR_read_not_cancel' undeclared (first use in this function)

linuxthreads or NPTL?
Both built just fine for me last night on x86_64.

	Jakub

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

* Re: glibc build fails on x86_64
  2003-09-03 10:22 ` Jakub Jelinek
@ 2003-09-03 11:07   ` Andreas Jaeger
  2003-09-03 11:28     ` [PATCH] " Jakub Jelinek
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Jaeger @ 2003-09-03 11:07 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: GNU libc hackers

[-- Attachment #1: Type: text/plain, Size: 872 bytes --]

Jakub Jelinek <jakub@redhat.com> writes:

> On Wed, Sep 03, 2003 at 12:13:47PM +0200, Andreas Jaeger wrote:
>> 
>> I just got on x86_64:
>> loadmsgcat.c: In function `_nl_load_domain':
>> loadmsgcat.c:917: error: `__NR_open_not_cancel_2' undeclared (first use in this function)
>> loadmsgcat.c:917: error: (Each undeclared identifier is reported only once
>> loadmsgcat.c:917: error: for each function it appears in.)
>> loadmsgcat.c:965: error: `__NR_read_not_cancel' undeclared (first use in this function)
>
> linuxthreads or NPTL?
> Both built just fine for me last night on x86_64.

linuxthreads - with current CVS after Uli's changes were in,

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

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

* [PATCH] Re: glibc build fails on x86_64
  2003-09-03 11:07   ` Andreas Jaeger
@ 2003-09-03 11:28     ` Jakub Jelinek
  2003-09-03 11:34       ` Andreas Jaeger
  0 siblings, 1 reply; 5+ messages in thread
From: Jakub Jelinek @ 2003-09-03 11:28 UTC (permalink / raw)
  To: Andreas Jaeger, Ulrich Drepper; +Cc: GNU libc hackers

On Wed, Sep 03, 2003 at 01:07:13PM +0200, Andreas Jaeger wrote:
> >> I just got on x86_64:
> >> loadmsgcat.c: In function `_nl_load_domain':
> >> loadmsgcat.c:917: error: `__NR_open_not_cancel_2' undeclared (first use in this function)
> >> loadmsgcat.c:917: error: (Each undeclared identifier is reported only once
> >> loadmsgcat.c:917: error: for each function it appears in.)
> >> loadmsgcat.c:965: error: `__NR_read_not_cancel' undeclared (first use in this function)
> >
> > linuxthreads or NPTL?
> > Both built just fine for me last night on x86_64.
> 
> linuxthreads - with current CVS after Uli's changes were in,

Oh, apparently this was one of the 2 2003-09-02 changes I didn't have in my
tree during that build.

Try following untested patch. The problem is that non-NPTL linux
not-cancel.h uses INLINE_SYSCALL macros, so when open is redefined to
open_not_cancel_2 and open_not_cancel_2 is defined as INLINE_SYSCALL (open,
...) it will expand as __NR_open_not_cancel_2.

2003-09-03  Jakub Jelinek  <jakub@redhat.com>

	* intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
	function-like macros.

--- libc/intl/loadmsgcat.c.jj	2003-09-03 07:10:34.000000000 -0400
+++ libc/intl/loadmsgcat.c	2003-09-03 07:22:48.000000000 -0400
@@ -454,11 +454,12 @@ char *alloca ();
 /* Rename the non ISO C functions.  This is required by the standard
    because some ISO C functions will require linking with this object
    file and the name space must not be polluted.  */
-# define open   open_not_cancel_2
-# define close  close_not_cancel_no_status
-# define read   read_not_cancel
-# define mmap   __mmap
-# define munmap __munmap
+# define open(name, flags)	open_not_cancel_2 (name, flags)
+# define close(fd)		close_not_cancel_no_status (fd)
+# define read(fd, buf, n)	read_not_cancel (fd, buf, n)
+# define mmap(addr, len, prot, flags, fd, offset) \
+  __mmap (addr, len, prot, flags, fd, offset)
+# define munmap(addr, len)	__munmap (addr, len)
 #endif
 
 /* For those losing systems which don't have `alloca' we have to add


	Jakub

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

* Re: [PATCH] Re: glibc build fails on x86_64
  2003-09-03 11:28     ` [PATCH] " Jakub Jelinek
@ 2003-09-03 11:34       ` Andreas Jaeger
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas Jaeger @ 2003-09-03 11:34 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Ulrich Drepper, GNU libc hackers

[-- Attachment #1: Type: text/plain, Size: 764 bytes --]

Jakub Jelinek <jakub@redhat.com> writes:

> Oh, apparently this was one of the 2 2003-09-02 changes I didn't have in my
> tree during that build.

No problem.

> Try following untested patch. The problem is that non-NPTL linux
> not-cancel.h uses INLINE_SYSCALL macros, so when open is redefined to
> open_not_cancel_2 and open_not_cancel_2 is defined as INLINE_SYSCALL (open,
> ...) it will expand as __NR_open_not_cancel_2.

That looks much better than my previous tries, now the file compiles
for me.  Ok, let's continue...

Thanks a lot,
Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

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

end of thread, other threads:[~2003-09-03 11:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-03 10:13 glibc build fails on x86_64 Andreas Jaeger
2003-09-03 10:22 ` Jakub Jelinek
2003-09-03 11:07   ` Andreas Jaeger
2003-09-03 11:28     ` [PATCH] " Jakub Jelinek
2003-09-03 11:34       ` Andreas Jaeger

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).