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-26 04:48:19
|
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 c= all=20 tpinit(3c) with the TPMULTICONTEXTS flag set, even if the client is runni= ng=20 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_F= LAG); =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,=20 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 > > > > 4.2.2, > > > > > > but > > > > > > > > > > > when i > > > > > > > > > > > > > > > configure the php,can not include > > > > ext/tuxedo > > > > > > > > > subdir. And > > > > > > > > > > > > > > > found some errors in > > > > ext/tuxedo/config.m4 > > > > > > file,the > > > > > > > > > > > follows > > > > > > > > > > > > > > > files not found. > > > > > > > > PHP_ADD_LIBRARY(nwi) libnwi.so > > > > > > > > PHP_ADD_LIBRARY(nws) libnws.so > > > > > > > > PHP_ADD_LIBRARY(gp) libgp.so > > > > > > > > > > > > > > > > Could you tell me why? And how to > > > > resolve > > > > > > the > > > > > > > > > > > problems? > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > > > Best Regards. > > > > > > > > > > > > > > Did you re-build configure.in? > > > > > > > php-tuxedo is not built-in php extension > > > > so > > > > > > you must > > > > > > > > > > > re-build > > > > > > > configure.in by 'buildconf' script to use > > > > > > > php-tuxedo. > > > > > > > > > > > > > > README.EXT_SKEL in PHP's source will help > > > > you. > > > > > > :) > > > > : > > > > > > > -- > > > > > > > CheolMin Lee <cmlee @ > > > > users.sourceforge.net> > > > > > > <cmlee > > > > > > > > > > > @ kt.co.kr> > > > > > > > Homepage: http://tclab.kaist.ac.kr/~cmlee/ > > > > __________________________________________________ > > > > > > > > Do You Yahoo!? > > > > > > HotJobs - Search Thousands of New Jobs > > > > > > http://www.hotjobs.com > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > HotJobs - Search Thousands of New Jobs > > > http://www.hotjobs.com > > __________________________________________________ > Do You Yahoo!? > Yahoo! Finance - Get real-time stock quotes > http://finance.yahoo.com |