public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/13434] New: symbol collision between stdlib & generated code
@ 2011-11-24 18:50 fche at redhat dot com
  2011-11-24 21:27 ` [Bug translator/13434] " jistone at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: fche at redhat dot com @ 2011-11-24 18:50 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug translator/13434] symbol collision between stdlib & generated code
  2011-11-24 18:50 [Bug translator/13434] New: symbol collision between stdlib & generated code fche at redhat dot com
@ 2011-11-24 21:27 ` jistone at redhat dot com
  2011-11-24 22:20 ` jistone at redhat dot com
  2011-11-25 10:15 ` bmr at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: jistone at redhat dot com @ 2011-11-24 21:27 UTC (permalink / raw)
  To: systemtap

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

Josh Stone <jistone at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jistone at redhat dot com

--- Comment #1 from Josh Stone <jistone at redhat dot com> 2011-11-24 21:26:22 UTC ---
It's really a clash with kernel headers, not stdlib.  But anyway, PR10299 dupe?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug translator/13434] symbol collision between stdlib & generated code
  2011-11-24 18:50 [Bug translator/13434] New: symbol collision between stdlib & generated code fche at redhat dot com
  2011-11-24 21:27 ` [Bug translator/13434] " jistone at redhat dot com
@ 2011-11-24 22:20 ` jistone at redhat dot com
  2011-11-25 10:15 ` bmr at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: jistone at redhat dot com @ 2011-11-24 22:20 UTC (permalink / raw)
  To: systemtap

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

Josh Stone <jistone at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #2 from Josh Stone <jistone at redhat dot com> 2011-11-24 22:18:21 UTC ---
duped

*** This bug has been marked as a duplicate of bug 10299 ***

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug translator/13434] symbol collision between stdlib & generated code
  2011-11-24 18:50 [Bug translator/13434] New: symbol collision between stdlib & generated code fche at redhat dot com
  2011-11-24 21:27 ` [Bug translator/13434] " jistone at redhat dot com
  2011-11-24 22:20 ` jistone at redhat dot com
@ 2011-11-25 10:15 ` bmr at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: bmr at redhat dot com @ 2011-11-25 10:15 UTC (permalink / raw)
  To: systemtap

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

Bryn M. Reeves <bmr at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bmr at redhat dot com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-25 10:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-24 18:50 [Bug translator/13434] New: symbol collision between stdlib & generated code fche at redhat dot com
2011-11-24 21:27 ` [Bug translator/13434] " jistone at redhat dot com
2011-11-24 22:20 ` jistone at redhat dot com
2011-11-25 10:15 ` bmr at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).