You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CBMC version: 6.1.1-2
Operating system: Linux
Exact command line `resulting in the issue: goto-cc -o file.o file.c
What behaviour did you expect: A goto program to be built
What happened instead: The file contains a <dirent.h> include. goto-cc reports:
"error: function symbol 'readdir' redefined with different type:"
"Original: struct dirent * (DIR *)"
"New: struct dirent64 * (DIR *)"
"extern struct dirent64 *readdir64(DIR *__dirp) __nonnull ((1));"
I believe this is happening because internally dirent.h includes <bits/dirent.h> which defines a struct dirent and can conditionally swap it to a dirent64 if the appropriate define is available. Or at least thats what I think is happening, hence the redefinition error. Unfortunately I have no idea how to fix this because it is a system header.
In any case, would appreciate some help.
-M
The text was updated successfully, but these errors were encountered:
CBMC version: 6.1.1-2
Operating system: Linux
Exact command line `resulting in the issue: goto-cc -o file.o file.c
What behaviour did you expect: A goto program to be built
What happened instead: The file contains a <dirent.h> include. goto-cc reports:
"error: function symbol 'readdir' redefined with different type:"
"Original: struct dirent * (DIR *)"
"New: struct dirent64 * (DIR *)"
"extern struct dirent64 *readdir64(DIR *__dirp) __nonnull ((1));"
I believe this is happening because internally dirent.h includes <bits/dirent.h> which defines a struct dirent and can conditionally swap it to a dirent64 if the appropriate define is available. Or at least thats what I think is happening, hence the redefinition error. Unfortunately I have no idea how to fix this because it is a system header.
In any case, would appreciate some help.
-M
The text was updated successfully, but these errors were encountered: