This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/22551] New: on rawhide, we're getting a compile error that init_timer() doesn't exist


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

            Bug ID: 22551
           Summary: on rawhide, we're getting a compile error that
                    init_timer() doesn't exist
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: dsmith at redhat dot com
  Target Milestone: ---

On 4.15.0-0.rc1.git3.1.fc28.x86_64, I'm seeing the following:

====
stap -p4 -e 'probe begin { exit() }'
In file included from
/usr/local/share/systemtap/runtime/transport/transport.c:65:0,
                 from /usr/local/share/systemtap/runtime/linux/print.c:17,
                 from /usr/local/share/systemtap/runtime/print.c:17,
                 from /usr/local/share/systemtap/runtime/runtime_context.h:22,
                 from
/tmp/stapn0pvvU/stap_a64b174160f580702e3079239f11b6ac_1080_src.c:53:
/usr/local/share/systemtap/runtime/transport/relay_v2.c: In function
‘__stp_relay_timer_init’:
/usr/local/share/systemtap/runtime/transport/relay_v2.c:154:2: error: implicit
declaration of function ‘init_timer’; did you mean ‘init_timers’?
[-Werror=implicit-function-declaration]
  init_timer(&_stp_relay_data.timer);
  ^~~~~~~~~~
  init_timers
/usr/local/share/systemtap/runtime/transport/relay_v2.c:156:33: error:
assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
  _stp_relay_data.timer.function = __stp_relay_wakeup_timer;
                                 ^
/usr/local/share/systemtap/runtime/transport/relay_v2.c:157:23: error: ‘struct
timer_list’ has no member named ‘data’
  _stp_relay_data.timer.data = 0;
                       ^
In file included from /usr/local/share/systemtap/runtime/linux/print.c:17:0,
                 from /usr/local/share/systemtap/runtime/print.c:17,
                 from /usr/local/share/systemtap/runtime/runtime_context.h:22,
                 from
/tmp/stapn0pvvU/stap_a64b174160f580702e3079239f11b6ac_1080_src.c:53:
/usr/local/share/systemtap/runtime/transport/transport.c: In function
‘_stp_attach’:
/usr/local/share/systemtap/runtime/transport/transport.c:328:31: error:
assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
  _stp_ctl_work_timer.function = _stp_ctl_work_callback;
                               ^
/usr/local/share/systemtap/runtime/transport/transport.c:329:21: error: ‘struct
timer_list’ has no member named ‘data’
  _stp_ctl_work_timer.data= 0;
                     ^
cc1: all warnings being treated as errors
make[1]: *** [scripts/Makefile.build:310:
/tmp/stapn0pvvU/stap_a64b174160f580702e3079239f11b6ac_1080_src.o] Error 1
make: *** [Makefile:1506: _module_/tmp/stapn0pvvU] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed.  [man error::pass4]
====

The first error, "implicit declaration of function ‘init_timer’" seems to be
caused by the following upstream kernel commit:

====
commit 7eeb6b893bd28c68b6d664de1d3120e49b855cdb
Author: Kees Cook <keescook@chromium.org>
Date:   Wed Oct 11 23:13:49 2017 -0700

    timer: Remove init_timer() interface

    All users of init_timer() have been updated. Remove the ancient interface.
====

-- 
You are receiving this mail because:
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]