Subject: | |
From: | |
Reply To: | |
Date: | Thu, 25 Oct 2001 14:46:18 -0600 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hello,
Any help would be appreciated.
I have tried the following:
gcc-2.95.2 -o ldapauth ldapauth.c -DMPE -D_SOCKET_SOURCE -D_MPEXL_SOURCE
-D_POSIX_SOURCE -I../include -L../lib -lldap -llber
This will build the file ldapauth as NMPRG as expected. What I really
need is an NMXL.
so, if change the comiple to
gcc-2.95.2 -c ldapauth.c -DMPE -D_SOCKET_SOURCE -D_MPEXL_SOURCE
-D_POSIX_SOURCE -I../include -L../lib -lldap -llber
I get the following warning - which are expected.
gcc-2.95.2: -lldap: linker input file unused since linking not done
gcc-2.95.2: -llber: linker input file unused since linking not done
I do get ldapauth.o(a NMOBJ file) which I can add into my XL with
linkedit.
LinkEd> buildxl ldapxl
LinkEd> addxl from=^myz;to=ldapxl
1 OBJECT FILE HAS BEEN ADDED.
LinkEd> listxl ldapxl
LIBRARY NAME : LDAPXL
XL LIST :
VERSION : 85082112
MODULE COUNT : 1
MODULE LIMIT : 500
MODULE NAME START LENGTH
----------- ----- ------
/SHEEHAN/PUB/ldapsdk/examples/ldapauth 00129000 000034F0
MODULE NAME : /SHEEHAN/PUB/ldapsdk/examples/ldapauth
TEXT SIZE : 00000940
DATA SIZE : 0000004C
VERSION : 87102412
LENGTH : 000034F0
SHARED DATA : NO
Sym C H X P Sym Sym Sym Lset
Name Type Scope Value Name
---- - - - - ---- ----- ----- ----
ldapauth 0 3 3 entry univ 0012B000
$RECOVER_END 0 code univ 0012B940
$RECOVER_START 0 code univ 0012B940
$UNWIND_END 0 code univ 0012B930
$UNWIND_START 0 code univ 0012B920
ldapauth 0 code univ 0012B15C
M$15 0 data local dp+00000000
free 0 stub ext lp+000000C0
ldap_init 0 stub ext lp+00000120
ldap_simple_bind_s 0 stub ext lp+00000100
ldap_unbind 0 stub ext lp+00000140
malloc 0 stub ext lp+000000E0
strcat 0 stub ext lp+000000A0
strcpy 0 stub ext lp+00000020
strlen 0 stub ext lp+00000040
strncat 0 stub ext lp+00000060
strtok 0 stub ext lp+00000080
As is shown, ldap_init is an external stub. Which also makes sense,
since it wasn't included in the compile.
If I try to use the XL, I will get the famous "DYNAMIC LOADING
UNRESOLVED EXTERNAL: ldap_init"
Ok, now I try to link in the RL's which define the external stubs.
LinkEd> addxl from=^myz;to=ldapxl;merge;rl= .....
I keep adding NMRL's but still end up with further unresolved externals.
It seems like I'm headed down the wrong path!
Can someone point me in the right direction.
TIA,
--
Richard Sheehan,
Administrative Systems - IT Programmer Analyst
Idaho State University Computing & Communications
Campus Box 8037, Pocatello, ID 83209-8037
Phone: 208.282.3861 - Fax: 208.282.3673
Email: [log in to unmask]
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|