Re: [Php-tuxedo-development] Re: php-tuxedo module can not work
Status: Pre-Alpha
Brought to you by:
cdog1977
From: Brian F. <bf...@vi...> - 2002-08-30 01:26:13
|
Primarily the problem is in the base php-tuxedo code because the API doesn't permit the end user to=20 specify any multi-thread values, so you have to rely on our code. However to Tuxedo, it can't distinguish between the two. As an even quicker fix, tho much more temporary, just add 0x20 (hex) to the flags argument of the tux_tpinit call. 0x20 is the value of the=20 constant TPMULTICONTEXTS that the mentioned line of C code would define for you. Makes no difference how its set, but it looks like it needs to be set for Tuxedo >=3D 7.1. Brian On Thursday 29 August 2002 12:35 am, you wrote: > But could you tell me where is the problem in? In > tuxedo system or my programs(php or tuxedo services)? > > Thanks. > > --- Brian Foddy <bf...@vi...> wrote: > > I believe this could be the source of your problem. > > (If and only IF you are using Tuxedo >=3D 7.1) > > Another user found this same problem a while ago, > > and > > I'm real sorry I haven't found time to get it in a > > patch > > or new release. Just been so busy. > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > http://edocs.beasys.com/tuxedo/tux80/atmi/pbthr13.htm > > > "To join an application, a multithreaded Workstation > > client must always call > > tpinit(3c) with the TPMULTICONTEXTS flag set, even > > if the client is running > > in single-context mode." > > > > This looks like a new flag that I don't have a > > predefined > > value for, so add something like this to > > php_tuxedo.c and > > then use it in the flags: > > > > REGISTER_LONG_CONSTANT("TUX_TPMULTICONTEXTS", > > TPMULTICONTEXTS, CONSTANT_FLAG); > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > This user was using Tuxedo 8.0 and it fixed his > > problem, > > but would probably be the same > > for 7.1. If you are using 6.5 this is probably NOT > > your problem. > > > > Add this define to php_tuxedo.c (where all the other > > similar defines are) > > and then add TUX_TPMULTICONTEXTS to the flags of > > tux_tpinit. > > > > If this fixes your problem, sorry I haven't gotten > > around to > > getting a new version to fix this published. > > > > Let me know if this helps. > > Brian > > > > On Sunday 25 August 2002 11:18 pm, you wrote: > > > HI,Sir: > > > I have some problem in write the program. When > > > > i > > > > > used php program to connect the tuxedo services > > > > after > > > > > many times , the tux_tpinit(null,null,null,0) > > > > always > > > > > thrown the errors. And wait a miniute,the errors > > > > no > > > > > display. > > > My php client program used functions are : > > > tux_tpinit(null,null,null,0) > > > tux_tpcall("service",fml_buff,$fm_buff,1) > > > tux_tpfree(fml_buff) > > > tux_tpterm() > > > Are the errors relation with the threads. Could > > > > you > > > > > tell me? > > > > > > Thands > > > > > > --- Brian Foddy <bf...@vi...> wrote: > > > > Those libraries are provided in the Tuxedo > > > > package, > > > > > > not included with php-tuxedo or Redhat. If you > > > > don't > > > > have the Tuxedo libraries and header files for > > > > your > > > > > > platform, it will not work. > > > > > > > > Brian > > > > > > > > On Thu, 8 Aug 2002, Tom Stone wrote: > > > > > I have configured php more than 10 times.But > > > > it > > > > > > was > > > > > > > > > not included tuxedo modules. And then removed > > > > the > > > > > > > libnwi.so;libnws.so;libgp.so libraries,the > > > > > > > > configure > > > > > > > > > is ok. But when i configed the apache > > > > sever,the > > > > > > errors > > > > > > > > > was shown. What's the matter? And could you > > > > tell > > > > > > me > > > > > > > > > what are the three > > > > > libraries:libnwi.so;libnws.so;libgp.so. I can > > > > not > > > > > > find > > > > > > > > > them in RedHat 6.2. > > > > > Thanks. > > > > > > > > > > --- Brian Foddy <bf...@vi...> wrote: > > > > > > I have seen some times when buildconf will > > > > not > > > > > > pick > > > > > > > > > > up the > > > > > > new tuxedo/config.m4 file because it uses a > > > > > > date/time check similar > > > > > > to "make" looking for new files. Many times > > > > > > > > simply > > > > > > > > > > touch tuxedo/config.m4 (or equiv depending > > > > on > > > > > > what > > > > > > > > > > dir you are in) > > > > > > > > > > > > will correct the problem, then re-run the > > > > > > > > buildconf > > > > > > > > > > and > > > > > > configure. There is a couple lines of > > > > output in > > > > > > the > > > > > > > > > > configure > > > > > > script about Tuxedo, if you don't see those, > > > > its > > > > > > not > > > > > > > > > > including the > > > > > > module. > > > > > > > > > > > > Brian > > > > > > > > > > > > On Thu, 8 Aug 2002, CheolMin Lee wrote: > > > > > > > The information about your problem is > > > > > > > > insufficient > > > > > > > > > > so that I'm only > > > > > > > > > > > > > guessing it. > > > > > > > Can you provide some output from configure > > > > or > > > > > > make > > > > > > > > > > where the error is > > > > > > > > > > > > > occurred? > > > > > > > > > > > > > > On Wed, Aug 07, 2002 at 10:49:54PM -0700, > > > > Tom > > > > > > > > Stone wrote: > > > > > > > > sure,i used buildconf commnad,but > > > > problem > > > > > > was > > > > > > > > > > not > > > > > > > > > > > > > > resolved. And i did not found the follow > > > > the > > > > > > > > lib: > > > > > > > > libnwi.so > > > > > > > > libnws.so > > > > > > > > libgp.so > > > > > > > > > > > > > > > > > > > > > > > > --- CheolMin Lee > > > > > > > > <cm...@us...> > > > > > > > > > > wrote: > > > > > > > > > On Mon, Aug 05, 2002 at 01:21:28AM > > > > -0700, > > > > > > > > jackliu > > > > > > > > > > > > > > > wrote: > > > > > > > > > > I use php-tuxedo module 0.4.1 in php > > =3D=3D=3D message truncated =3D=3D=3D > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Finance - Get real-time stock quotes > http://finance.yahoo.com |