Closed ewe2 closed 2 years ago
here's a transcript of the build, looks like circular references with the automatic dependencies.
Script started on 2021-12-03 19:20:46+11:00 [TERM="tmux-256color" TTY="/dev/pts/10" COLUMNS="173" LINES="47"] $ make gcc -std=c11 -g -Wall -O0 -MMD -MP -I./src -c -o src/fusecommon.o src/fusecommon.c gcc -std=c11 -g -Wall -O0 -MMD -MP -I./src -c -o src/v6fuse.o src/v6fuse.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v6 -MMD -MP -I./src -c -o src/v6fs.o src/v6fs.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v6 -MMD -MP -I./src -c -o src/v6adapt.o src/v6adapt.c gcc -std=c11 -g -Wall -O0 -MMD -MP -I./src -c -o src/idmap.o src/idmap.c gcc -std=c11 -g -Wall -O0 -MMD -MP -I./src -c -o src/dskio.o src/dskio.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v6 -MMD -MP -I./src -c -o ancient-src/v6/ken/alloc.o ancient-src/v6/ken/alloc.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v6 -MMD -MP -I./src -c -o ancient-src/v6/dmr/bio.o ancient-src/v6/dmr/bio.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v6 -MMD -MP -I./src -c -o ancient-src/v6/ken/subr.o ancient-src/v6/ken/subr.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v6 -MMD -MP -I./src -c -o ancient-src/v6/ken/iget.o ancient-src/v6/ken/iget.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v6 -MMD -MP -I./src -c -o ancient-src/v6/ken/rdwri.o ancient-src/v6/ken/rdwri.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v6 -MMD -MP -I./src -c -o ancient-src/v6/ken/nami.o ancient-src/v6/ken/nami.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v6 -MMD -MP -I./src -c -o ancient-src/v6/ken/fio.o ancient-src/v6/ken/fio.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v6 -MMD -MP -I./src -c -o ancient-src/v6/ken/pipe.o ancient-src/v6/ken/pipe.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v6 -MMD -MP -I./src -c -o ancient-src/v6/ken/sys2.o ancient-src/v6/ken/sys2.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v6 -MMD -MP -I./src -c -o ancient-src/v6/ken/sys3.o ancient-src/v6/ken/sys3.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v6 -MMD -MP -I./src -c -o ancient-src/v6/ken/sys4.o ancient-src/v6/ken/sys4.c gcc -o v6fs -Xlinker src/fusecommon.o src/v6fuse.o src/v6fs.o src/v6adapt.o src/idmap.o src/dskio.o ancient-src/v6/ken/alloc.o ancient-src/v6/dmr/bio.o ancient-src/v6/ken/subr.o ancient-src/v6/ken/iget.o ancient-src/v6/ken/rdwri.o ancient-src/v6/ken/nami.o ancient-src/v6/ken/fio.o ancient-src/v6/ken/pipe.o ancient-src/v6/ken/sys2.o ancient-src/v6/ken/sys3.o ancient-src/v6/ken/sys4.o -lfuse gcc -std=c11 -g -Wall -O0 -MMD -MP -I./src -c -o src/v7fuse.o src/v7fuse.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v7 -MMD -MP -I./src -c -o src/v7fs.o src/v7fs.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v7 -MMD -MP -I./src -c -o src/v7adapt.o src/v7adapt.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v7 -MMD -MP -I./src -c -o ancient-src/v7/sys/alloc.o ancient-src/v7/sys/alloc.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v7 -MMD -MP -I./src -c -o ancient-src/v7/dev/bio.o ancient-src/v7/dev/bio.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v7 -MMD -MP -I./src -c -o ancient-src/v7/sys/subr.o ancient-src/v7/sys/subr.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v7 -MMD -MP -I./src -c -o ancient-src/v7/sys/iget.o ancient-src/v7/sys/iget.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v7 -MMD -MP -I./src -c -o ancient-src/v7/sys/rdwri.o ancient-src/v7/sys/rdwri.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v7 -MMD -MP -I./src -c -o ancient-src/v7/sys/nami.o ancient-src/v7/sys/nami.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v7 -MMD -MP -I./src -c -o ancient-src/v7/sys/fio.o ancient-src/v7/sys/fio.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v7 -MMD -MP -I./src -c -o ancient-src/v7/sys/pipe.o ancient-src/v7/sys/pipe.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v7 -MMD -MP -I./src -c -o ancient-src/v7/sys/sys2.o ancient-src/v7/sys/sys2.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v7 -MMD -MP -I./src -c -o ancient-src/v7/sys/sys3.o ancient-src/v7/sys/sys3.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v7 -MMD -MP -I./src -c -o ancient-src/v7/sys/sys4.o ancient-src/v7/sys/sys4.c gcc -std=c11 -g -Wall -O0 -I./ancient-src/v7 -MMD -MP -I./src -c -o ancient-src/v7/sys/main.o ancient-src/v7/sys/main.c gcc -o v7fs -Xlinker src/fusecommon.o src/v7fuse.o src/v7fs.o src/v7adapt.o src/idmap.o src/dskio.o ancient-src/v7/sys/alloc.o ancient-src/v7/dev/bio.o ancient-src/v7/sys/subr.o ancient-src/v7/sys/iget.o ancient-src/v7/sys/rdwri.o ancient-src/v7/sys/nami.o ancient-src/v7/sys/fio.o ancient-src/v7/sys/pipe.o ancient-src/v7/sys/sys2.o ancient-src/v7/sys/sys3.o ancient-src/v7/sys/sys4.o ancient-src/v7/sys/main.o -lfuse /usr/bin/ld: src/v7adapt.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/inode.h:51: multiple definition of `mpxip'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/inode.h:51: first defined here /usr/bin/ld: src/v7adapt.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/mount.h:11: multiple definition of `v7_mount'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/mount.h:11: first defined here /usr/bin/ld: ancient-src/v7/sys/alloc.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/mount.h:11: multiple definition of `v7_mount'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/mount.h:11: first defined here /usr/bin/ld: ancient-src/v7/sys/alloc.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/inode.h:51: multiple definition of `mpxip'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/inode.h:51: first defined here /usr/bin/ld: ancient-src/v7/sys/subr.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/inode.h:51: multiple definition of `mpxip'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/inode.h:51: first defined here /usr/bin/ld: ancient-src/v7/sys/iget.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/mount.h:11: multiple definition of `v7_mount'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/mount.h:11: first defined here /usr/bin/ld: ancient-src/v7/sys/iget.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/inode.h:51: multiple definition of `mpxip'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/inode.h:51: first defined here /usr/bin/ld: ancient-src/v7/sys/rdwri.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/inode.h:51: multiple definition of `mpxip'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/inode.h:51: first defined here /usr/bin/ld: ancient-src/v7/sys/nami.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/inode.h:51: multiple definition of `mpxip'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/inode.h:51: first defined here /usr/bin/ld: ancient-src/v7/sys/nami.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/mount.h:11: multiple definition of `v7_mount'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/mount.h:11: first defined here /usr/bin/ld: ancient-src/v7/sys/fio.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/inode.h:51: multiple definition of `mpxip'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/inode.h:51: first defined here /usr/bin/ld: ancient-src/v7/sys/pipe.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/inode.h:51: multiple definition of `mpxip'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/inode.h:51: first defined here /usr/bin/ld: ancient-src/v7/sys/sys2.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/inode.h:51: multiple definition of `mpxip'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/inode.h:51: first defined here /usr/bin/ld: ancient-src/v7/sys/sys3.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/mount.h:11: multiple definition of `v7_mount'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/mount.h:11: first defined here /usr/bin/ld: ancient-src/v7/sys/sys3.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/inode.h:51: multiple definition of `mpxip'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/inode.h:51: first defined here /usr/bin/ld: ancient-src/v7/sys/sys4.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/inode.h:51: multiple definition of `mpxip'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/inode.h:51: first defined here /usr/bin/ld: ancient-src/v7/sys/main.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/mount.h:11: multiple definition of `v7_mount'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/mount.h:11: first defined here /usr/bin/ld: ancient-src/v7/sys/main.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/inode.h:51: multiple definition of `mpxip'; src/v7fs.o:/home/ewe2/devel/unix-history/retro-fuse/./ancient-src/v7/h/inode.h:51: first defined here /usr/bin/ld: ancient-src/v7/sys/main.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/sys/../h/seg.h:18: multiple definition of `ka6'; ancient-src/v7/dev/bio.o:/home/ewe2/devel/unix-history/retro-fuse/ancient-src/v7/dev/../h/seg.h:18: first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:101: v7fs] Error 1
Apologies for the delay in responding.
This is actually caused by the lack of "extern" specifiers for various declarations in ancient v7 header files. I will push a fix shortly.
Should work now.
Thanks!!
here's a transcript of the build, looks like circular references with the automatic dependencies.