RE: Thread Support nor working
Posted in 2005
Srini, I think you can set THREADLIB=dce & get away with using posix threads. It doesn't matter to much to the precompiler, it just generates threadsafe code (changes to the use of errno type variables). I think IDS 64 bit would be 7.31.FC6, not UC6, not so sure now that i think of it. Many people on the list know the meaning of the number in the version. Listers... > -----Original Message----- > From: Srinivas Sreekumar [mailto:SRINIVAS_SK@infosys.com] > Sent: 16 February 2005 13:40 > To: Willem Roos > Subject: RE: Thread Support nor working > > Hi Willem, > Thanks for your reply. > Can you please let me know the value that I need to set for the env > variable THREADLIB . > Also how to check whether the IDS is 64 bit of 32 bit ? > > Thanks, > Srini > > -----Original Message----- > From: Willem Roos [mailto:wroos@shoprite.co.za] > Sent: Wednesday, February 16, 2005 3:02 PM > To: Srinivas Sreekumar; informix-list@iiug.org > Subject: RE: Thread Support nor working > > > Srini, > > Did you check thread support for your ESQL/C compiler. Older versions > only support DCE threads & not POSIX threads - don't know if this has > changed. > > You have to specify the -thread flag to esqlc (i don't see it in your > makefile) & set the THREADLIB environment variable. > > PS: Are you running 32bit IDS on 64bit HP/UX? Why don't you upgrade? > > > -----Original Message----- > > From: owner-informix-list@iiug.org > > > [mailto:owner-informix-list@iiug.org] On Behalf Of Srinivas > Sreekumar > > Sent: 16 February 2005 08:41 > > To: informix-list@iiug.org > > Subject: Thread Support nor working > > Importance: High > > > > > Dear All, > > > > > On our development machine, we are facing an issue in implementing > > thread support . The program is receiving SQL error 931 when it is > > linked with "-thread" option. We are using POSIX thread > > > library. PFA the > > details of the problem in the mail communication below. > > > > > > Informix version : Informix Dynamic Server Version > 7.31.UC6AX7 OS : HP > > > UX 11.00 (64 bit)with latest Dec 2004 Patch bundle installed. > > > > > Please find attached a sample POC for the problem. > > > > > The zip file contains a simple 1.ec program which simply > > > connects to the > > Database and logs sqlca.sqlcode and sqlca.sqlerrd[1] (ISAM code). > > > > > PFA a makefile which creates 2 exes, > > - 1_with_thread: (With -thread option, this exe is giving > error 931.) > > - 1_no_thread: (Without -thread option, this exe is working > properly.) > > > > > Also pfa Ifxversions file(txt format), which lists the > > > relevant versions > > of Informix tools. (ESQL/C4GL/Form4gl etc.) > > > > > Please let me know if anyone has faced this issue or know the > > resolution. > > > > > Thanks in advance. > > > > > Srini > > - > > > > > Disclaimer > > http://www.shoprite.co.za/disclaimer.html > > Disclaimer http://www.shoprite.co.za/disclaimer.html