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 translator/13434] New: symbol collision between stdlib & generated code


http://sourceware.org/bugzilla/show_bug.cgi?id=13434

             Bug #: 13434
           Summary: symbol collision between stdlib & generated code
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap@sourceware.org
        ReportedBy: fche@redhat.com
    Classification: Unclassified


Bryn reports this fails:
    stap -e 'probe begin { EINVAL = 22; printf("%d is bad\n", EINVAL);
}'/var/tmp/stap2MQnfd/stap__668.c:127:15: error: expected identifier or â(â
before numeric constant
/var/tmp/stap2MQnfd/stap__668.c: In function âprobe_9228â:
/var/tmp/stap2MQnfd/stap__668.c:154:6: error: expected identifier before
numeric constant
/var/tmp/stap2MQnfd/stap__668.c:158:10: error: expected identifier before
numeric constant
/var/tmp/stap2MQnfd/stap__668.c:164:22: error: expected identifier before
numeric constant

We should prefix symbol names like EINVAL, to protect them from system headers.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]