[sheepdog-users] Compilation error, master branch at 6f30fa77a6cff8

Hitoshi Mitake mitake.hitoshi at gmail.com
Sun Aug 3 15:49:00 CEST 2014


At Sun, 03 Aug 2014 00:06:08 +0200,
Marcin Mirosław wrote:
> 
> Hi!
> I'd like to report compilation error:

Thanks for your reporting, I'll fix it soon.

Thanks,
Hitoshi

> 
> nfs/nfsd.c: In function ‘nfs_init’:
> nfs/nfsd.c:204:32: error: invalid operands to binary & (have ‘const char
> *’ and ‘sd_thread_t’)
>   err = sd_thread_create("nfs, "&t, nfsd, NULL);
>                                 ^
> nfs/nfsd.c:204:2: warning: passing argument 2 of ‘sd_thread_create’ from
> incompatible pointer type [enabled by default]
>   err = sd_thread_create("nfs, "&t, nfsd, NULL);
>   ^
> In file included from ./sheep_priv.h:36:0,
>                  from nfs/nfsd.c:14:
> ../include/work.h:73:5: note: expected ‘sd_thread_t *’ but argument is
> of type ‘void * (*)(void *)’
>  int sd_thread_create(const char *, sd_thread_t *,
>      ^
> nfs/nfsd.c:204:2: error: too few arguments to function ‘sd_thread_create’
>   err = sd_thread_create("nfs, "&t, nfsd, NULL);
>   ^
> In file included from ./sheep_priv.h:36:0,
>                  from nfs/nfsd.c:14:
> ../include/work.h:73:5: note: declared here
>  int sd_thread_create(const char *, sd_thread_t *,
>      ^
> make[1]: *** [nfsd.o] Error 1
> make[1]: Leaving directory
> `/var/tmp/portage/net-fs/sheepdog-9999/work/sheepdog-9999/sheep'
> make: *** [all-recursive] Error 1
> 
> 
> Gcc: gcc version 4.8.3
> 
> Regards,
> Marcin
> -- 
> sheepdog-users mailing lists
> sheepdog-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog-users



More information about the sheepdog-users mailing list