pkgsrc-Bugs archive

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

pkg/56035: pkgtools/p5-pkgsrc-Dewey



>Number:         56035
>Category:       pkg
>Synopsis:       pkgtools/p5-pkgsrc-Dewey
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 04 18:35:00 +0000 2021
>Originator:     Malte Dehling
>Release:        pkgsrc-2020Q4
>Organization:
>Environment:
SunOS deuterium 5.10 Generic_139555-08 sun4u sparc sun4u
cc: Sun C 5.10 SunOS_sparc 2009/06/03

>Description:
Add USE_LANGUAGES=c99 to Makefile (see pkg/56033) and bmake will fail with the following error:

ld: fatal: relocation error: R_SPARC_H44: file libnbcompat.a(err.o): symbol <errno>: relocations based on the ABS44 coding model can not be used in building shared object

>How-To-Repeat:

>Fix:
libnbcompat needs to be compiled with -KPIC or -xcode=pic32.  The following patch works for me:


--- Makefile.orig       Thu Mar  4 19:05:12 2021
+++ Makefile    Thu Mar  4 19:16:26 2021
@@ -13,10 +13,16 @@
 CPPFLAGS.NetBSD+=      -DHAVE_ERR_H
 CPPFLAGS.Linux+=       -fPIC
 
-USE_LANGUAGES=         c
+USE_LANGUAGES=         c99
 USE_FEATURES+=         err
 MAKE_ENV+=             LIBS=${LIBS:Q}
 
+.include "../../mk/compiler.mk"
+
+.if ${PKGSRC_COMPILER:Msunpro}
+CPPFLAGS+=             -xcode=pic32
+.endif
+
 PERL5_PACKLIST=                auto/pkgsrc/Dewey/.packlist
 
 PKG_INSTALL_FILESDIR=  ${PKGSRCDIR}/pkgtools/pkg_install/files


Home | Main Index | Thread Index | Old Index