Please do not reply to this email: if you want to comment on the bug, go to          
the URL shown below and enter yourcomments there.   
 
https://freedesktop.org/bugzilla/show_bug.cgi?id=979        
   
           Summary: gcc doesn't always inline gnu_dev_makedev
           Product: DRI
           Version: XOrg CVS
          Platform: PC
               URL: http://bugs.gentoo.org/show_bug.cgi?id=41962
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libdrm
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


in xf86drm.c, we include <sys/sysmacros.h> to get the system definition of
makedev.  this turns out to be a bad move.  with some glibc versions, makedev()
is a macro, and with some it's an inline function.  since gcc's inline keyword
is merely a suggestion, occasionally we get the awkward situation where the call
to makedev() is emitted as a function call into glibc, which the elfloader is
apparently unable to handle correctly.

in the future the dlloader should handle this correctly.  in the meantime, the
attached patch should fix it.  one potential issue is that the full definition
of gnu_dev_makedev is more elaborate than our replacement; i doubt it ever
matters though.        
   
   
--         
Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email       
   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to