Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 349604 Details for
Bug 470884
dev-libs/elfutils: build fails on uclibc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Replace obstack_printf with asprintf/obstack_grow
elfutils-0.155-replace-obstack_printf.patch (text/plain), 1.24 KB, created by
Anthony Basile
on 2013-05-30 01:58:16 UTC
(
hide
)
Description:
Replace obstack_printf with asprintf/obstack_grow
Filename:
MIME Type:
Creator:
Anthony Basile
Created:
2013-05-30 01:58:16 UTC
Size:
1.24 KB
patch
obsolete
>diff -Naur elfutils-0.155.orig/src/nm.c elfutils-0.155/src/nm.c >--- elfutils-0.155.orig/src/nm.c 2013-05-30 00:32:10.259792903 +0000 >+++ elfutils-0.155/src/nm.c 2013-05-30 00:32:42.069792699 +0000 >@@ -1286,12 +1286,11 @@ > /* We found the line. */ > int lineno; > (void) dwarf_lineno (line, &lineno); >- int n; >- n = obstack_printf (&whereob, "%s:%d%c", >- basename (dwarf_linesrc (line, >- NULL, >- NULL)), >- lineno, '\0'); >+ char *s; >+ int n = asprintf (&s, "%s:%d%c", >+ basename (dwarf_linesrc (line, NULL, NULL)), >+ lineno, '\0'); >+ obstack_grow (&whereob, s, strlen(s)); > sym_mem[nentries_used].where > = obstack_finish (&whereob); > >@@ -1318,10 +1317,12 @@ > if (found != NULL) > { > /* We found the line. */ >- int n = obstack_printf (&whereob, "%s:%" PRIu64 "%c", >- basename ((*found)->file), >- (*found)->lineno, >- '\0'); >+ char *s; >+ int n = asprintf (&s, "%s:%" PRIu64 "%c", >+ basename ((*found)->file), >+ (*found)->lineno, >+ '\0'); >+ obstack_grow (&whereob, s, strlen(s)); > sym_mem[nentries_used].where = obstack_finish (&whereob); > > /* The return value of obstack_print included the
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 470884
:
348828
|
348830
|
348832
|
348908
|
349604
|
349608
|
350476
|
350478
|
350480
|
350482
|
350484
|
350486
|
376194
|
376196
|
376198
|
459426
|
459428
|
459430
|
459432
|
459434