LinuxPuertoMontt wrote:
> 2009/11/28 Ken Moffat <[email protected]>
>
>> Have you somehow trashed the file
>> /usr/include/linux/socket.h ?
>>
>
> nop, i have socket.h in /usr/include/linux
That seems odd. On an old version and a current version of LFS I have:
/usr/include/asm/socket.h
/usr/include/bits/socket.h
/usr/include/linux/socket.h
/usr/include/sys/socket.h
You should have the same. You might want to try:
find /usr/include -name socket.h -exec ls -l {} \;
-- Bruce
I had exactly the same problem: the build of gnome-keyring-0.8.1 fails on the
struct 'ucred' in gnome-keyring-daemon-io.c:184.
I have the 4 header files:
pol [ ~ ]$ slocate socket.h
(…)
/usr/include/bits/socket.h
/usr/include/linux/socket.h
/usr/include/asm/socket.h
/usr/include/sys/socket.h
(…)
Following the reasoning of Bruce:
#include <sys/socket.h> is in in gnome-keyring-daemon-io.c;
#include <bits/socket.h> is in /usr/include/sys/socket.h;
and in /usr/include/bits/socket.h I find:
#ifdef __USE_GNU
/* User visible structure for SCM_CREDENTIALS message */
struct ucred
{
pid_t pid; /* PID of sending process. */
uid_t uid; /* UID of sending process. */
gid_t gid; /* GID of sending process. */
};
#endif
So it looks like __USE_GNU is not defined for my make.
I solved this in a quick and dirty way by simply copying the struct into
gnome-keyring-daemon-io.c which made the build succeed.
I had already the same problem (and applied the same solution) when building
gpm-1.20.1 and dbus-1.0.2.
A better solution seems to be configuring with CFLAGS="-D_GNU_SOURCE" (tried
this only for gpm)
However, I am wondering why I am having these problems. I built my system on
an Apple PPC7200, following LFS-6.4:
pol [ ~ ]$ uname -a
Linux ppc7200 2.6.27.25.lfs3 #1 Fri Dec 18 15:04:28 CET 2009 ppc 601 Power
Macintosh GNU/Linux
I am now following the instructions from BLFS-6.3 to build GNOME.
pvg
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page