pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/56668: libuv-1.43.0nb2 fails to compile on Solaris 10
>Number: 56668
>Category: pkg
>Synopsis: libuv-1.43.0nb2 fails to compile on Solaris 10
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 25 04:35:00 +0000 2022
>Originator: Hiroshi Hakoyama
>Release: pkgsrc current
>Organization:
Institute of Freshwater Biology, Nagano University
>Environment:
SunOS ec21 5.10 Generic_147147-26 sun4u sparc SUNW,Sun-Blade-1000
>Description:
libuv-1.43.0nb2 fails to compile on Solaris 10.
the problem is caused by missing -fPIC flag.
# cd /usr/pkgsrc/devel/libuv
# make
...
CCLD libuv.la
Text relocation remains referenced
against symbol offset in file
MD5Update 0x1248 /usr/pkgsrc/devel/libuv/work/libnbcompat/libnbcompat.a(md5c.o)
.rodata (section) 0xfac
...
__assert_c99 0x1350 /usr/pkgsrc/devel/libuv/work/libnbcompat/libnbcompat.a(md5c.o)
__assert_c99 0x1374 /usr/pkgsrc/devel/libuv/work/libnbcompat/libnbcompat.a(md5c.o)
ld: fatal: relocations remain against allocatable but non-writable sections
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/libuv/work/libuv-1.43.0
*** Error code 1
Stop.
bmake[1]: stopped in /usr/pkgsrc/devel/libuv
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/libuv
>How-To-Repeat:
# cd /usr/pkgsrc/devel/libuv
# make
>Fix:
The build error was gone when I added -fPIC to CFLAGS+= in Makefile.
Please see references (eg.):
https://stackoverflow.com/questions/31605687/ld-fatal-relocations-remain-against-allocatable-but-non-writable-sections-whe
Home |
Main Index |
Thread Index |
Old Index