pkgsrc-Bugs archive

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

pkg/43350: lang/lua does not build on Solaris



>Number:         43350
>Category:       pkg
>Synopsis:       lang/lua does not build on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 25 10:00:01 +0000 2010
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
Compiling lang/lua on Solaris with lang/gcc34 fails with

ld: fatal: relocation error: R_386_GOTOFF: file .libs/lapi.o: symbol 
luaO_nilobject_: relocation must bind locally

>How-To-Repeat:

>Fix:
This change seems to fix the problem:

--- luaconf.h.orig2     Tue May 25 11:54:33 2010
+++ luaconf.h   Tue May 25 11:54:51 2010
@@ -185,7 +185,7 @@
 #define LUAI_DATA      /* empty */
 
 #elif defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
-      defined(__ELF__)
+      defined(__ELF__) && (!defined(__sun__))
 #define LUAI_FUNC      __attribute__((visibility("hidden"))) extern
 #define LUAI_DATA      LUAI_FUNC



Home | Main Index | Thread Index | Old Index