[Date Prev][Date Next] [Chronological] [Thread] [Top]

LDAP clinet APIs linking prob

hi all,

I written a clinet( written in C)  LDAP  application libarary using
Netscape LDAP V3 complaint libarary. Its working fine . The client
application made it as a shared lib.(libtestldap.sl)  My problem is, The
client LDAP lib is liking with
Pro-C prorgram with an option -lclntst9 giving following error.
 %make -f Makefile_test all
proc code=ansi_c char_map=string threads=yes iname=ldap_test.pc

Pro*C/C++: Release - Production on Tue Feb 25 21:04:43 2003

(c) Copyright 2001 Oracle Corporation.  All rights reserved.

System default option values taken from:

/usr/local/pa20_64/bin/gcc  -Wall  -g -I/user/lakshmiv/ldap_test
-I/user/pandry/cim/include/cim_functions/cim_common  -march=2.0
-DDATE="\"`date +%E%m%d`\"" -D_REENTRANT -Dhpux -DHPUX11 -D_HP_UX
-D_LP64_ -D_PA_RISC2_0 -I/user/pandry/ldap_test
-DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBPTHREAD=1      -c  ldap_test.c
ldap_test.c:628: warning: return type defaults to `int'
ldap_test.c: In function `main':
ldap_test.c:690: warning: implicit declaration of function
ldap_test.c:632: warning: unused variable `retvalue'
ldap_test.c:633: warning: unused variable `ret'
ldap_test.c:634: warning: unused variable `xml_content'
ldap_test.c:647: warning: unused variable `op_hdr'
ldap_test.c:648: warning: unused variable `op_buf'
ldap_test.c:651: warning: unused variable `szEventDate'
ldap_test.c:706: warning: control reaches end of non-void function
ldap_test.c: At top level:
ldap_test.c:106: warning: `sqlstm' defined but not used
ldap_test.c:118: warning: `IAPSUCC' defined but not used
ldap_test.c:119: warning: `IAPFAIL' defined but not used
ldap_test.c:120: warning: `IAPFTL' defined but not used
/usr/local/pa20_64/bin/gcc  -o ldap_test ldap_test.o 
-I/user/pandry/ldap_test -L/oracle2/app/oracle/product/901/lib
-L/user/lakshmiv/ldap_test -ltestldap  -lclntst9
ld: Unsatisfied symbol "U_copy_frame_info" in file
1 errors.
collect2: ld returned 1 exit status
make: *** [ldap_test] Error 1

above same compile with linking oracle flag -lclntsh

/usr/local/pa20_64/bin/gcc  -o ldap_test ldap_test.o 
-I/user/pandry/ldap_test -L/oracle2/app/oracle/product/901/lib
-L/user/pandry/ldap_test -ltestldap  -lclntsh

is building properly.

If I Run the build image. LDAP search is showing success.
I am facing a problem Creating entry into LDAP DIT is fails and returns
error 'Protocol Error'. The Same client APIs works with C-environment
without an error. There is no NULL information in the LDAP Mod values. I
checked every thing properly. I am thinking the problem with Orcale LIB
Anybody knows how to link the clinet LDAP lib with proc programs, it
would help me a lot. waiting for ur
replay. The version of oracle is 9i.


Rajesh Pandry K
Phone: 2051259
                 _o            /\          ---- __o
              _-< \_          /  \        ---- <  \,
     /     __(_)/_(_)________/    \_______(_) /_(_)__