[Bug runtime/4636] systemtap module generated kernel module does not compile on 2.6.21-1.3218.fc8 kernel
fche at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Jun 13 18:50:00 GMT 2007
------- Additional Comments From fche at redhat dot com 2007-06-13 18:50 -------
(In reply to comment #1)
> Looks like you can't build modules with that version of gcc and -Werror.
We could remove -Werror from the generated makefile in buildrun.cxx.
> char *cp;
> char *end = addr + len;
> ^ adding "len" to a void * - gcc says don't do it!
>
>
> Now wasn't the whole point of implementing void types to eliminate all the
> casting associated with using "char *"?
Sure, but arithmetic on void pointers is not defined. Remember,
the address ptr+index depends on sizeof (*ptr).
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4636
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Systemtap
mailing list