[Bug translator/13434] New: symbol collision between stdlib & generated code

fche at redhat dot com sourceware-bugzilla@sourceware.org
Thu Nov 24 18:50:00 GMT 2011


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.



More information about the Systemtap mailing list