compile error fixed

diff --git a/samples/rm_amqp/rm_echo_dual_1_0/rm_echo.c b/samples/rm_amqp/rm_echo_dual_1_0/rm_echo.c
index cc07882..bc006cd 100644
--- a/samples/rm_amqp/rm_echo_dual_1_0/rm_echo.c
+++ b/samples/rm_amqp/rm_echo_dual_1_0/rm_echo.c
@@ -73,6 +73,8 @@
     int i = 0;
     neethi_policy_t *policy = NULL;
     axis2_status_t status = AXIS2_FAILURE;
+    extern char *optarg;
+    extern int optopt;
    
     /* Set up the environment */
     env = axutil_env_create_all("rm_echo_1_0_amqp.log", 
diff --git a/samples/rm_amqp/rm_echo_dual_1_1/rm_echo_1_1.c b/samples/rm_amqp/rm_echo_dual_1_1/rm_echo_1_1.c
index cd63aa3..0f664e8 100644
--- a/samples/rm_amqp/rm_echo_dual_1_1/rm_echo_1_1.c
+++ b/samples/rm_amqp/rm_echo_dual_1_1/rm_echo_1_1.c
@@ -73,6 +73,8 @@
     axis2_bool_t offer = AXIS2_TRUE;
     axis2_char_t *seq_key = NULL;
     int c;
+    extern char *optarg;
+    extern int optopt;
     neethi_policy_t *policy = NULL;
     axis2_status_t status = AXIS2_FAILURE;
    
diff --git a/samples/rm_amqp/rm_echo_single_1_0/rm_echo_single.c b/samples/rm_amqp/rm_echo_single_1_0/rm_echo_single.c
index f8b096d..3d27d4a 100644
--- a/samples/rm_amqp/rm_echo_single_1_0/rm_echo_single.c
+++ b/samples/rm_amqp/rm_echo_single_1_0/rm_echo_single.c
@@ -53,6 +53,8 @@
     axis2_status_t status = AXIS2_FAILURE;
     neethi_policy_t *policy = NULL;
     int c, i;
+    extern char *optarg;
+    extern int optopt;
     axis2_endpoint_ref_t *reply_to = NULL;
    
     /* Set up the environment */
diff --git a/samples/rm_amqp/rm_echo_single_1_1/rm_echo_single_1_1.c b/samples/rm_amqp/rm_echo_single_1_1/rm_echo_single_1_1.c
index 1a28529..8e9fb8b 100644
--- a/samples/rm_amqp/rm_echo_single_1_1/rm_echo_single_1_1.c
+++ b/samples/rm_amqp/rm_echo_single_1_1/rm_echo_single_1_1.c
@@ -56,7 +56,8 @@
     axis2_status_t status = AXIS2_FAILURE;
     axiom_node_t *result = NULL;
     neethi_policy_t *policy = NULL;
-   
+    extern char *optarg;
+    extern int optopt; 
     /* Set up the environment */
     env = axutil_env_create_all("rm_echo_single_1_1_amqp.log", AXIS2_LOG_LEVEL_TRACE);
  
diff --git a/samples/rm_amqp/rm_mtom_1_0/rm_mtom_1_0.c b/samples/rm_amqp/rm_mtom_1_0/rm_mtom_1_0.c
index 06b5ea0..bd8d644 100644
--- a/samples/rm_amqp/rm_mtom_1_0/rm_mtom_1_0.c
+++ b/samples/rm_amqp/rm_mtom_1_0/rm_mtom_1_0.c
@@ -61,6 +61,8 @@
     axis2_char_t *offered_seq_id = NULL;
     neethi_policy_t *policy = NULL;
     axis2_status_t status = AXIS2_FAILURE;  
+    extern char *optarg;
+    extern int optopt;
  
     /* Set up the environment */
     env = axutil_env_create_all("rm_mtom_1_0_amqp.log", AXIS2_LOG_LEVEL_TRACE);
diff --git a/samples/rm_amqp/rm_ping_1_0/rm_ping_1_0.c b/samples/rm_amqp/rm_ping_1_0/rm_ping_1_0.c
index 731430f..f76282a 100644
--- a/samples/rm_amqp/rm_ping_1_0/rm_ping_1_0.c
+++ b/samples/rm_amqp/rm_ping_1_0/rm_ping_1_0.c
@@ -51,7 +51,8 @@
     int c;
     axis2_char_t *seq_key = NULL;
     neethi_policy_t *policy = NULL;
- 
+    extern char *optarg;
+    extern int optopt; 
     /* Set up the environment */
     env = axutil_env_create_all("rm_ping_1_0_amqp.log", AXIS2_LOG_LEVEL_TRACE);
 
diff --git a/samples/rm_amqp/rm_ping_1_1/rm_ping_1_1.c b/samples/rm_amqp/rm_ping_1_1/rm_ping_1_1.c
index 6362d90..ea59e96 100644
--- a/samples/rm_amqp/rm_ping_1_1/rm_ping_1_1.c
+++ b/samples/rm_amqp/rm_ping_1_1/rm_ping_1_1.c
@@ -53,6 +53,8 @@
     int i = 0;
     neethi_policy_t *policy = NULL;
     axis2_status_t status = AXIS2_FAILURE;
+    extern char *optarg;
+    extern int optopt;
    
     /* Set up the environment */
     env = axutil_env_create_all("rm_ping_1_1_amqp.log", AXIS2_LOG_LEVEL_TRACE);