public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/27150] New: alpha: wait4() is unavailable in static linking
@ 2021-01-05  7:47 slyfox at inbox dot ru
  2021-01-05 14:30 ` [Bug libc/27150] " adhemerval.zanella at linaro dot org
  2021-01-05 18:01 ` slyfox at inbox dot ru
  0 siblings, 2 replies; 3+ messages in thread
From: slyfox at inbox dot ru @ 2021-01-05  7:47 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=27150

            Bug ID: 27150
           Summary: alpha: wait4() is unavailable in static linking
           Product: glibc
           Version: 2.32
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: slyfox at inbox dot ru
                CC: adhemerval.zanella at linaro dot org, drepper.fsp at gmail dot com
  Target Milestone: ---

Originally reported as https://bugs.gentoo.org/763618 by Yoshihiko Iwama where
static linking of a binary for initramfs fails on alpha:

```c
$ cat a.c
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/wait.h>

int main() {
    pid_t pid = 1;
    int wstatus;
    int options;
    struct rusage ru;
    return wait4(pid, &wstatus, options, &ru);
}
$ alpha-unknown-linux-gnu-gcc a.c -o a
$ LANG=C alpha-unknown-linux-gnu-gcc a.c -o a -static
/usr/libexec/gcc/alpha-unknown-linux-gnu/ld: /tmp/cciRui2f.o: in function
`main':
(.text+0x40): undefined reference to `wait4'
collect2: error: ld returned 1 exit status
```

The suspect is
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=09153638cfef9166586b0c21e852ea0d6f15a0fd
that misses static library handling.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug libc/27150] alpha: wait4() is unavailable in static linking
  2021-01-05  7:47 [Bug libc/27150] New: alpha: wait4() is unavailable in static linking slyfox at inbox dot ru
@ 2021-01-05 14:30 ` adhemerval.zanella at linaro dot org
  2021-01-05 18:01 ` slyfox at inbox dot ru
  1 sibling, 0 replies; 3+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2021-01-05 14:30 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=27150

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
           Assignee|unassigned at sourceware dot org   |adhemerval.zanella at linaro dot o
                   |                            |rg
   Target Milestone|---                         |2.33
         Resolution|---                         |FIXED

--- Comment #1 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Fixed on 2.33.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug libc/27150] alpha: wait4() is unavailable in static linking
  2021-01-05  7:47 [Bug libc/27150] New: alpha: wait4() is unavailable in static linking slyfox at inbox dot ru
  2021-01-05 14:30 ` [Bug libc/27150] " adhemerval.zanella at linaro dot org
@ 2021-01-05 18:01 ` slyfox at inbox dot ru
  1 sibling, 0 replies; 3+ messages in thread
From: slyfox at inbox dot ru @ 2021-01-05 18:01 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=27150

--- Comment #2 from Sergei Trofimovich <slyfox at inbox dot ru> ---
Thank you! Linking patch here for posterity:
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=6cc992412cd8c8555ca5d67fa2b994e38ccb6c1f

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2021-01-05 18:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-05  7:47 [Bug libc/27150] New: alpha: wait4() is unavailable in static linking slyfox at inbox dot ru
2021-01-05 14:30 ` [Bug libc/27150] " adhemerval.zanella at linaro dot org
2021-01-05 18:01 ` slyfox at inbox dot ru

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