RE: Thread Support nor working
Posted in 2005
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 sending to informix-list