pkgsrc-Bugs archive

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

pkg/51475: fix sun.cf in x11/xorg-cf-files for Solaris 11/sparc



>Number:         51475
>Category:       pkg
>Synopsis:       fix sun.cf in x11/xorg-cf-files for Solaris 11/sparc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 13 10:50:00 +0000 2016
>Originator:     Joern Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
See this thread on pkgsrc-users for reference:

http://mail-index.netbsd.org/pkgsrc-users/2016/07/13/msg023524.html

On Solaris 11/sparc, building packages that use imake fail with

ld: fatal: /usr/lib/ld/map.noexdata: 29: error: SPARC Procedure Linkage Table (PLT) must remain executable 
>How-To-Repeat:

>Fix:
This change to sun.cf in x11/xorg-cf-files fixes the problem:

--- sun.cf-orig Wed Jul 13 14:04:56 2016
+++ sun.cf      Tue Sep 13 11:58:43 2016
@@ -829,7 +829,7 @@
 # endif
 #endif
 #ifndef Mapfile_NoExData
-# if defined(SparcArchitecture)
+# if defined(SparcArchitecture) || defined(Sparc64Architecture)
 /* SPARC archictecture requires PLT section in .data be executable, so
    we can only make .bss, not all of .data no-exec on SPARC */
 #   define Mapfile_NoExData /**/


Many thanks to David Holland for adding a log feature to tradcpp, which made finding this problem relatively easy!



Home | Main Index | Thread Index | Old Index