I *think* you want *either* //SYSLIB DD DSNAME=SYS1.SIEALNKE,DISP=SHR with no member name
*or* //LDAPOBJ DD DSNAME=SYS1.SIEALNKE(GLDCLDAP),DISP=SHR and INCLUDE LDAPOBJ as part of your SYSLIN stream of commands. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Henrique Seganfredo Sent: Tuesday, December 10, 2013 1:00 PM To: [email protected] Subject: Re: unresolvend references compiling C with LDAP functions Yes, the message I posted is from the prelinker. I am posting below the most relevante stuff I think. Yes, the unresolution is definitive at the link step, but I checked the libs and they are there! I am pasting the it below... JCL part: //LKED EXEC PGM=HEWL,REGION=0M,PARM='AMODE=31,RENT,MAP' ... //SYSLIB DD DSNAME=SYS1.SIEALNKE(GLDCLDAP),DISP=SHR I browsed the member GLDCLDAP and could search and find entries for the ldap_init, ldap_simple_bind_s, ldap_err2string and ldap_unbind_s functions. DSLIST SYS1.SIEALNKE CHARS 'LDAP' found Name Prompt Alias-of Size TTR AC AM RM _________ GLDCLDAP 000C1A38 000027 00 31 ANY BROWSE SYS1.SIEALNKE(GLDCLDAP) Line 00000189 Col 02514 ....... {...C_CODE ..:.... {...C_CODE ...h...D{...C_CODE dap_get_values_len..ldap_init..ldap_init_utf8..ldap_initialize_printable_table.. Compile CCNDRVR gives RC=0, prelink EDCPRLK gives RC=4 and linker HEWL RC = 8: E X T E R N A L S Y M B O L D I C T I O N A R Y TYPE ID ADDR LENGTH NAME SD 1 000000 000490 @STATICP PR 2 000000 00001C @STATIC SD 3 000000 000B44 CEEUOPT SD 4 000000 000008 @@DLLI LD 0 000088 000001 main ER 5 000000 CEESG003 UR 6 000000 ldap_init UR 7 000000 printf UR 8 000000 exit UR 9 000000 ldap_simple_bind_s UR 10 000000 ldap_err2string UR 11 000000 fprintf UR 12 000000 ldap_unbind_s ER 13 000000 CEESTART ER 13 000000 CEESTART SD 14 000000 000008 @@PPA2 SD 15 000000 00000C CEEMAIN ER 16 000000 EDCINPL * * * * * E N D O F C O M P I L A T I O N * * * * * ======================================================================== | Prelinker Map | | | | CPLINK:5694A01 V1 R13 M0 IBM LANGUAGE ENVIRONMENT 2013/12/10 15:25:56| ======================================================================== Command Options. . . . . : NONCAL NOMEMORY ER DUP MAP : NOOMVS NOUPCASE DYNAM ======================================================================== | Object Resolution Warnings | ======================================================================== WARNING EDC4015: Unresolved references are detected: CEEBETBL CEEROOTA CEESG003 @@GETFN EDCINPL ldap_init printf exit ldap_simple_bind_s ldap_err2string fprintf ldap_unbi nd_s ======================================================================== | File Map | ======================================================================== *ORIGIN FILE ID FILE NAME P 00001 DD:SYSIN IN 00002 *** DESCRIPTORS *** *ORIGIN: P=primary input PI=primary INCLUDE SI=secondary INCLUDE A=automatic call R=RENAME card L=C Library IN=internal ======================================================================== ======================================================================== | Writable Static Map | ======================================================================== OFFSET LENGTH FILE ID INPUT NAME 0 20 00002 <ldap_unbind_s> 20 20 00002 <fprintf> 40 20 00002 <ldap_err2string> 60 20 00002 <ldap_simple_bind_s> 80 20 00002 <exit> A0 20 00002 <printf> C0 20 00002 <ldap_init> E0 1C 00001 @STATIC ======================================================================== | ESD Map of Defined and Long Names | ======================================================================== | ESD Map of Defined and Long Names | ======================================================================== OUTPUT *REASON FILE ID ESD NAME INPUT NAME P 00001 CEESTART CEESTART P 00001 CEEMAIN CEEMAIN P 00001 CEEUOPT CEEUOPT D 00001 MAIN main P CEESG003 CEESG003 D LDAP@INI ldap_init D @@GETFN @@GETFN L PRINTF printf L EXIT exit D LDAP@SIM ldap_simple_bind_s D LDAP@ERR ldap_err2string D LDAP@ERR ldap_err2string L FPRINTF fprintf D LDAP@UNB ldap_unbind_s P EDCINPL EDCINPL *REASON: P=#pragma or reserved S=matches short name R=RENAME card L=C Library U=UPCASE option D=Default ============ E N D O F P R E - L I N K A G E M A P ============= z/OS V1 R13 BINDER 15:25:56 TUESDAY DECEMBER 10, 2013 BATCH EMULATOR JOB(SSTP001N) STEP(LKED ) PGM= HEWL IEW2278I B352 INVOCATION PARAMETERS - AMODE=31,NORENT,MAP IEW2456E 9207 SYMBOL LDAP@INI UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY. IEW2456E 9207 SYMBOL LDAP@SIM UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY. IEW2456E 9207 SYMBOL LDAP@ERR UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY. IEW2456E 9207 SYMBOL LDAP@UNB UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY. *** M O D U L E M A P *** ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
