Skip to content

No file /cfitsio/drvrfile.c present in repository - error while using make command #2

@johntworley

Description

@johntworley

Whenever I use the "make" command after using the ./configure command I am met with the following error :
(heasoft-env) jackworley@Jacks-MacBook-Pro-2 acx % make
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in libsrc
Making all in ape
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in src
CC ape_binary.o
CC ape_error.o
CC ape_io.o
CC ape_list.o
CC ape_msg.o
CC ape_par.o
CC ape_par_group.o
CC ape_test.o
CC ape_trad.o
ape_trad.c:371:12: warning: expression which evaluates to zero treated as a null pointer constant of type 'ApePar *' (aka 'struct ApePar *') [-Wnon-literal-null-conversion]
*par = '\0';
^~~~
ape_trad.c:483:14: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
*value = '\0';
^~~~
ape_trad.c:552:14: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
*value = '\0';
^~~~
ape_trad.c:575:14: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
value = '\0';
^~~~
4 warnings generated.
CC ape_util.o
ape_util.c:222:47: warning: expression does not compute the number of elements in this array; element type is 'at_exit_func_ptr_type' (aka 'void (
)(void)'), not 'char' [-Wsizeof-array-div]
memset(s_atexit, '\0', sizeof(s_atexit) / sizeof(char));
~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_string.h:77:33: note: expanded from macro 'memset'
__builtin___memset_chk (dest, VA_ARGS, __darwin_obsz0 (dest))
^~~~~~~~~~~
ape_util.c:197:30: note: array 's_atexit' declared here
static at_exit_func_ptr_type s_atexit[MAX_NUM_ATEXIT_FUNC];
^
ape_util.c:222:47: note: place parentheses around the 'sizeof(char)' expression to silence this warning
memset(s_atexit, '\0', sizeof(s_atexit) / sizeof(char));
^
1 warning generated.
CC pil.o
CC pil_error.o
AR libape.a
CC pcheck.o
CCLD pcheck
CC pget.o
CCLD pget
CC plist.o
CCLD plist
CC pquery2.o
CCLD pquery2
CC pset.o
CCLD pset
CC punlearn.o
CCLD punlearn
make[5]: Nothing to be done for `all-am'.
Making all in cfitsio
CC buffers.o
CC cfileio.o
cfileio.c:6333:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (loc = strchr(tval, 'D')) *loc = 'E';
~~~~^~~~~~~~~~~~~~~~~~~
cfileio.c:6333:18: note: place parentheses around the assignment to silence this warning
if (loc = strchr(tval, 'D')) *loc = 'E';
^
( )
cfileio.c:6333:18: note: use '==' to turn this assignment into an equality comparison
if (loc = strchr(tval, 'D')) *loc = 'E';
^
==
1 warning generated.
CC checksum.o
CC drvrfile.o
drvrfile.c:373:5: error: call to undeclared function 'ftruncate'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ftruncate(fdesc, (OFF_T) filesize);
^
drvrfile.c:373:5: note: did you mean 'strncat'?
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:83:7: note: 'strncat' declared here
char *strncat(char *__s1, const char *__s2, size_t __n);
^
1 error generated.
make[3]: *** [drvrfile.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Please let me know if i am making an error in my attempts, otherwise please update the repository. Thank you.

  • Jack

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions