This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug build/13966] Some elf tests fail with "fatal error: cstdio: No such file or directory" on trunk
- From: "cryptooctoploid at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 10 Apr 2012 10:13:32 +0000
- Subject: [Bug build/13966] Some elf tests fail with "fatal error: cstdio: No such file or directory" on trunk
- Auto-submitted: auto-generated
- References: <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.