Re: build break: gnome-keyring



On Fri, 2005-07-15 at 09:51 +0200, Alexander Larsson wrote:
> > gnome-keyring-daemon.c: In function
> > ‘gnome_keyring_application_ref_new_from_pid’:
> > gnome-keyring-daemon.c:347: warning: implicit declaration of function
> > ‘readlink’
> > gnome-keyring-daemon.c:347: warning: nested extern declaration of ‘readlink’
> > make[2]: *** [gnome-keyring-daemon.o] Error 1
> 
> This looks very strange. readlink is part of libc, and "man 2 readlink"
> gives:
> 
>        #include <unistd.h>
> 
>        int readlink(const char *path, char *buf, size_t bufsiz);
> 
> gnome-keyring-daemon.c includes unistd.h, so I don't understand why this
> would happen. Seems like an issue with your installation?

Yes, this is Ubuntu Breezy (unstable).

Using readlink() in a tiny C test case works, but it doesn't work in
that file even if I put it right at the top after the #include
<unistd.h>. I guess some other unistd.h is being picked up, or some
define is being set somewhere.


-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]