Linux Overlay Filesystem development
 help / color / mirror / Atom feed
* Compile error of fsck.overlay on Fedora30
@ 2019-10-31 14:07 Chengguang Xu
  2019-10-31 14:20 ` zhangyi (F)
  0 siblings, 1 reply; 2+ messages in thread
From: Chengguang Xu @ 2019-10-31 14:07 UTC (permalink / raw)
  To: yi.zhang; +Cc: linux-unionfs

Hi Zhangyi,

I found a compile error of fsck.overlay on my laptop(fedora 30), it looks like lacking of header in the check.c.
After manually added <sys/sysmacros.h> compile succeeded without error.

Detail info of compile error as below:

 [cgxu@localhost overlayfs-progs]$ make
gcc -Wall -g -c fsck.c
gcc -Wall -g -c common.c
gcc -Wall -g -c lib.c
gcc -Wall -g -c check.c
check.c: In function ‘ovl_create_whiteout’:
check.c:173:55: warning: implicit declaration of function ‘makedev’ [-Wimplicit-function-declaration]
  173 |  if (mknodat(dirfd, pathname, S_IFCHR | WHITEOUT_MOD, makedev(0, 0))) {
      |                                                       ^~~~~~~
gcc -Wall -g -c mount.c
gcc -Wall -g -c path.c
gcc -Wall -g -c overlayfs.c
gcc -lm fsck.o common.o lib.o check.o mount.o path.o overlayfs.o -o fsck.overlay
/usr/bin/ld: check.o: in function `ovl_create_whiteout':
/home/cgxu/git/overlayfs-progs/check.c:173: undefined reference to `makedev'
collect2: error: ld returned 1 exit status
make: *** [Makefile:10: overlay] Error 1


Thanks,
Chengguang

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Compile error of fsck.overlay on Fedora30
  2019-10-31 14:07 Compile error of fsck.overlay on Fedora30 Chengguang Xu
@ 2019-10-31 14:20 ` zhangyi (F)
  0 siblings, 0 replies; 2+ messages in thread
From: zhangyi (F) @ 2019-10-31 14:20 UTC (permalink / raw)
  To: cgxu519; +Cc: linux-unionfs

Hi Chengguang,

Thanks for reporting, I will check and fix this soon.

Thanks,
Yi.

On 2019/10/31 22:07, Chengguang Xu Wrote:
> Hi Zhangyi,
> 
> I found a compile error of fsck.overlay on my laptop(fedora 30), it looks like lacking of header in the check.c.
> After manually added <sys/sysmacros.h> compile succeeded without error.
> 
> Detail info of compile error as below:
> 
>  [cgxu@localhost overlayfs-progs]$ make
> gcc -Wall -g -c fsck.c
> gcc -Wall -g -c common.c
> gcc -Wall -g -c lib.c
> gcc -Wall -g -c check.c
> check.c: In function ‘ovl_create_whiteout’:
> check.c:173:55: warning: implicit declaration of function ‘makedev’ [-Wimplicit-function-declaration]
>   173 |  if (mknodat(dirfd, pathname, S_IFCHR | WHITEOUT_MOD, makedev(0, 0))) {
>       |                                                       ^~~~~~~
> gcc -Wall -g -c mount.c
> gcc -Wall -g -c path.c
> gcc -Wall -g -c overlayfs.c
> gcc -lm fsck.o common.o lib.o check.o mount.o path.o overlayfs.o -o fsck.overlay
> /usr/bin/ld: check.o: in function `ovl_create_whiteout':
> /home/cgxu/git/overlayfs-progs/check.c:173: undefined reference to `makedev'
> collect2: error: ld returned 1 exit status
> make: *** [Makefile:10: overlay] Error 1
> 
> 
> Thanks,
> Chengguang
> 
> 
> 
> .
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-31 14:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-31 14:07 Compile error of fsck.overlay on Fedora30 Chengguang Xu
2019-10-31 14:20 ` zhangyi (F)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox