NetBSD Problem Report #50351

From www@NetBSD.org  Wed Oct 21 13:11:20 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 0FDD7A567D
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 21 Oct 2015 13:11:20 +0000 (UTC)
Message-Id: <20151021131118.BEE1DA6562@mollari.NetBSD.org>
Date: Wed, 21 Oct 2015 13:11:18 +0000 (UTC)
From: tlaronde@polynum.com
Reply-To: tlaronde@polynum.com
To: gnats-bugs@NetBSD.org
Subject: xf86-video-ati-6.14.6 failure due to missing functions (PLT)
X-Send-Pr-Version: www-1.0

>Number:         50351
>Category:       pkg
>Synopsis:       xf86-video-ati-6.14.6 failure due to missing functions (PLT)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    joerg
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 21 13:15:00 +0000 2015
>Last-Modified:  Sun Oct 25 19:42:05 +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"

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Sun, 25 Oct 2015 19:42:05 +0000
Responsible-Changed-Why:
Over to maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.