Replies: 1 comment
-
@mrdede Please use English to ask questions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
$ make
cd src && make all
make[1]: Entering directory '/cygdrive/c/redis-6.2.5/src'
CC debug.o
debug.c: In function ‘dumpX86Calls’:
debug.c:1753:5: error: unknown type name ‘Dl_info’
1753 | Dl_info info;
| ^~~~~~~
debug.c:1763:13: warning: implicit declaration of function ‘dladdr’; did you mean ‘s_addr’? [-Wimplicit-function-declaration]
1763 | if (dladdr((void*)target, &info) != 0 && info.dli_sname != NULL) {
| ^~~~~~
| s_addr
debug.c:1763:54: error: request for member ‘dli_sname’ in something not a structure or union
1763 | if (dladdr((void*)target, &info) != 0 && info.dli_sname != NULL) {
| ^
debug.c:1765:63: error: request for member ‘dli_sname’ in something not a structure or union
1765 | printf("Function at 0x%lx is %s\n",target,info.dli_sname);
| ^
debug.c: In function ‘dumpCodeAroundEIP’:
debug.c:1774:5: error: unknown type name ‘Dl_info’
1774 | Dl_info info;
| ^~~~~~~
In file included from debug.c:31:
debug.c:1783:17: error: request for member ‘dli_sname’ in something not a structure or union
1783 | info.dli_sname, info.dli_saddr, info.dli_fname, info.dli_fbase,
| ^
server.h:2739:27: note: in definition of macro ‘serverLog’
2739 | _serverLog(level, VA_ARGS);
| ^~~~~~~~~~~
debug.c:1783:33: error: request for member ‘dli_saddr’ in something not a structure or union
1783 | info.dli_sname, info.dli_saddr, info.dli_fname, info.dli_fbase,
| ^
server.h:2739:27: note: in definition of macro ‘serverLog’
2739 | _serverLog(level, VA_ARGS);
| ^~~~~~~~~~~
debug.c:1783:49: error: request for member ‘dli_fname’ in something not a structure or union
1783 | info.dli_sname, info.dli_saddr, info.dli_fname, info.dli_fbase,
| ^
server.h:2739:27: note: in definition of macro ‘serverLog’
2739 | _serverLog(level, VA_ARGS);
| ^~~~~~~~~~~
debug.c:1783:65: error: request for member ‘dli_fbase’ in something not a structure or union
1783 | info.dli_sname, info.dli_saddr, info.dli_fname, info.dli_fbase,
| ^
server.h:2739:27: note: in definition of macro ‘serverLog’
2739 | _serverLog(level, VA_ARGS);
| ^~~~~~~~~~~
debug.c:1784:17: error: request for member ‘dli_saddr’ in something not a structure or union
1784 | info.dli_saddr);
| ^
server.h:2739:27: note: in definition of macro ‘serverLog’
2739 | _serverLog(level, VA_ARGS);
| ^~~~~~~~~~~
debug.c:1785:44: error: request for member ‘dli_saddr’ in something not a structure or union
1785 | size_t len = (long)eip - (long)info.dli_saddr;
| ^
debug.c:1791:38: error: request for member ‘dli_saddr’ in something not a structure or union
1791 | void *base = (void *)info.dli_saddr;
| ^
make[1]: *** [Makefile:368: debug.o] Error 1
make[1]: Leaving directory '/cygdrive/e/c/redis-6.2.5/src'
make: *** [Makefile:6: all] Error 2
Beta Was this translation helpful? Give feedback.
All reactions