My Oracle Support Banner

Continuous Query Notification Example Fails to Compile (Doc ID 1086071.1)

Last updated on FEBRUARY 03, 2019

Applies to:

Oracle Server - Enterprise Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.

Symptoms

Attempting to compile the "Continuous Query Notification Example" sample produces warnings and a linking error.

The sample can be found at the following URL.
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28395/oci10new.htm

 

Using the Oracle provided make file produces the warnings and linking error.

> make -f $ORACLE_HOME/rdbms/demo/demo_rdbms.mk build EXE=myApp OBJS=test5.o

"test5.c", line 170: warning #2549-D: variable "authp" is used before its
value is set
if (authp)
^

"test5.c", line 248: warning #2167-D: argument of type "void ***" is
incompatible with parameter of type "void **"
i, &exist, &row_descp, &elemind));
^

"test5.c", line 286: warning #2167-D: argument of type "void ***" is
incompatible with parameter of type "void **"
i, &exist, &table_descp, &elemind));
^

"test5.c", line 327: warning #2167-D: argument of type "void ***" is
incompatible with parameter of type "void **"
i, &exist, &query_descp, &elemind));
^

"test5.c", line 336: warning #2181-D: argument is incompatible with
corresponding format string conversion
printf(" Query %d is changed\n", queryid);
^

"test5.c", line 532: warning #4212-D: mismatch between character pointer types
"const signed char *" and "const char *"
(ub4)strlen((const signed char *)query_text1), OCI_V7_SYNTAX,
^

"test5.c", line 560: warning #2181-D: argument is incompatible with
corresponding format string conversion
printf("Query Id %d\n", qid);
^

"test5.c", line 589: warning #2001-D: last line of file ends without a newline
}
^

"test5.c", line 78: warning #2177-D: function "nonractests2" was declared but
never referenced
static int nonractests2(/*_ int argc, char *argv[] _*/);
^

"test5.c", line 567: warning #2177-D: function "cleanup" was declared but
never referenced
static void cleanup(envhp, svchp, srvhp, errhp, usrhp)
^

cc -Wl,+k -Wl,+s -Wl,+n +DD64 -o build -L/refresh/64bit/app/oracle/product/11.1.0.7.0/rdbms/lib/ -L/refresh/64bit/app/oracle/product/11.1.0.7.0/lib/ -o myApp test5.o -lclntsh `cat /refresh/64bit/app/oracle/product/11.1.0.7.0/lib/ldflags` `cat /refresh/64bit/app/oracle/product/11.1.0.7.0/lib/sysliblist` -ldl -lm -lpthread -lrt
ld: Unsatisfied symbol "bit" in file test5.o
1 errors.
*** Error exit code 1

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.