Re: [PHP] RE: Clean PHP 5.2.12 Build Core Dumping / Can't Build Port - FreeBSD 6.1
I think Vasily Pupkin is right. http://www.freebsd.org/cgi/cvsweb.cgi/ports/Mk/bsd.port.mk.diff?r1=1.630;r2=1.631;f=h Found {portsdir}/Mk/bsd.port.mk and make sure the version is higher than 1.631(2009/12/18) In another side,your are use *default tag=. in your supfile or /etc/make.conf? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html mybe you need to use *default tag=RELEASE_6_1_0 http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/php5/?only_with_tag=RELEASE_6_1_0 php5.x for freebsd 6.1 2010/1/16 Vasily Pupkin poopk...@mail.ru: add X11BASE=${LOCALBASE} as it is shown below: #echo X11BASE=${LOCALBASE} /etc/make.conf The problem is in recent changeset for ports/Mk/bsd.port.mk: (http://www.freebsd.org/cgi/cvsweb.cgi/ports/Mk/bsd.port.mk.diff?r1=1.630;r2=1.631;f=h) ..if ${X11BASE} != ${LOCALBASE} ..BEGIN: @${ECHO_MSG} X11BASE is now deprecated. Unset X11BASE in make.conf and try again. @${FALSE} ..endif The guy commited the revision couldn't imagine that there is no X11BASE on system defined at all while LOCALBASE is defined. This bug should be fixed soon because a lot of people will stuck with it after ports upgrade. === I try a 'make all-depend-list' the error shows up = which error show ? # make X11BASE is now deprecated. Unset X11BASE in make.conf and try again. *** Error code 1 Stop. That's the error... happens every time, no matter what I try to set/unset in /etc/make.conf. I looked through the makefiles to see where X11BASE is referenced and I can't find any place where it is to just kill it. This is _exactly_ what I did, and as soon as I try a 'make all- depend-list' the error shows up. I don't even have the X11 system installed (it's a headless server, with no GUI). This is on a CLEAN 6.1 install, without any upgrades/patches, just straight off the ISO install and after a portsnap install/extract. I tried building it _before_ I updated the ports and it would build a 5.1.2 php ok, but I need 5.2.12. Something has changed in the port between 5.1.2 and 5.2.12 1.add WITHOUT_X11=yes in /etc/make.conf 2.remove X11BASE= from that file and 4.make all-depend-list 5.make clean all depend soft 6.make menuconfig set X11 disable 7.make make install 2010/1/12 Don O'Neil li...@lizardhill.com: Ok.. just for grins I installed a new instance of 6.1, NO Patches, just straight off the ISO... I loaded the ports that came WITH the distro, and was able to make php 5.1.2 ok... When I did a portsnap fetch, portsnap extract, then went into the /usr/ports/lang/php5 and just typed make I get the same error... SO as it seems, the port is broken, at least for working with FreeBSD 6.1. Can anyone give me some hints on how to build this sucker by hand? Seems as though there are a bunch of patches that are referenced in the distinfo file. I REALLY need to get this taken care of asap, any help is appreciated. Thanks! I tried adding WITHOUT_X11=yes to /etc/make.conf as well as X11BASE= and X11BASE=, but I still get the same error. Remove them. This makes sure they are not defined, not even empty (as in #define BLA - symbol 'BLA' is defined). Where to go from here? Do I have and old version of something that is causing this? I get this error _right away_ before anything is even built. It seems to be a check by the Makefile at port's top level. Ok... I have no definition for X11BASE anywhere, not in my env, not in my /etc/make.conf, nowhwere... However, it's still complaining about X11BASE being deprecated. I tried just adding WITHOUT_X11=yes in /etc/make, and without it. I even searched all the Makefiles in /usr/ports, and in the /usr/ports/lang/php5 dir to find any reference to X11, or X, or X11BASE, but nada... I don't even know where this error message is being generated from. I can't even do a basic make without it immediately spitting out the error: # make X11BASE is now deprecated. Unset X11BASE in make.conf and try again. *** Error code 1 Stop. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: [PHP] RE: Clean PHP 5.2.12 Build Core Dumping / Can't Build Port - FreeBSD 6.1
=== I try a 'make all-depend-list' the error shows up = which error show ? 2010/1/13 Don O'Neil li...@lizardhill.com: This is _exactly_ what I did, and as soon as I try a 'make all-depend-list' the error shows up. I don't even have the X11 system installed (it's a headless server, with no GUI). This is on a CLEAN 6.1 install, without any upgrades/patches, just straight off the ISO install and after a portsnap install/extract. I tried building it _before_ I updated the ports and it would build a 5.1.2 php ok, but I need 5.2.12. Something has changed in the port between 5.1.2 and 5.2.12 1.add WITHOUT_X11=yes in /etc/make.conf 2.remove X11BASE= from that file and 4.make all-depend-list 5.make clean all depend soft 6.make menuconfig set X11 disable 7.make make install 2010/1/12 Don O'Neil li...@lizardhill.com: Ok.. just for grins I installed a new instance of 6.1, NO Patches, just straight off the ISO... I loaded the ports that came WITH the distro, and was able to make php 5.1.2 ok... When I did a portsnap fetch, portsnap extract, then went into the /usr/ports/lang/php5 and just typed make I get the same error... SO as it seems, the port is broken, at least for working with FreeBSD 6.1. Can anyone give me some hints on how to build this sucker by hand? Seems as though there are a bunch of patches that are referenced in the distinfo file. I REALLY need to get this taken care of asap, any help is appreciated. Thanks! I tried adding WITHOUT_X11=yes to /etc/make.conf as well as X11BASE= and X11BASE=, but I still get the same error. Remove them. This makes sure they are not defined, not even empty (as in #define BLA - symbol 'BLA' is defined). Where to go from here? Do I have and old version of something that is causing this? I get this error _right away_ before anything is even built. It seems to be a check by the Makefile at port's top level. Ok... I have no definition for X11BASE anywhere, not in my env, not in my /etc/make.conf, nowhwere... However, it's still complaining about X11BASE being deprecated. I tried just adding WITHOUT_X11=yes in /etc/make, and without it. I even searched all the Makefiles in /usr/ports, and in the /usr/ports/lang/php5 dir to find any reference to X11, or X, or X11BASE, but nada... I don't even know where this error message is being generated from. I can't even do a basic make without it immediately spitting out the error: # make X11BASE is now deprecated. Unset X11BASE in make.conf and try again. *** Error code 1 Stop. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.725 / Virus Database: 270.14.136/2616 - Release Date: 01/11/10 23:35:00 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: [PHP] RE: Clean PHP 5.2.12 Build Core Dumping / Can't Build Port - FreeBSD 6.1
=== I try a 'make all-depend-list' the error shows up = which error show ? # make X11BASE is now deprecated. Unset X11BASE in make.conf and try again. *** Error code 1 Stop. That's the error... happens every time, no matter what I try to set/unset in /etc/make.conf. I looked through the makefiles to see where X11BASE is referenced and I can't find any place where it is to just kill it. This is _exactly_ what I did, and as soon as I try a 'make all- depend-list' the error shows up. I don't even have the X11 system installed (it's a headless server, with no GUI). This is on a CLEAN 6.1 install, without any upgrades/patches, just straight off the ISO install and after a portsnap install/extract. I tried building it _before_ I updated the ports and it would build a 5.1.2 php ok, but I need 5.2.12. Something has changed in the port between 5.1.2 and 5.2.12 1.add WITHOUT_X11=yes in /etc/make.conf 2.remove X11BASE= from that file and 4.make all-depend-list 5.make clean all depend soft 6.make menuconfig set X11 disable 7.make make install 2010/1/12 Don O'Neil li...@lizardhill.com: Ok.. just for grins I installed a new instance of 6.1, NO Patches, just straight off the ISO... I loaded the ports that came WITH the distro, and was able to make php 5.1.2 ok... When I did a portsnap fetch, portsnap extract, then went into the /usr/ports/lang/php5 and just typed make I get the same error... SO as it seems, the port is broken, at least for working with FreeBSD 6.1. Can anyone give me some hints on how to build this sucker by hand? Seems as though there are a bunch of patches that are referenced in the distinfo file. I REALLY need to get this taken care of asap, any help is appreciated. Thanks! I tried adding WITHOUT_X11=yes to /etc/make.conf as well as X11BASE= and X11BASE=, but I still get the same error. Remove them. This makes sure they are not defined, not even empty (as in #define BLA - symbol 'BLA' is defined). Where to go from here? Do I have and old version of something that is causing this? I get this error _right away_ before anything is even built. It seems to be a check by the Makefile at port's top level. Ok... I have no definition for X11BASE anywhere, not in my env, not in my /etc/make.conf, nowhwere... However, it's still complaining about X11BASE being deprecated. I tried just adding WITHOUT_X11=yes in /etc/make, and without it. I even searched all the Makefiles in /usr/ports, and in the /usr/ports/lang/php5 dir to find any reference to X11, or X, or X11BASE, but nada... I don't even know where this error message is being generated from. I can't even do a basic make without it immediately spitting out the error: # make X11BASE is now deprecated. Unset X11BASE in make.conf and try again. *** Error code 1 Stop. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: [PHP] RE: Clean PHP 5.2.12 Build Core Dumping / Can't Build Port - FreeBSD 6.1
1.add WITHOUT_X11=yes in /etc/make.conf 2.remove X11BASE= from that file and 4.make all-depend-list 5.make clean all depend soft 6.make menuconfig set X11 disable 7.make make install 2010/1/12 Don O'Neil li...@lizardhill.com: Ok.. just for grins I installed a new instance of 6.1, NO Patches, just straight off the ISO... I loaded the ports that came WITH the distro, and was able to make php 5.1.2 ok... When I did a portsnap fetch, portsnap extract, then went into the /usr/ports/lang/php5 and just typed make I get the same error... SO as it seems, the port is broken, at least for working with FreeBSD 6.1. Can anyone give me some hints on how to build this sucker by hand? Seems as though there are a bunch of patches that are referenced in the distinfo file. I REALLY need to get this taken care of asap, any help is appreciated. Thanks! I tried adding WITHOUT_X11=yes to /etc/make.conf as well as X11BASE= and X11BASE=, but I still get the same error. Remove them. This makes sure they are not defined, not even empty (as in #define BLA - symbol 'BLA' is defined). Where to go from here? Do I have and old version of something that is causing this? I get this error _right away_ before anything is even built. It seems to be a check by the Makefile at port's top level. Ok... I have no definition for X11BASE anywhere, not in my env, not in my /etc/make.conf, nowhwere... However, it's still complaining about X11BASE being deprecated. I tried just adding WITHOUT_X11=yes in /etc/make, and without it. I even searched all the Makefiles in /usr/ports, and in the /usr/ports/lang/php5 dir to find any reference to X11, or X, or X11BASE, but nada... I don't even know where this error message is being generated from. I can't even do a basic make without it immediately spitting out the error: # make X11BASE is now deprecated. Unset X11BASE in make.conf and try again. *** Error code 1 Stop. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: [PHP] RE: Clean PHP 5.2.12 Build Core Dumping / Can't Build Port - FreeBSD 6.1
This is _exactly_ what I did, and as soon as I try a 'make all-depend-list' the error shows up. I don't even have the X11 system installed (it's a headless server, with no GUI). This is on a CLEAN 6.1 install, without any upgrades/patches, just straight off the ISO install and after a portsnap install/extract. I tried building it _before_ I updated the ports and it would build a 5.1.2 php ok, but I need 5.2.12. Something has changed in the port between 5.1.2 and 5.2.12 1.add WITHOUT_X11=yes in /etc/make.conf 2.remove X11BASE= from that file and 4.make all-depend-list 5.make clean all depend soft 6.make menuconfig set X11 disable 7.make make install 2010/1/12 Don O'Neil li...@lizardhill.com: Ok.. just for grins I installed a new instance of 6.1, NO Patches, just straight off the ISO... I loaded the ports that came WITH the distro, and was able to make php 5.1.2 ok... When I did a portsnap fetch, portsnap extract, then went into the /usr/ports/lang/php5 and just typed make I get the same error... SO as it seems, the port is broken, at least for working with FreeBSD 6.1. Can anyone give me some hints on how to build this sucker by hand? Seems as though there are a bunch of patches that are referenced in the distinfo file. I REALLY need to get this taken care of asap, any help is appreciated. Thanks! I tried adding WITHOUT_X11=yes to /etc/make.conf as well as X11BASE= and X11BASE=, but I still get the same error. Remove them. This makes sure they are not defined, not even empty (as in #define BLA - symbol 'BLA' is defined). Where to go from here? Do I have and old version of something that is causing this? I get this error _right away_ before anything is even built. It seems to be a check by the Makefile at port's top level. Ok... I have no definition for X11BASE anywhere, not in my env, not in my /etc/make.conf, nowhwere... However, it's still complaining about X11BASE being deprecated. I tried just adding WITHOUT_X11=yes in /etc/make, and without it. I even searched all the Makefiles in /usr/ports, and in the /usr/ports/lang/php5 dir to find any reference to X11, or X, or X11BASE, but nada... I don't even know where this error message is being generated from. I can't even do a basic make without it immediately spitting out the error: # make X11BASE is now deprecated. Unset X11BASE in make.conf and try again. *** Error code 1 Stop. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.725 / Virus Database: 270.14.136/2616 - Release Date: 01/11/10 23:35:00 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: [PHP] RE: Clean PHP 5.2.12 Build Core Dumping / Can't Build Port - FreeBSD 6.1
Ok.. just for grins I installed a new instance of 6.1, NO Patches, just straight off the ISO... I loaded the ports that came WITH the distro, and was able to make php 5.1.2 ok... When I did a portsnap fetch, portsnap extract, then went into the /usr/ports/lang/php5 and just typed make I get the same error... SO as it seems, the port is broken, at least for working with FreeBSD 6.1. Can anyone give me some hints on how to build this sucker by hand? Seems as though there are a bunch of patches that are referenced in the distinfo file. I REALLY need to get this taken care of asap, any help is appreciated. Thanks! I tried adding WITHOUT_X11=yes to /etc/make.conf as well as X11BASE= and X11BASE=, but I still get the same error. Remove them. This makes sure they are not defined, not even empty (as in #define BLA - symbol 'BLA' is defined). Where to go from here? Do I have and old version of something that is causing this? I get this error _right away_ before anything is even built. It seems to be a check by the Makefile at port's top level. Ok... I have no definition for X11BASE anywhere, not in my env, not in my /etc/make.conf, nowhwere... However, it's still complaining about X11BASE being deprecated. I tried just adding WITHOUT_X11=yes in /etc/make, and without it. I even searched all the Makefiles in /usr/ports, and in the /usr/ports/lang/php5 dir to find any reference to X11, or X, or X11BASE, but nada... I don't even know where this error message is being generated from. I can't even do a basic make without it immediately spitting out the error: # make X11BASE is now deprecated. Unset X11BASE in make.conf and try again. *** Error code 1 Stop. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Clean PHP 5.2.12 Build Core Dumping
On Sat, 9 Jan 2010 16:52:57 -0800, Don O'Neil li...@lizardhill.com wrote: Ok... well, your idea is a good one, but it seems that the port is broken. I did a port update, which brought in the latest php build info from December, but when I run 'make' (without even editing the Makefile to add my own other modules I need) I get this: X11BASE is now deprecated. Unset X11BASE in make.conf and try again. *** Error code 1 Not even sure where it's getting that error message from, since I can't find any reference to X11BASE in any of the files in the package, or in my env. Any ideas? Have you checked /etc/make.conf? For X applications, there's no X11BASE anymore because the difference between /usr/local and /usr/X11R6 has been obsoleted by putting everything into /usr/local (which is correct according to FreeBSD's software management concept). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Clean PHP 5.2.12 Build Core Dumping
On Sat, 09 Jan 2010 22:47:45 -0500, Michael Powell nightre...@hotmail.com wrote: If installing with the ports system you shouldn't need to be editing any Makefiles. make config will give you list of options you may select from. That's correct. I forgot to add that there are some few ports that allow using an additional Makefile, i. e. Makefile.local in the port's directory, to contain compile time settings. Something similar can be achieved through the control files of various port management programs that then apply those settings if the port is compiled. A good example is mplayer where you can use this mechanism. As I said, I'm not sure if this still works. Note there is an initial build/install of PHP itself and a second port called php5-extensions which you then install for all the modules. Again, a make config will list all options. No need to mess with Makefiles. There's the command make config-recursive (if I recall it correctly) to go through the config screens of all dependent ports at once - this saves you time of unneccessary interaction. Try putting WITHOUT_X11=yes into /etc/make.conf. Some PHP modules such as GD try and pull in X dependencies; this will short circuit that. Excellent advice! -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Clean PHP 5.2.12 Build Core Dumping
On Sat, 9 Jan 2010 19:55:05 -0800, Don O'Neil li...@lizardhill.com wrote: I tried adding WITHOUT_X11=yes to /etc/make.conf as well as X11BASE= and X11BASE=, but I still get the same error. Remove them. This makes sure they are not defined, not even empty (as in #define BLA - symbol 'BLA' is defined). Where to go from here? Do I have and old version of something that is causing this? I get this error _right away_ before anything is even built. It seems to be a check by the Makefile at port's top level. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: Clean PHP 5.2.12 Build Core Dumping
I tried adding WITHOUT_X11=yes to /etc/make.conf as well as X11BASE= and X11BASE=, but I still get the same error. Remove them. This makes sure they are not defined, not even empty (as in #define BLA - symbol 'BLA' is defined). Where to go from here? Do I have and old version of something that is causing this? I get this error _right away_ before anything is even built. It seems to be a check by the Makefile at port's top level. Ok... I have no definition for X11BASE anywhere, not in my env, not in my /etc/make.conf, nowhwere... However, it's still complaining about X11BASE being deprecated. I tried just adding WITHOUT_X11=yes in /etc/make, and without it. I even searched all the Makefiles in /usr/ports, and in the /usr/ports/lang/php5 dir to find any reference to X11, or X, or X11BASE, but nada... I don't even know where this error message is being generated from. I can't even do a basic make without it immediately spitting out the error: # make X11BASE is now deprecated. Unset X11BASE in make.conf and try again. *** Error code 1 Stop. Where should I look next? Any help is appreciated. Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: Clean PHP 5.2.12 Build Core Dumping
Ok... well, your idea is a good one, but it seems that the port is broken. I did a port update, which brought in the latest php build info from December, but when I run 'make' (without even editing the Makefile to add my own other modules I need) I get this: X11BASE is now deprecated. Unset X11BASE in make.conf and try again. *** Error code 1 Not even sure where it's getting that error message from, since I can't find any reference to X11BASE in any of the files in the package, or in my env. Any ideas? -Original Message- From: Polytropon [mailto:free...@edvax.de] Sent: Friday, January 08, 2010 10:35 PM To: Don O'Neil Cc: php-gene...@lists.php.net; freebsd-questions@freebsd.org Subject: Re: Clean PHP 5.2.12 Build Core Dumping On Fri, 8 Jan 2010 16:18:11 -0800, Don O'Neil li...@lizardhill.com wrote: Ok... more info on the problem... I started with a clean untarred archive, ad just ran ./configure, make, make test I get a core dump. Maybe this is not a FreeBSD source? I'd suggest using the FreeBSD ports system for installation from source (i. e. tar archives). PHP 5.2.12 seems to be availabe. You can use # cd /usr/ports/lang/php5 # make # make install Make sure - not make sure :-) - that your ports tree is up to date in order to recieve the latest version. After running gdb on the core dump I noticed it was the sqlite stuff that was dumping, so I re-ran configure with --without-sqlite --without-pdo-sqlite --with-mysql=/usr/local/mysql Check the available options that can be set for the php5 port at compile time, either via make config, or enter them manually (e. g. in Makefile.local - I'm not sure if this mechanism is still supported). Now the gdb shows this: Core was generated by `php'. Program terminated with signal 11, Segmentation fault. #0 0x081d50a7 in sqlite3Select (pParse=0xbbc00080, p=0x0, eDest=164102200, iParm=0, pParent=0x24, parentTab=139141440, pParentAgg=0x84c10d8, aff=0x0) at /usr/local/directadmin/customapache/php- 5.2.11/ext/pdo_sqlite/sqlite/src/sel ect.c:3172 3172 for(j=0; jpGroupBy-nExpr; j++){ First off, the compile directory listed is wrong, don't know where it got php-5.2.11 from, that's the last version I built and is installed on this system. Maybe it's pulling that from the system php? Yes, correct. Secondly, even though I've told it not to use sqlite, it still seems to be. It is - by 5.2.11 (or by directadmin). Seems that you've not installed 5.2.12 with your custom options yet. Any help here would be appreciated in moving forward. My whole reason for needing to rebuild php is I need the pdo_mysql module instead of the pdo_sqlite version. As I said, I would suggest to try to achieve this through the ports system. It's easier than fighting ./configure. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: Clean PHP 5.2.12 Build Core Dumping
Don O'Neil wrote: Ok... well, your idea is a good one, but it seems that the port is broken. I did a port update, which brought in the latest php build info from December, but when I run 'make' (without even editing the Makefile to add my own other modules I need) I get this: If installing with the ports system you shouldn't need to be editing any Makefiles. make config will give you list of options you may select from. Note there is an initial build/install of PHP itself and a second port called php5-extensions which you then install for all the modules. Again, a make config will list all options. No need to mess with Makefiles. X11BASE is now deprecated. Unset X11BASE in make.conf and try again. *** Error code 1 Not even sure where it's getting that error message from, since I can't find any reference to X11BASE in any of the files in the package, or in my env. Any ideas? Try putting WITHOUT_X11=yes into /etc/make.conf. Some PHP modules such as GD try and pull in X dependencies; this will short circuit that. -Original Message- [snip] -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: Clean PHP 5.2.12 Build Core Dumping
Well, I hadn't edited the Makefiles, I was planning on it (but won't now that you pointed out the make option), but never got past making the generic port I tried adding WITHOUT_X11=yes to /etc/make.conf as well as X11BASE= and X11BASE=, but I still get the same error. Where to go from here? Do I have and old version of something that is causing this? I get this error _right away_ before anything is even built. Thanks! If installing with the ports system you shouldn't need to be editing any Makefiles. make config will give you list of options you may select from. Note there is an initial build/install of PHP itself and a second port called php5-extensions which you then install for all the modules. Again, a make config will list all options. No need to mess with Makefiles. X11BASE is now deprecated. Unset X11BASE in make.conf and try again. *** Error code 1 Try putting WITHOUT_X11=yes into /etc/make.conf. Some PHP modules such as GD try and pull in X dependencies; this will short circuit that. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Clean PHP 5.2.12 Build Core Dumping
On Fri, 8 Jan 2010 16:18:11 -0800, Don O'Neil li...@lizardhill.com wrote: Ok... more info on the problem... I started with a clean untarred archive, ad just ran ./configure, make, make test I get a core dump. Maybe this is not a FreeBSD source? I'd suggest using the FreeBSD ports system for installation from source (i. e. tar archives). PHP 5.2.12 seems to be availabe. You can use # cd /usr/ports/lang/php5 # make # make install Make sure - not make sure :-) - that your ports tree is up to date in order to recieve the latest version. After running gdb on the core dump I noticed it was the sqlite stuff that was dumping, so I re-ran configure with --without-sqlite --without-pdo-sqlite --with-mysql=/usr/local/mysql Check the available options that can be set for the php5 port at compile time, either via make config, or enter them manually (e. g. in Makefile.local - I'm not sure if this mechanism is still supported). Now the gdb shows this: Core was generated by `php'. Program terminated with signal 11, Segmentation fault. #0 0x081d50a7 in sqlite3Select (pParse=0xbbc00080, p=0x0, eDest=164102200, iParm=0, pParent=0x24, parentTab=139141440, pParentAgg=0x84c10d8, aff=0x0) at /usr/local/directadmin/customapache/php-5.2.11/ext/pdo_sqlite/sqlite/src/sel ect.c:3172 3172 for(j=0; jpGroupBy-nExpr; j++){ First off, the compile directory listed is wrong, don't know where it got php-5.2.11 from, that's the last version I built and is installed on this system. Maybe it's pulling that from the system php? Yes, correct. Secondly, even though I've told it not to use sqlite, it still seems to be. It is - by 5.2.11 (or by directadmin). Seems that you've not installed 5.2.12 with your custom options yet. Any help here would be appreciated in moving forward. My whole reason for needing to rebuild php is I need the pdo_mysql module instead of the pdo_sqlite version. As I said, I would suggest to try to achieve this through the ports system. It's easier than fighting ./configure. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org