diff -Nur a/uadk/v1/wd.h b/uadk/v1/wd.h
--- a/uadk/v1/wd.h	2021-07-01 21:56:26.000000000 +0800
+++ b/uadk/v1/wd.h	2021-08-07 14:08:16.547113400 +0800
@@ -140,7 +140,7 @@
 
 #ifndef WD_ERR
 #ifndef WITH_LOG_FILE
-wd_log log_out;
+extern wd_log log_out;
 
 #define __WD_FILENAME__ (strrchr(__FILE__, '/') ?	\
 		((char *)((uintptr_t)strrchr(__FILE__, '/') + 1)) : __FILE__)
@@ -150,7 +150,7 @@
 	__WD_FILENAME__, __LINE__, __func__, ##args) : 	\
 	fprintf(stderr, format, ##args))
 #else
-FILE *flog_fd;
+extern FILE *flog_fd;
 #define WD_ERR(format, args...)				\
 	if (!flog_fd)					\
 		flog_fd = fopen(WITH_LOG_FILE, "a+");	\
