Gentoo Archives: gentoo-ppc-dev

From: Luca Barbato <lu_zero@g.o>
To: erikrj@×××××××××.com
Cc: gentoo-ppc-dev@g.o
Subject: Re: [gentoo-ppc-dev] Samba 3.0.0-r1 build problem and fix on PPC
Date: Tue, 07 Oct 2003 01:34:22
Message-Id: 3F8217F9.8070202@gentoo.org
In Reply to: [gentoo-ppc-dev] Samba 3.0.0-r1 build problem and fix on PPC by "Erik R. Jensen"
1 thank you, next time you should use bugs.gentoo.org to fill bug reports.
2 Thanks
3
4 lu
5
6 Erik R. Jensen wrote:
7 > I just joined this list and I am not sure the proper channels to relay
8 > information of this type, so I figured this list seemed the most likely.
9 >
10 > When compiling samba 3.0.0-r1 on PPC, the following compilation error occurs:
11 >
12 > /usr/include/asm-ppc/statfs.h:15: redefinition of `struct statfs'
13 > make: *** [smbd/files.o] Error 1
14 >
15 > In order to successfully compile, a patch needs to be applied to keep
16 > statfs.h from being redefined. This patch is currently only applied when
17 > the architecture is sparc, but it also needs to be applied for ppc. The
18 > following change at line 56 in the the smaba-3.0.0-r1.ebuild file will fix
19 > the build for ppc.
20 >
21 > Change this:
22 >
23 > if [ "${ARCH}" = "sparc" ]
24 > then
25 > cd ${S}/source/include
26 > epatch ${FILESDIR}/samba-2.2.8-statfs.patch
27 > fi
28 >
29 > To this:
30 >
31 > if [ "${ARCH}" = "sparc" ]
32 > then
33 > cd ${S}/source/include
34 > epatch ${FILESDIR}/samba-2.2.8-statfs.patch
35 > fi
36 >
37 > if [ "${ARCH}" = "ppc" ]
38 > then
39 > cd ${S}/source/include
40 > epatch ${FILESDIR}/samba-2.2.8-statfs.patch
41 > fi
42 >
43 > I also think this problem exists for the 2.2.8 ebuilds as well.
44 >
45 > Erik R. Jensen
46 >
47 > --
48 > gentoo-ppc-dev@g.o mailing list
49 >
50 >
51
52
53 --
54 Luca Barbato
55 Developer
56 Gentoo Linux http://www.gentoo.org/~lu_zero
57
58
59
60
61 --
62 gentoo-ppc-dev@g.o mailing list