pkgsrc-Bugs archive

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

pkg/43632: multimedia/x264-devel fails to build on SunOS [patch]



>Number:         43632
>Category:       pkg
>Synopsis:       multimedia/x264-devel fails to build on SunOS [patch]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 18 08:35:00 +0000 2010
>Originator:     Aleksey Cheusov
>Release:        NetBSD 5.1_RC3
>Organization:
>Environment:
System: NetBSD asrock.chizhovka.net 5.1_RC3 NetBSD 5.1_RC3 (GENERIC) #1: Mon 
Jun 28 00:06:07 EEST 2010 
cheusov%asrock.chizhovka.net@localhost:/srv/obj/sys/arch/amd64/compile/GENERIC 
amd64
Architecture: x86_64
Machine: amd64
>Description:
Build on OpenSolaris ends like this

Text relocation remains                         referenced
    against symbol                  offset      in file
.rodata (section)                   0x16        common/x86/.libs/dct-a.o
.rodata (section)                   0x23f       common/x86/.libs/dct-a.o
.rodata (section)                   0x380       common/x86/.libs/dct-a.o
...
x264_sub8x8_dct8_ssse3.skip_prologue 0x755      common/x86/.libs/dct-a.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
gmake: *** [libx264.la] Error 1
*** Error code 2

>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/x264-devel/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- Makefile    7 May 2010 09:34:43 -0000       1.22
+++ Makefile    18 Jul 2010 08:24:51 -0000
@@ -21,7 +21,7 @@
 .endif
 
 .if ${MACHINE_ARCH} == "i386"
-.  if ${OPSYS} == "Darwin" || \
+.  if ${OPSYS} == "Darwin" || ${OPSYS} == "SunOS" || \
       (${OPSYS} == "NetBSD" && \
        (!empty(OS_VERSION:M[1-5].*) && empty(OS_VERSION:M5.99.*)))
 CONFIGURE_ARGS+=       --disable-asm



Home | Main Index | Thread Index | Old Index