Date: Sat, 10 Sep 2005 21:43:53 -0700 From: Vizion <vizion@vizion.occoxmail.com> To: freebsd-questions@freebsd.org Cc: php-general@lists.php.net, Norberto Meijome <freebsd@meijome.net>, ale@FreeBSD.org, Kris Kennaway <kris@obsecurity.org> Subject: Re: PHP on FreeBSD - Compiler Bugs and Option selection Message-ID: <200509102143.55110.vizion@vizion.occoxmail.com> In-Reply-To: <200509101253.54752.vizion@vizion.occoxmail.com> References: <200509101249.47204.vizion@vizion.occoxmail.com> <200509101253.54752.vizion@vizion.occoxmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 10 September 2005 12:53, the author Vizion contributed to the= =20 dialogue on- Re: PHP on FreeBSD - Compiler Bugs and Option selection:=20 >On Saturday 10 September 2005 12:49, the author Vizion contributed to the >dialogue on- > > PHP on FreeBSD - Compiler Bugs and Option selection: >>Hi ale >> >>I just wanted to check you had received OK the two compiler errors that I >>reported for /usr/ports/lang/php5-extensions. >> >>The first error was apparently caused by make expecting libmagic in an >>incorrect path for FreeBSD 5.3. Once a copy was placed in the correct path >>compilation resumed. > >I meant to say that full credit should be given to >Kris Kennaway <kris@obsecurity.org> who made the suggestion to >copy /usr/src/contrib/file/magic.h to >/usr/include/magic.h >and see if it works. Which it did. > >>The second error seems also to be caused by an inability to find requisite >>files for wddx. >>ext/xml/expat_compat.h >>ext/xml/php >> >>As a result of compiling php5 I began to wonder whether it would be >> helpful to users if : >>drwxr-xr-x 3 root wheel 512 May 2 07:06 php5-cli >>drwxr-xr-x 3 root wheel 512 Sep 9 18:00 php5-extensions >>drwxr-xr-x 3 root wheel 512 May 28 10:06 php_doc >>were more integrated as choices within make for php5. >> >>I would personally find it helpful if all the build options for php could >> be in an editable file for sysadmins to define a repeatable unattended >> build from all available build options. A closer integration of the >> subsidiary php5 ports into the php5 make would facilitate this process. >> >>I do not not how welcome these proposals might be or how easy it would be >> to make the changes but would be interested to know what others think. >> >>Norberto Meijome <freebsd@meijome.net> made a very interesting suggestion >> that he uses on his servers to achieve the above goal. He >>uses /usr/local/etc/pkgtools.conf for that purpose but my preference would >> be to have a method that is particular to php and does not lead to an >>overloading of /usr/local/etc/pkgtools.conf. >> >>I have copied Norbeto's example below: >>****************** Quote******************************* >>-if you want to avoid having to choose by hand what you really >>-want( or have it preconfigured so all you have to do is press OK, then >>-use something like /usr/local/etc/pkgtools.conf which will be read by >>-portinstall (sysutils/port-maintenance-tools/) >>-my relevant sections for my servers are: >>- >>---- >>- =A0 =A0 'php4-*' =3D- [ >>- =A0 =A0 =A0 =A0 'WITH_APACHE2=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_DEBUG=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_BCMATH=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_BZ2=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_CALENDAR=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_CRACK=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_CTYPE=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_CURL=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_DBA=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_DBASE=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_DBX=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_DIO=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_DOMXML=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_EXIF=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_FILEINFO=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_FILEPRO=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_FRIBIDI=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_FTP=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_GD=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_GETTEXT=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_GMP=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_ICONV=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_IMAGICK=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_IMAP=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_INTERBASE=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_LDAP=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_MBSTRING=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_MCAL=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_MCRYPT=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_MCVE=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_MHASH=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_MING=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_MNOGOSEARCH=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_MSSQL=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_MYSQL=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_NCURSES=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_ODBC=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_OPENSSL=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_ORACLE=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_OVERLOAD=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_PANDA=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_PCNTL=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_PCRE=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_PDF=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_PGSQL=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_POSIX=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_PSPELL=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_READLINE=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_RECODE=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_SESSION=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_SHMOP=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_SNMP=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_SOCKETS=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_SYBASE_CT=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_SYSVMSG=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_SYSVSEM=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_SYSVSHM=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_TOKENIZER=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_WDDX=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_XML=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_XMLRPC=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_XSLT=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_YAZ=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_YP=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_ZIP=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_ZLIB=3Dtrue', >>- =A0 =A0 =A0 =A0 ], >>- =A0 =A0 'php4-dba-*' =3D- [ >>- =A0 =A0 =A0 =A0 'WITH_CDB=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_DB4=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_GDBM=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_INIFILE=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_FLATFILE=3Dtrue', >>- =A0 =A0 =A0 =A0 ], >>- =A0 =A0 'php4-gd-*' =3D- [ >>- =A0 =A0 =A0 =A0 'WITH_T1LIB=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_TRUETYPE=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITHOUT_JIS=3Dtrue', >>- =A0 =A0 =A0 =A0 'WITH_LZW=3Dtrue', >>- =A0 =A0 =A0 =A0 ], >>- =A0 =A0 'php4-mbstring-*' =3D- [ >>- =A0 =A0 =A0 =A0 'WITH_REGEX=3Dtrue', >>- =A0 =A0 =A0 =A0 ], >>*************End Quote*************************** >> >>I also wonder why the Makefile, by default, uses the --disable-all option >> in the Makefile with no option to remove it. I have now heard from uasers at the smf forum that some php programmes read= =20 the settings which are from phpinfo(). If --disable-all option is set then= =20 this is taken as a flag that php does not have sessions enabled even when i= t=20 may have been enabled at a later stage of the build. This problem has=20 accounted for some errors on php programs. Smf fails on php5 on freebsd 5.3= &=20 5.4. When --disable-all option is removed one freebsd user reported that th= e=20 bug phpbb then ran fine. I do not know whether the problem applies to all=20 configs - but it does seem to be there.=20 So I really fo think something needs to be done about this. My question is= =20 would simply removing it from the make file cause build problems as things= =20 now stand. >> >>I would be interested in what others have to say and would like to place = on >>record my appreciation for all your work in maintaining the ports. >> >>david =2D-=20 40 yrs navigating and computing in blue waters. English Owner & Captain of British Registered 60' bluewater Ketch S/V Tauru= s. Currently in San Diego, CA. Sailing bound for Europe via Panama Canal afte= r=20 completing engineroom refit.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509102143.55110.vizion>