pkgsrc-Bugs archive

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

pkg/43633: multimedia/libdv fails to build on SunOS [patch]



>Number:         43633
>Category:       pkg
>Synopsis:       multimedia/libdv 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 09:00: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 of multimedia/libdv on OpenSolaris ends like this

   Text relocation remains                         referenced
       against symbol                  offset      in file
   .data (section)                     0x111       .libs/vlc_x86.o
   .data (section)                     0x290       .libs/vlc_x86.o
   .data (section)                     0x2f2       .libs/vlc_x86.o
   ...
   vlc_encode_lookup                   0x1c        .libs/encode_x86.o
   vlc_num_bits_lookup                 0xb6        .libs/encode_x86.o
   dv_parse_ac_coeffs_pass0            0x469       .libs/vlc_x86.o
   ld: fatal: relocations remain against allocatable but non-writable sections
   collect2: ld returned 1 exit status
   *** Error code 1

>Fix:
Index: Makefile.common
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/libdv/Makefile.common,v
retrieving revision 1.11
diff -u -r1.11 Makefile.common
--- Makefile.common     3 Mar 2010 08:44:38 -0000       1.11
+++ Makefile.common     18 Jul 2010 08:31:00 -0000
@@ -24,7 +24,8 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-.if (${OPSYS} == "Darwin") || empty(MACHINE_PLATFORM:M*-*-i386) || (${OPSYS} 
== "Interix")
+.if (${OPSYS} == "Darwin") || empty(MACHINE_PLATFORM:M*-*-i386) || \
+    (${OPSYS} == "Interix") || (${OPSYS} == "SunOS")
 CONFIGURE_ARGS+=       --disable-asm
 .endif
 



Home | Main Index | Thread Index | Old Index