NetBSD Problem Report #43283

From makoto@mini.i.ki.nu  Mon May 10 03:58:37 2010
Return-Path: <makoto@mini.i.ki.nu>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 2FCC863B8FE
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 10 May 2010 03:58:37 +0000 (UTC)
Message-Id: <200806160942.m5G9gLK9024246@trapani.ki.nu>
Date: Mon, 16 Jun 2008 18:42:21 +0900 (JST)
From: makoto@ki.nu
Reply-To: makoto@ki.nu
To: gnats-bugs@gnats.NetBSD.org
Subject: [PATCH] (samba) Unsupported relocation type 6 in non-PLT relocations
X-Send-Pr-Version: 3.95

>Number:         43283
>Category:       pkg
>Synopsis:       samba gets Unsupported relocation type 6 in non-PLT relocations
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 10 04:00:00 +0000 2010
>Closed-Date:    Tue May 11 13:26:41 +0000 2010
>Last-Modified:  Tue May 11 13:26:41 +0000 2010
>Originator:     Makoto Fujiwara
>Release:        NetBSD 4.0
>Organization:
KINU Corporation
>Environment:


System: NetBSD trapani.ki.nu 4.0 NetBSD 4.0 (GENERIC) #0: Sun Dec 16 00:27:58 PST 2007 builds@wb30:/home/builds/ab/netbsd-4-0-RELEASE/macppc/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/macppc/compile/GENERIC macppc
Architecture: powerpc
Machine: macppc
>Description:

If you make package for /usr/pkgsrc/net/samba as samba-3.0.28anb1.tgz
 or samba-3.0.26anb4.tgz and run the program, you will get
following error messages and the processes do not start.

Starting nmbd.
/usr/pkg/sbin/nmbd: Unsupported relocation type 6 in non-PLT relocations
Starting smbd.
/usr/pkg/sbin/smbd: Unsupported relocation type 6 in non-PLT relocations

>How-To-Repeat:

On PowerPC machine,
cd /usr/pkgsrc/net/samba
make package
(and setup samba as instructed), 
  (1) vi /usr/pkg/etc/samba/smb.conf  (edit if necessary)
  (2) cd /usr/pkg/share/examples/rc.d
      cp nmbd  smbd samba     /etc/rc.d/
  (3) add following lines on /etc/rc.conf
	smbd=YES
	nmbd=YES
	samba=YES
then, you will get following responses for starting process
# /etc/rc.d/samba start
Starting nmbd.
/usr/pkg/sbin/nmbd: Unsupported relocation type 6 in non-PLT relocations

Starting smbd.
/usr/pkg/sbin/smbd: Unsupported relocation type 6 in non-PLT relocations

>Fix:


Index: net/samba/Makefile
===================================================================
RCS file: /e/cvsync/cvsync/pkgsrc/net/samba/Makefile,v
retrieving revision 1.182
diff -u -r1.182 Makefile
--- net/samba/Makefile	28 May 2008 15:39:55 -0000	1.182
+++ net/samba/Makefile	16 Jun 2008 06:31:48 -0000
@@ -58,7 +58,10 @@
 CONFIGURE_ARGS+=	--with-mandir=${PREFIX:Q}/${PKGMANDIR:Q}
 CONFIGURE_ARGS+=	--with-swatdir=${PREFIX:Q}/share/samba/swat
 CONFIGURE_ARGS+=	--with-included-popt
-
+# to avoid Unsupported relocation type 6 in non-PLT relocations
+.if ${MACHINE_ARCH} == "powerpc"
+CONFIGURE_ARGS+=	--disable-pie
+.endif
 .include "../../converters/libiconv/buildlink3.mk"
 CONFIGURE_ARGS+=	--with-libiconv=${BUILDLINK_PREFIX.iconv}


>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Tue, 11 May 2010 13:26:41 +0000
State-Changed-Why:
Submitter reports problem is already fixed.


>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.