build: support clang + libc++ (BZ32523)

Replace libstdc++-only <ext/stdio_filebuf.h> / __gnu_cxx::stdio_filebuf
with a small fd_filebuf streambuf helper, and drop the now-vestigial
"using namespace __gnu_cxx;" lines.  Also add a missing <iterator>
include and silence a [[nodiscard]] stol() result that only trips
-Werror under libc++.

With --without-dyninst (Fedora's dyninst is libstdc++-only), a
clang++ -stdlib=libc++ build now completes.

Co-authored-by: OpenCode agent <noreply@opencode.ai>
19 files changed
tree: 1bdd57988540f96206f24259788adbd95de02612
  1. .claude/
  2. .cursor/
  3. .skills/
  4. doc/
  5. emacs/
  6. includes/
  7. initscript/
  8. interactive-notebook/
  9. java/
  10. language-server/
  11. m4/
  12. man/
  13. po/
  14. python/
  15. runtime/
  16. scripts/
  17. stap-exporter/
  18. stapbpf/
  19. stapdyn/
  20. staprun/
  21. tapset/
  22. testsuite/
  23. vim/
  24. .gitignore
  25. .mailmap
  26. ABOUT-NLS
  27. aclocal.m4
  28. afteryou.h
  29. AGENTS.md
  30. analysis.cxx
  31. analysis.h
  32. ar-lib
  33. AUTHORS
  34. AUTHORS.sh
  35. bpf-base.cxx
  36. bpf-bitset.cxx
  37. bpf-bitset.h
  38. bpf-internal.h
  39. bpf-opt.cxx
  40. bpf-shared-globals.h
  41. bpf-translate.cxx
  42. bpf.h
  43. buildrun.cxx
  44. buildrun.h
  45. cache.cxx
  46. cache.h
  47. client-nss.cxx
  48. client-nss.h
  49. cmdline.cxx
  50. cmdline.h
  51. compile
  52. config.guess
  53. config.in
  54. config.rpath
  55. config.sub
  56. configure
  57. configure.ac
  58. COPYING
  59. csclient.cxx
  60. csclient.h
  61. cscommon.cxx
  62. cscommon.h
  63. depcomp
  64. dtrace.in
  65. dwarf_wrappers.cxx
  66. dwarf_wrappers.h
  67. dwflpp.cxx
  68. dwflpp.h
  69. elaborate.cxx
  70. elaborate.h
  71. fd_filebuf.h
  72. git_version.sh
  73. HACKING
  74. hash.cxx
  75. hash.h
  76. INSTALL
  77. install-sh
  78. interactive.cxx
  79. interactive.h
  80. INTERNALS
  81. loc2stap.cxx
  82. loc2stap.h
  83. macros.systemtap.in
  84. main.cxx
  85. Makefile.am
  86. Makefile.in
  87. mdfour.c
  88. mdfour.h
  89. missing
  90. NEWS
  91. nss-server-info.cxx
  92. nss-server-info.h
  93. nsscommon.cxx
  94. nsscommon.h
  95. parse.cxx
  96. parse.h
  97. privilege.cxx
  98. privilege.h
  99. py-compile
  100. README
  101. README.security
  102. README.stapregex
  103. README.unprivileged
  104. remote.cxx
  105. remote.h
  106. rpm_finder.cxx
  107. rpm_finder.h
  108. run-stap.in
  109. runtest.sh
  110. sdt_types.h
  111. session.cxx
  112. session.h
  113. setupdwfl.cxx
  114. setupdwfl.h
  115. smileytap.svg
  116. stap-authorize-cert.cxx
  117. stap-env
  118. stap-gen-cert.cxx
  119. stap-prep
  120. stap-profile-annotate.in
  121. stap-report
  122. stap-server
  123. stap-server.conf
  124. stap-server.service
  125. stap-serverd.cxx
  126. stap-sign-module.cxx
  127. stap-start-server
  128. stap-stop-server
  129. staplog.c
  130. stapregex-defines.h
  131. stapregex-dfa.cxx
  132. stapregex-dfa.h
  133. stapregex-parse.cxx
  134. stapregex-parse.h
  135. stapregex-tree.cxx
  136. stapregex-tree.h
  137. stapregex.cxx
  138. stapregex.h
  139. staptree.cxx
  140. staptree.h
  141. staputil.cxx
  142. staputil.h
  143. stapvirt.c
  144. stringtable.cxx
  145. stringtable.h
  146. systemtap.spec
  147. tapset-been.cxx
  148. tapset-debuginfod.cxx
  149. tapset-dynprobe.cxx
  150. tapset-dynprobe.h
  151. tapset-method.cxx
  152. tapset-netfilter.cxx
  153. tapset-perfmon.cxx
  154. tapset-procfs.cxx
  155. tapset-python.cxx
  156. tapset-timers.cxx
  157. tapset-utrace.cxx
  158. tapsets.cxx
  159. tapsets.h
  160. task_finder.cxx
  161. task_finder.h
  162. tracepoint-vmlinux.cxx
  163. tracepoint-vmlinux.h
  164. translate.cxx
  165. translate.h
  166. translator-output.cxx
  167. translator-output.h
  168. version.h