This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/13434] New: symbol collision between stdlib & generated code
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Thu, 24 Nov 2011 18:49:44 +0000
- Subject: [Bug translator/13434] New: symbol collision between stdlib & generated code
- Auto-submitted: auto-generated
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.