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
SunOS deuterium 5.10 Generic_139555-08 sun4u sparc sun4u
cc: Sun C 5.10 SunOS_sparc 2009/06/03

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


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.Linux+=       -fPIC
-USE_LANGUAGES=         c
+USE_LANGUAGES=         c99
 USE_FEATURES+=         err
 MAKE_ENV+=             LIBS=${LIBS:Q}
+.include "../../mk/"
+.if ${PKGSRC_COMPILER:Msunpro}
+CPPFLAGS+=             -xcode=pic32
 PERL5_PACKLIST=                auto/pkgsrc/Dewey/.packlist
 PKG_INSTALL_FILESDIR=  ${PKGSRCDIR}/pkgtools/pkg_install/files

Home | Main Index | Thread Index | Old Index