Gentoo Archives: gentoo-ppc-dev

From: "Erik R. Jensen" <erikrj@×××××××××.com>
To: gentoo-ppc-dev@g.o
Subject: [gentoo-ppc-dev] Samba 3.0.0-r1 build problem and fix on PPC
Date: Mon, 06 Oct 2003 23:11:30
Message-Id: 32988.129.123.64.145.1065481888.squirrel@webmail.netradius.com
1 I just joined this list and I am not sure the proper channels to relay
2 information of this type, so I figured this list seemed the most likely.
3
4 When compiling samba 3.0.0-r1 on PPC, the following compilation error occurs:
5
6 /usr/include/asm-ppc/statfs.h:15: redefinition of `struct statfs'
7 make: *** [smbd/files.o] Error 1
8
9 In order to successfully compile, a patch needs to be applied to keep
10 statfs.h from being redefined. This patch is currently only applied when
11 the architecture is sparc, but it also needs to be applied for ppc. The
12 following change at line 56 in the the smaba-3.0.0-r1.ebuild file will fix
13 the build for ppc.
14
15 Change this:
16
17 if [ "${ARCH}" = "sparc" ]
18 then
19 cd ${S}/source/include
20 epatch ${FILESDIR}/samba-2.2.8-statfs.patch
21 fi
22
23 To this:
24
25 if [ "${ARCH}" = "sparc" ]
26 then
27 cd ${S}/source/include
28 epatch ${FILESDIR}/samba-2.2.8-statfs.patch
29 fi
30
31 if [ "${ARCH}" = "ppc" ]
32 then
33 cd ${S}/source/include
34 epatch ${FILESDIR}/samba-2.2.8-statfs.patch
35 fi
36
37 I also think this problem exists for the 2.2.8 ebuilds as well.
38
39 Erik R. Jensen
40
41 --
42 gentoo-ppc-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-ppc-dev] Samba 3.0.0-r1 build problem and fix on PPC Luca Barbato <lu_zero@g.o>