NetBSD Problem Report #34611

From dauphin@enst.fr  Mon Sep 25 15:09:55 2006
Return-Path: <dauphin@enst.fr>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id E53C163BAB6
	for <gnats-bugs@gnats.netbsd.org>; Mon, 25 Sep 2006 15:09:55 +0000 (UTC)
Message-Id: <1159196991.22032@bi.enst.fr>
Date: Mon, 25 Sep 2006 17:09:51 +0200
From: "Gilles Dauphin" <dauphin@enst.fr>
To: "gnats bugs" <gnats-bugs@NetBSD.org>
Subject: multimedia/xvidcore Solaris10 gcc -m64
X-Send-Pr-Version: gtk-send-pr 0.4.5 
X-GNATS-Notify:

>Number:         34611
>Category:       pkg
>Synopsis:       multimedia/xvidcore Solaris10 gcc -m64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 25 15:10:00 +0000 2006
>Closed-Date:    Thu Feb 07 14:44:27 +0000 2013
>Last-Modified:  Thu Feb 07 14:44:27 +0000 2013
>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
+



>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: snj@netbsd.org
Responsible-Changed-When: Mon, 25 Sep 2006 22:01:24 +0000
Responsible-Changed-Why:
Solaris-specific problem.


State-Changed-From-To: open->closed
State-Changed-By: jperkin@NetBSD.org
State-Changed-When: Thu, 07 Feb 2013 14:44:27 +0000
State-Changed-Why:
This does not appear to still be an issue.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.