public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cryptooctoploid at gmail dot com" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sources.redhat.com Subject: [Bug build/13966] Some elf tests fail with "fatal error: cstdio: No such file or directory" on trunk Date: Tue, 10 Apr 2012 10:14:00 -0000 [thread overview] Message-ID: <bug-13966-131-zK6sZEBchN@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-13966-131@http.sourceware.org/bugzilla/> http://sourceware.org/bugzilla/show_bug.cgi?id=13966 --- Comment #1 from Octoploid <cryptooctoploid at gmail dot com> 2012-04-10 10:13:32 UTC --- The following patch also works: diff --git a/elf/tst-unique3.cc b/elf/tst-unique3.cc index efdd6d7..bc6e6ae 100644 --- a/elf/tst-unique3.cc +++ b/elf/tst-unique3.cc @@ -1,6 +1,6 @@ #include "tst-unique3.h" -#include <cstdio> +#include <stdio.h> #include "../dlfcn/dlfcn.h" int t = S<char>::i; @@ -8,14 +8,14 @@ int t = S<char>::i; int main (void) { - std::printf ("%d %d\n", S<char>::i, t); + printf ("%d %d\n", S<char>::i, t); int result = S<char>::i++ != 1 || t != 1; result |= in_lib (); void *d = dlopen ("$ORIGIN/tst-unique3lib2.so", RTLD_LAZY); int (*fp) (); if (d == NULL || (fp = (int(*)()) dlsym (d, "in_lib2")) == NULL) { - std::printf ("failed to get symbol in_lib2\n"); + printf ("failed to get symbol in_lib2\n"); return 1; } result |= fp (); diff --git a/elf/tst-unique3lib.cc b/elf/tst-unique3lib.cc index fa8e85a..79f8b31 100644 --- a/elf/tst-unique3lib.cc +++ b/elf/tst-unique3lib.cc @@ -1,4 +1,4 @@ -#include <cstdio> +#include <stdio.h> #include "tst-unique3.h" template<typename T> int S<T>::i = 1; static int i = S<char>::i; @@ -6,6 +6,6 @@ static int i = S<char>::i; int in_lib (void) { - std::printf ("in_lib: %d %d\n", S<char>::i, i); + printf ("in_lib: %d %d\n", S<char>::i, i); return S<char>::i++ != 2 || i != 1; } diff --git a/elf/tst-unique3lib2.cc b/elf/tst-unique3lib2.cc index 17d817e..18d8100 100644 --- a/elf/tst-unique3lib2.cc +++ b/elf/tst-unique3lib2.cc @@ -1,4 +1,4 @@ -#include <cstdio> +#include <stdio.h> #include "tst-unique3.h" template<typename T> int S<T>::i; @@ -7,6 +7,6 @@ extern "C" int in_lib2 () { - std::printf ("in_lib2: %d\n", S<char>::i); + printf ("in_lib2: %d\n", S<char>::i); return S<char>::i != 3; } diff --git a/elf/tst-unique4.cc b/elf/tst-unique4.cc index 575c70d..c00df13 100644 --- a/elf/tst-unique4.cc +++ b/elf/tst-unique4.cc @@ -1,7 +1,7 @@ // BZ 12511 #include "tst-unique4.h" -#include <cstdio> +#include <stdio.h> static int a[24] = { -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
next prev parent reply other threads:[~2012-04-10 10:14 UTC|newest] Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-04-10 9:47 [Bug build/13966] New: " cryptooctoploid at gmail dot com 2012-04-10 10:14 ` cryptooctoploid at gmail dot com [this message] 2012-04-10 17:55 ` [Bug build/13966] " carlos_odonell at mentor dot com 2012-04-19 20:01 ` joseph at codesourcery dot com 2012-04-19 21:26 ` cryptooctoploid at gmail dot com 2012-04-20 7:47 ` schwab@linux-m68k.org 2012-04-20 10:31 ` cryptooctoploid at gmail dot com 2012-04-20 12:17 ` schwab@linux-m68k.org 2012-04-20 12:23 ` schwab@linux-m68k.org 2012-04-20 12:28 ` cryptooctoploid at gmail dot com 2012-05-17 14:10 ` carlos_odonell at mentor dot com 2012-06-27 22:33 ` jsm28 at gcc dot gnu.org 2012-07-12 12:39 ` wbrana at gmail dot com 2012-09-02 13:33 ` allan at archlinux dot org 2012-09-02 17:09 ` cryptooctoploid at gmail dot com 2012-09-02 22:30 ` allan at archlinux dot org 2012-09-05 14:19 ` allan at archlinux dot org 2012-11-01 14:13 ` cryptooctoploid at gmail dot com 2012-11-01 14:25 ` allan at archlinux dot org 2012-11-01 14:54 ` schwab@linux-m68k.org 2012-11-01 15:53 ` cryptooctoploid at gmail dot com 2013-09-05 22:48 ` jack.carter at imgtec dot com 2013-09-06 0:31 ` joseph at codesourcery dot com 2013-09-06 9:35 ` jack.carter at imgtec dot com 2014-06-25 11:19 ` fweimer at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-13966-131-zK6sZEBchN@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sources.redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).