Open newjcj opened 1 year ago
I created a new commit to fix error: too few arguments to function ‘mkdir’ when you run make. All should be done is repeat the process again. Reply if you can run the make part of the setup after redoing all the steps again.
[Put what did not work and the error message if there are any error messages] that is the error when i run make!
make mkdir -p obj gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_FCNTL_H=1 -DHAVE_WINDOWS_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDIO_H=1 -DHAVE_TLHELP32_H=1 -DHAVE_PSAPI_H=1 -I../include -c ../source/pipe.c -o obj/pipe.o ../source/pipe.c: In function ‘pipe’: ../source/pipe.c:6:3: warning: implicit declaration of function ‘_pipe’; did you mean ‘pipe’? [-Wimplicit-function-declaration] 6 | _pipe(fildes, 65536, _O_BINARY); | ^~~~~ | pipe gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_FCNTL_H=1 -DHAVE_WINDOWS_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDIO_H=1 -DHAVE_TLHELP32_H=1 -DHAVE_PSAPI_H=1 -I../include -c ../source/wait.c -o obj/wait.o ../source/wait.c: In function ‘wait’: ../source/wait.c:38:9: warning: implicit declaration of function ‘_cwait’; did you mean ‘wait’? [-Wimplicit-function-declaration] 38 | _cwait(NULL, (intptr_t)hProcess, _WAIT_CHILD); | ^
~| wait ../source/wait.c:46:3: warning: implicit declaration of function ‘_set_errno’; did you mean ‘errno’? [-Wimplicit-function-declaration] 46 | _set_errno(ECHILD); | ^~~~~~ | errno gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_FCNTL_H=1 -DHAVE_WINDOWS_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDIO_H=1 -DHAVE_TLHELP32_H=1 -DHAVE_PSAPI_H=1 -I../include -c ../source/mmap.c -o obj/mmap.o ../source/mmap.c: In function ‘mmap’: ../source/mmap.c:64:28: warning: implicit declaration of function ‘_get_osfhandle’ [-Wimplicit-function-declaration] 64 | hFile = (HANDLE) _get_osfhandle (fd); | ^~~~~~ ../source/mmap.c:64:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 64 | hFile = (HANDLE) _get_osfhandle (fd); | ^ ../source/mmap.c:70:15: warning: implicit declaration of function ‘_set_errno’; did you mean ‘errno’? [-Wimplicit-function-declaration] 70 | _set_errno (EBADF); | ^~~~~~ | errno gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_FCNTL_H=1 -DHAVE_WINDOWS_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDIO_H=1 -DHAVE_TLHELP32_H=1 -DHAVE_PSAPI_H=1 -I../include -c ../source/munmap.c -o obj/munmap.o gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_FCNTL_H=1 -DHAVE_WINDOWS_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDIO_H=1 -DHAVE_TLHELP32_H=1 -DHAVE_PSAPI_H=1 -I../include -c ../source/msync.c -o obj/msync.o gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_FCNTL_H=1 -DHAVE_WINDOWS_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDIO_H=1 -DHAVE_TLHELP32_H=1 -DHAVE_PSAPI_H=1 -I../include -c ../source/mlock.c -o obj/mlock.o gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_FCNTL_H=1 -DHAVE_WINDOWS_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDIO_H=1 -DHAVE_TLHELP32_H=1 -DHAVE_PSAPI_H=1 -I../include -c ../source/munlock.c -o obj/munlock.o gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_FCNTL_H=1 -DHAVE_WINDOWS_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDIO_H=1 -DHAVE_TLHELP32_H=1 -DHAVE_PSAPI_H=1 -I../include -c ../source/posix_madvise.c -o obj/posix_madvise.o gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_FCNTL_H=1 -DHAVE_WINDOWS_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDIO_H=1 -DHAVE_TLHELP32_H=1 -DHAVE_PSAPI_H=1 -I../include -c ../source/madvise.c -o obj/madvise.o gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_FCNTL_H=1 -DHAVE_WINDOWS_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDIO_H=1 -DHAVE_TLHELP32_H=1 -DHAVE_PSAPI_H=1 -I../include -c ../source/shm_open.c -o obj/shm_open.o ../source/shm_open.c: In function ‘shm_open’: ../source/shm_open.c:26:3: warning: implicit declaration of function ‘_get_errno’; did you mean ‘errno’? [-Wimplicit-function-declaration] 26 | _get_errno (&error_value); | ^~~~~~ | errno ../source/shm_open.c:27:3: error: too few arguments to function ‘mkdir’ 27 | mkdir (foldername); | ^~~~~ In file included from /usr/include/sys/_default_fcntl.h:211, from /usr/include/sys/fcntl.h:3, from /usr/include/fcntl.h:12, from ../source/shm_open.c:6: /usr/include/sys/stat.h:140:9: note: declared here 140 | int mkdir (const char *_path, mode_t mode ); | ^~~~~ ../source/shm_open.c:28:3: warning: implicit declaration of function ‘_set_errno’; did you mean ‘__errno’? [-Wimplicit-function-declaration] 28 | _set_errno (error_value); | ^~~~~~ | __errno ../source/shm_open.c:39:5: warning: implicit declaration of function ‘_fullpath’; did you mean ‘FillPath’? [-Wimplicit-function-declaration] 39 | _fullpath (NULL, filename, | ^~~~~ | FillPath ../source/shm_open.c:39:5: warning: initialization of ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] make: *** [Makefile:94: shm_open.o] Error 1