pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/43283: [PATCH] (samba) Unsupported relocation type 6 in non-PLT relocations
>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: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 10 04:00:00 +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}
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index