pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/50351: xf86-video-ati-6.14.6 failure due to missing functions (PLT)



>Number:         50351
>Category:       pkg
>Synopsis:       xf86-video-ati-6.14.6 failure due to missing functions (PLT)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 21 13:15:00 +0000 2015
>Originator:     Thierry LARONDE
>Release:        pkgsrc-2015Q3
>Organization:
>Environment:
NetBSD 6.1.5 amd64
>Description:
Alignment macro definitions (or functions; it depends on version) were  removed from xorg/compiler.h but are still used by the ati6 driver.             
                                                                         

>How-To-Repeat:
Make, install, and start X with this very driver... (it won't, complaining about missing PLT symbol ldl_u
>Fix:
The modification below is sufficient for an amd64 but it would probably  be better to add a copy of xorg-server 1.4.2 compiler.h since there are  conditionnals (on systems and machines) :

     --- src/AtomBios/CD_Operations.c        2015-10-20 17:24:42.000000000 +0200     
+++ src/AtomBios/CD_Operations.c        2015-10-20 17:18:03.000000000 +0200     
@@ -43,6 +43,9 @@
 #include <X11/Xos.h>                                                           
 #include "xorg-server.h"                                                       
 #include "compiler.h"                                                          
+#define ldl_u(p) (*((unsigned int *)(p))) 
+#define ldw_u(p) (*((unsigned short *)(p)))
+#define stl_u(v,p) (*(unsigned int *)(p)) = (v)                                

 #include "Decoder.h"



Home | Main Index | Thread Index | Old Index