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 |