Subject: pkg/31539: glitz-0.4.4
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 10/10/2005 10:05:00
>Number: 31539
>Category: pkg
>Synopsis: glitz-0.4.4
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 10 10:05:00 +0000 2005
>Originator: Gilles Dauphin
>Release: SunOS 5.10 i86pc
>Organization:
ENST
>Environment:
System: SunOS bi.enst.fr 5.10 Generic i86pc
>Description:
can't link the shared libs
the error is:
``relocations remain against allocatable but non-writable sections''
>How-To-Repeat:
bmake
>Fix:
--- src/glitzint.h.orig Mon Jul 4 12:33:01 2005
+++ src/glitzint.h Mon Oct 10 11:45:52 2005
@@ -46,7 +46,7 @@
# define sqrtf(a) sqrt (a)
#endif
-#if __GNUC__ >= 3 && defined(__ELF__)
+#if __GNUC__ >= 3 && defined(__ELF__) && !defined(__sun__)
# define slim_hidden_proto(name) slim_hidden_proto1(name, INT_##name)
# define slim_hidden_def(name) slim_hidden_def1(name, INT_##name)
# define slim_hidden_proto1(name, internal) \
@@ -66,7 +66,7 @@
# define slim_hidden_def(name)
#endif
-#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__)
+#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__) &
& !defined(__sun__)
#define __internal_linkage __attribute__((__visibility__("hidden")))
#else
#define __internal_linkage
OR use -mimpure-text whith gcc 3.4.3/solaris10