bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gprofng/32374] gprofng: fails to build with GCC trunk (defaults to


From: vladimir.mezentsev at oracle dot com
Subject: [Bug gprofng/32374] gprofng: fails to build with GCC trunk (defaults to -std=gnu23)
Date: Thu, 21 Nov 2024 20:28:42 +0000

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

Vladimir Mezentsev <vladimir.mezentsev at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #4 from Vladimir Mezentsev <vladimir.mezentsev at oracle dot com> 
---
I have a fix for these issues.
But I am not sure about the fix in gprofng/libcollector/dispatcher.c:
% git diff libcollector/dispatcher.c
diff --git a/gprofng/libcollector/dispatcher.c
b/gprofng/libcollector/dispatcher.c
index 4eda18ec324..240a090637f 100644
--- a/gprofng/libcollector/dispatcher.c
+++ b/gprofng/libcollector/dispatcher.c
@@ -1280,4 +1280,5 @@ __collector_ext_clone_pthread (int (*fn)(void *), void
*child_stack, int flags,
 // weak symbols:
 int sigprocmask (int, const sigset_t*, sigset_t*) __attribute__ ((weak, alias
("__collector_sigprocmask")));
 int thr_sigsetmask (int, const sigset_t*, sigset_t*) __attribute__ ((weak,
alias ("__collector_thr_sigsetmask")));
-int setitimer () __attribute__ ((weak, alias ("_setitimer")));
+int setitimer (__itimer_which_t which, const struct itimerval *new_value,
+    struct itimerval *old_value) __attribute__ ((weak, alias ("_setitimer")));


__itimer_which_t and setitimer are declared in /usr/include/sys/time.h on
Oracle Linux.
But I don't know if __itimer_which_t is defined on other Linuxes.

In man page, the first argument is 'int":
% man setitimer
SYNOPSIS
       #include <sys/time.h>
       int setitimer(int which, const struct itimerval *new_value,
                     struct itimerval *old_value);

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]