Re: Mainframe C Link Step Error - using pthread (POSIX)
LE pthread functions are mapped to names starting with @@PT*. You can see this by browing pthread.h and checking the #pragma map(pthread, ... ) statements. I would suggest that you are calling a pthread function that is not declared. Because you're using the pre-linker you should check to pre-linker output to see what the unresolved symbol is. Binder error messages are practically useless if you use the pre-linker. On 28/05/2011 3:00 AM, John Weber wrote: We are receiving an 8 on our linking of a C module on the mainframe (z/os 1.7) The error is: IEW2456E 9207 SYMBOL PTHREAD@ UNRESOLVED. Does a library need to be included in our link's syslib? Thank you! -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Mainframe C Link Step Error - using pthread (POSIX)
On Fri, 27 May 2011 12:10:33 -0700, John Weber wrote: >Here is the link step. Thanks! > > 77 //LKED EXEC PGM=HEWL,COND=(4,LT,COMPILE), > 78 //REGION=&LREGSIZ,PARM='&LPARM' > 79 //SYSLIB DD DSNAME=TCPIP.SEZACMTX,DISP=SHR > 80 // DD DSNAME=&LIBPRFX..SCEELKED,DISP=SHR > 81 //SYSPRINT DD SYSOUT=* > 82 //SYSLIN DD DSNAME=*.COMPILE.SYSLIN,DISP=(OLD,DELETE) > 83 // DD DDNAME=SYSIN > 84 //SYSLMOD DD DSNAME=&OUTFILE > 85 //SYSUT1 DD UNIT=&TUNIT.,SPACE=&TSPACE. > 86 //SYSINDD DUMMY > Looks like you may be missing the CEE.SCEELKEX May depend on if you use the prelinker or not... or CEE.SCEELIB if you use XPLINK. Cheers, Jantje. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Mainframe C Link Step Error - using pthread (POSIX)
We believe this module needs to be dynamically linked for the purposes of utilizing sockets. If you don't mind, could you briefly explain hard-linking (static?) versus dynamic-linked with regard to this? Thank you... -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Staller, Allan Sent: Friday, May 27, 2011 1:25 PM To: IBM-MAIN@bama.ua.edu Subject: Re: Mainframe C Link Step Error - using pthread (POSIX) The IEW2456E says module not in SYSLIB/SYSLIN. I checked the C and LE libraries and could not find PTHREAD@ (lots of refs in the COMPILER/RUN TIME LIB docs). This can most likely be fixed in one of 2 ways depending on what is desired. If you really want PTHREAD@ hard-linked in you LMOD, I would suggest using the pre-linker to see if this resolves the issue. (actually the pre-linker might be needed in either case. Not sure.) If you don't want PTHREAD hard-linked, then add NCAL to LPARM=. This will force a dynamic call to PTHREAD@. If PTHREAD still cannot be found, you will get an execution error (S0C4, S0C1) which will show up as a U4038/9 error and an LE dump. I presume you are familiar with the trade-offs between hard-linking and dynamically calling a module. HTH, 77 //LKED EXEC PGM=HEWL,COND=(4,LT,COMPILE), 78 //REGION=&LREGSIZ,PARM='&LPARM' 79 //SYSLIB DD DSNAME=TCPIP.SEZACMTX,DISP=SHR 80 // DD DSNAME=&LIBPRFX..SCEELKED,DISP=SHR 81 //SYSPRINT DD SYSOUT=* 82 //SYSLIN DD DSNAME=*.COMPILE.SYSLIN,DISP=(OLD,DELETE) 83 // DD DDNAME=SYSIN 84 //SYSLMOD DD DSNAME=&OUTFILE 85 //SYSUT1 DD UNIT=&TUNIT.,SPACE=&TSPACE. 86 //SYSINDD DUMMY >We are receiving an 8 on our linking of a C module on the mainframe (z/os 1.7) > >The error is: IEW2456E 9207 SYMBOL PTHREAD@ UNRESOLVED. > >Does a library need to be included in our link's syslib? -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Mainframe C Link Step Error - using pthread (POSIX)
The IEW2456E says module not in SYSLIB/SYSLIN. I checked the C and LE libraries and could not find PTHREAD@ (lots of refs in the COMPILER/RUN TIME LIB docs). This can most likely be fixed in one of 2 ways depending on what is desired. If you really want PTHREAD@ hard-linked in you LMOD, I would suggest using the pre-linker to see if this resolves the issue. (actually the pre-linker might be needed in either case. Not sure.) If you don't want PTHREAD hard-linked, then add NCAL to LPARM=. This will force a dynamic call to PTHREAD@. If PTHREAD still cannot be found, you will get an execution error (S0C4, S0C1) which will show up as a U4038/9 error and an LE dump. I presume you are familiar with the trade-offs between hard-linking and dynamically calling a module. HTH, 77 //LKED EXEC PGM=HEWL,COND=(4,LT,COMPILE), 78 //REGION=&LREGSIZ,PARM='&LPARM' 79 //SYSLIB DD DSNAME=TCPIP.SEZACMTX,DISP=SHR 80 // DD DSNAME=&LIBPRFX..SCEELKED,DISP=SHR 81 //SYSPRINT DD SYSOUT=* 82 //SYSLIN DD DSNAME=*.COMPILE.SYSLIN,DISP=(OLD,DELETE) 83 // DD DDNAME=SYSIN 84 //SYSLMOD DD DSNAME=&OUTFILE 85 //SYSUT1 DD UNIT=&TUNIT.,SPACE=&TSPACE. 86 //SYSINDD DUMMY >We are receiving an 8 on our linking of a C module on the mainframe (z/os 1.7) > >The error is: IEW2456E 9207 SYMBOL PTHREAD@ UNRESOLVED. > >Does a library need to be included in our link's syslib? -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Mainframe C Link Step Error - using pthread (POSIX)
Here is the link step. Thanks! 77 //LKED EXEC PGM=HEWL,COND=(4,LT,COMPILE), 78 //REGION=&LREGSIZ,PARM='&LPARM' 79 //SYSLIB DD DSNAME=TCPIP.SEZACMTX,DISP=SHR 80 // DD DSNAME=&LIBPRFX..SCEELKED,DISP=SHR 81 //SYSPRINT DD SYSOUT=* 82 //SYSLIN DD DSNAME=*.COMPILE.SYSLIN,DISP=(OLD,DELETE) 83 // DD DDNAME=SYSIN 84 //SYSLMOD DD DSNAME=&OUTFILE 85 //SYSUT1 DD UNIT=&TUNIT.,SPACE=&TSPACE. 86 //SYSINDD DUMMY -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Lizette Koehler Sent: Friday, May 27, 2011 12:05 PM To: IBM-MAIN@bama.ua.edu Subject: Re: Mainframe C Link Step Error - using pthread (POSIX) > >We are receiving an 8 on our linking of a C module on the mainframe (z/os 1.7) > >The error is: IEW2456E 9207 SYMBOL PTHREAD@ UNRESOLVED. > >Does a library need to be included in our link's syslib? > >Thank you! Can you post your JCL for your LKED step? Lizette -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Mainframe C Link Step Error - using pthread (POSIX)
> >We are receiving an 8 on our linking of a C module on the mainframe (z/os 1.7) > >The error is: IEW2456E 9207 SYMBOL PTHREAD@ UNRESOLVED. > >Does a library need to be included in our link's syslib? > >Thank you! Can you post your JCL for your LKED step? Lizette -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Mainframe C Link Step Error - using pthread (POSIX)
We are receiving an 8 on our linking of a C module on the mainframe (z/os 1.7) The error is: IEW2456E 9207 SYMBOL PTHREAD@ UNRESOLVED. Does a library need to be included in our link's syslib? Thank you! -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html