diff --git a/apps/app_adsiprog.c b/apps/app_adsiprog.c
index c61f6bf3fb..40330152b0 100644
--- a/apps/app_adsiprog.c
+++ b/apps/app_adsiprog.c
@@ -25,6 +25,10 @@
* \ingroup applications
*/
+/*** MODULEINFO
+ res_adsi
+ ***/
+
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index b79ba96286..3b8a8c34bc 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -28,14 +28,20 @@
* \note This module requires res_adsi to load.
*/
+/*** MODULEINFO
+ res_adsi
+ ***/
+
/*** MAKEOPTS
unixodbc
+ IMAP_STORAGE
no
imap_tk
+ ODBC_STORAGE
no
diff --git a/build_tools/get_makeopts b/build_tools/get_makeopts
index 15ad97b750..e63622afd1 100644
--- a/build_tools/get_makeopts
+++ b/build_tools/get_makeopts
@@ -1,3 +1,3 @@
/\/\*\*\* MAKEOPTS/ {printit=1; next}
-/\*\*\*\// {exit}
+/\*\*\*\// {if (printit) exit}
// {if (printit) print}
diff --git a/build_tools/get_moduleinfo b/build_tools/get_moduleinfo
index 08ae61cbfc..d17c28e063 100644
--- a/build_tools/get_moduleinfo
+++ b/build_tools/get_moduleinfo
@@ -1,3 +1,3 @@
/\/\*\*\* MODULEINFO/ {printit=1; next}
-/\*\*\*\// {exit}
+/\*\*\*\// {if (printit) exit}
// {if (printit) print}
diff --git a/channels/chan_gtalk.c b/channels/chan_gtalk.c
index fa1d216aa1..f84d6d896b 100644
--- a/channels/chan_gtalk.c
+++ b/channels/chan_gtalk.c
@@ -27,6 +27,7 @@
/*** MODULEINFO
iksemel
+ res_jabber
***/
#include "asterisk.h"
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c
index 03876779c4..5506c31b5f 100644
--- a/funcs/func_odbc.c
+++ b/funcs/func_odbc.c
@@ -28,6 +28,7 @@
/*** MODULEINFO
unixodbc
+ res_odbc
***/
#include "asterisk.h"
diff --git a/res/res_adsi.c b/res/res_adsi.c
index 62f838198d..a384ac962f 100644
--- a/res/res_adsi.c
+++ b/res/res_adsi.c
@@ -1144,7 +1144,7 @@ static int unload_module(void)
return -1;
}
-AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS, "ADSI Resource (not optional)",
+AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS, "ADSI Resource",
.load = load_module,
.unload = unload_module,
.reload = reload,
diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c
index 5c725a0e12..0e317640f3 100644
--- a/res/res_config_odbc.c
+++ b/res/res_config_odbc.c
@@ -30,6 +30,7 @@
/*** MODULEINFO
unixodbc
+ res_odbc
***/
#include "asterisk.h"