Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMBTORTURE compilation issue #440

Open
Zarouka opened this issue Jun 23, 2023 · 0 comments
Open

SMBTORTURE compilation issue #440

Zarouka opened this issue Jun 23, 2023 · 0 comments

Comments

@Zarouka
Copy link

Zarouka commented Jun 23, 2023

I can't compile smbtorture. it asks for a config.h file for compilation. it does not recognize the one present in the source `folder.

gcc -o smbtorture smbtorture.c In file included from includes.h:23, from smbtorture.c:21: ../replace/replace.h:45:2: error: #error -D__STDC_WANT_LIB_EXT1__=1 required 45 | #error -D__STDC_WANT_LIB_EXT1__=1 required | ^~~~~ In file included from includes.h:23, from smbtorture.c:21: ../replace/replace.h:703:2: error: #error Need a real boolean type 703 | #error Need a real boolean type | ^~~~~ ../replace/replace.h:1027:9: error: unknown type name ‘bool’ 1027 | bool cached; | ^~~~ ../replace/replace.h:1028:9: error: unknown type name ‘bool’ 1028 | bool retval; | ^~~~ ../replace/replace.h:1031:15: error: unknown type name ‘bool’ 1031 | static inline bool __rep_cwrap_enabled_fn(struct __rep_cwrap_enabled_state *state) | ^~~~ ../replace/replace.h: In function ‘__rep_cwrap_enabled_fn’: ../replace/replace.h:1033:9: warning: implicit declaration of function ‘bool’ [-Wimplicit-function-declaration] 1033 | bool (*__wrapper_enabled_fn)(void) = NULL; | ^~~~ ../replace/replace.h:52:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? 51 | #include <errno.h> +++ |+#include <stdbool.h> 52 | ../replace/replace.h:1033:16: error: ‘__wrapper_enabled_fn’ undeclared (first use in this function); did you mean ‘__rep_cwrap_enabled_fn’? 1033 | bool (*__wrapper_enabled_fn)(void) = NULL; | ^~~~~~~~~~~~~~~~~~~~ | __rep_cwrap_enabled_fn ../replace/replace.h:1033:16: note: each undeclared identifier is reported only once for each function it appears in ../replace/replace.h:1033:38: error: expected expression before ‘void’ 1033 | bool (*__wrapper_enabled_fn)(void) = NULL; | ^~~~ ../replace/replace.h:1041:40: error: expected expression before ‘)’ token 1041 | __wrapper_enabled_fn = (bool (*)(void))dlsym(RTLD_DEFAULT, state->fnname); | ^ ../replace/replace.h:1041:48: error: expected ‘;’ before ‘rep_dlsym’ 1041 | __wrapper_enabled_fn = (bool (*)(void))dlsym(RTLD_DEFAULT, state->fnname); | ^ | ; ../replace/replace.h:1046:25: warning: implicit declaration of function ‘__wrapper_enabled_fn’; did you mean ‘__rep_cwrap_enabled_fn’? [-Wimplicit-function-declaration] 1046 | state->retval = __wrapper_enabled_fn(); | ^~~~~~~~~~~~~~~~~~~~ | __rep_cwrap_enabled_fn ../replace/replace.h: At top level: ../replace/replace.h:1050:15: error: unknown type name ‘bool’ 1050 | static inline bool nss_wrapper_enabled(void) | ^~~~ ../replace/replace.h:1057:15: error: unknown type name ‘bool’ 1057 | static inline bool nss_wrapper_hosts_enabled(void) | ^~~~ ../replace/replace.h:1064:15: error: unknown type name ‘bool’ 1064 | static inline bool socket_wrapper_enabled(void) | ^~~~ ../replace/replace.h:1071:15: error: unknown type name ‘bool’ 1071 | static inline bool uid_wrapper_enabled(void) | ^~~~ ../replace/replace.h:1079:15: error: unknown type name ‘bool’ 1079 | static inline bool _hexcharval(char c, uint8_t *val) | ^~~~ ../replace/replace.h:1079:40: error: unknown type name ‘uint8_t’ 1079 | static inline bool _hexcharval(char c, uint8_t *val) | ^~~~~~~ ../replace/replace.h:52:1: note: ‘uint8_t’ is defined in header ‘<stdint.h>’; did you forget to ‘#include <stdint.h>’? 51 | #include <errno.h> +++ |+#include <stdint.h> 52 | ../replace/replace.h:1087:15: error: unknown type name ‘bool’ 1087 | static inline bool hex_byte(const char *in, uint8_t *out) | ^~~~ ../replace/replace.h:1087:45: error: unknown type name ‘uint8_t’ 1087 | static inline bool hex_byte(const char *in, uint8_t *out) | ^~~~~~~ ../replace/replace.h:1087:45: note: ‘uint8_t’ is defined in header ‘<stdint.h>’; did you forget to ‘#include <stdint.h>’? In file included from smbtorture.c:21: includes.h:28:2: error: #error "make sure you have removed all config.h files from standalone builds!" 28 | #error "make sure you have removed all config.h files from standalone builds!" | ^~~~~ includes.h:29:2: error: #error "the included config.h isn't from samba!" 29 | #error "the included config.h isn't from samba!" | ^~~~~ includes.h:33:10: fatal error: system/time.h: No such file or directory 33 | #include "system/time.h" | ^~~~~~~~~~~~~~~ compilation terminated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant