pkgsrc-Bugs archive

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

pkg/34611: multimedia/xvidcore Solaris10 gcc -m64



>Number:         34611
>Category:       pkg
>Synopsis:       multimedia/xvidcore Solaris10 gcc -m64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 25 15:10:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


=> Checksum RMD160 OK for xvidcore-1.1.0.tar.bz2
===> Building for xvidcore-1.1.0nb2
  L: libxvidcore.so.4.1
Text relocation remains                         referenced
    against symbol                  offset      in file
xvid_FIR_1_0_0_0                    0x5b        image/x86_64_asm/qpel_mmx.o
xvid_FIR_1_0_0_0                    0xdb        image/x86_64_asm/qpel_mmx.o
xvid_FIR_1_0_0_0                    0x173       image/x86_64_asm/qpel_mmx.o
xvid_FIR_1_0_0_0                    0x2d8       image/x86_64_asm/qpel_mmx.o
xvid_FIR_1_0_0_0                    0x358       image/x86_64_asm/qpel_mmx.o
...
xvid_FIR_0_0_0_1                    0x16df      image/x86_64_asm/qpel_mmx.o
xvid_FIR_0_0_0_1                    0x1851      image/x86_64_asm/qpel_mmx.o
xvid_FIR_0_0_0_1                    0x19f5      image/x86_64_asm/qpel_mmx.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in /pkg/obj/multimedia/xvidcore/work/xvidcore-1.1.0/build/generic
*** Error code 1



>How-To-Repeat:


bmake


>Fix:


don't know why 'yasm' don't provide real PIC code.

following patch is a workaround:
--- Makefile.orig2      Tue Aug  8 11:58:10 2006
+++ Makefile    Mon Sep 25 17:05:49 2006
@@ -31,3 +31,9 @@
 .endif
 
 .include "../../mk/bsd.pkg.mk"
+
+.if  (${MACHINE_ARCH} == "i386" && ${ABI} == "64" && ${OPSYS} == "SunOS") || 
(${MACHINE_ARCH} == "x86_64" && ${OPSYS} == "SunOS")
+CONFIGURE_ARGS+=        --host=x86_64-sun-solaris2
+MAKE_ENV+=         LDFLAGS="-mimpure-text"
+.endif
+






Home | Main Index | Thread Index | Old Index