Re: [freebsd-questions] Can't build php5? - Builds now, but doesn't work due to gd.so
On Tue, 22 May 2007 15:02:24 -0400 Patrick Baldwin [EMAIL PROTECTED] wrote: My first though was to rebuild, but I've done that twice now, once by just rebuilding php5 and php5-extentions, and once trying portupgrade -rR php5-2.2. I re-read the docs on portupgrade, as far as I can tell, my command line should have rebuilt everything php5 related in my whole tree. you may have to add -f to make sure it gets rebuilt even if it doesnt have to - portupgrade wont upgrade a package to the same version otherwise. btw, it seems you are having some problems with the symbols defined / used by php5-gd or gd libraries themselves. If i were you, i'd uninstall php5-gd, verify everything else works , and then focus on the gd issue. a force rebuild of gd and its depending libraries should do the trick. B _ {Beto|Norberto|Numard} Meijome Build a system that even a fool can use, and only a fool will want to use it. George Bernard Shaw I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [freebsd-questions] Can't build php5? - Builds now, but doesn't work due to gd.so
I had somethign wierd with php recently too. I uninstalled it, and re-compiled php itself and all of it's extensions. Make sure the module isn't listed twice in httpd.conf (it does that). All seems good now. Patrick Baldwin wrote: Beech Rintoul wrote: On Monday 21 May 2007, Patrick Baldwin said: First, my apologies to Beech for replying off-list, I'm on a few others that work a bit differently, and I was a little quick with the send button. On to the issue at hand: Beech Rintoul wrote: On Monday 21 May 2007, Patrick Baldwin said: Hi, I'm in the process of trying to build a Horde/IMP server. I started by freshly installing updating 6.2-RELEASE-p4 FreeBSD. I then installed IMP package with pkg_add -r imp. All seemed to go well. I then started working my way through configuring the various newly installed things. From: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/netwo rk-a pache.html I added: LoadModule php5_modulelibexec/apache/libphp5.so AddModule mod_php5.c IfModule mod_php5.c DirectoryIndex index.php index.html /IfModule IfModule mod_php5.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps /IfModule To my /usr/local/etc/apache/httpd.conf file. When I tried to restart Apache, I get: apachectl start Syntax error on line 238 of /usr/local/etc/apache/httpd.conf: Cannot load /usr/local/libexec/apache/libphp5.so into server: Cannot open /usr/local/libexec/apache/libphp5.so /usr/local/sbin/apachectl start: httpd could not be started And sure enough, it's not there. I go to /usr/ports/lang/php5, Run make config install, telling it to build Apache module, and I get: === Vulnerability check disabled, database not found === Found saved configuration for php5-5.2.2 = suhosin-patch-5.2.2-0.9.6.2.patch.gz doesn't seem to exist in /usr/ports/distfiles/. = Attempting to fetch from http://www.hardened-php.net/suhosin/_media/. fetch: http://www.hardened-php.net/suhosin/_media/suhosin-patch-5.2.2- 0.9. 6.2.patch.gz: Connection refused = Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/suhosin-patch -5.2 .2-0.9.6.2.patch.gz: File unavailable (e.g., file not found, no access) = Couldn't fetch it - please try to retrieve this = port manually into /usr/ports/distfiles/ and try again. *** Error code 1 Stop in /usr/ports/lang/php5. *** Error code 1 Stop in /usr/ports/lang/php5. My goal here is to get a working FreeBSD 6.2 Horde/IMP server. I'm new to all these things, so if I'm going about this the hard or the stupid way, please don't hesitate to tell me. It seemed like the easiest and fastest way to get a working install would be to install the package, but maybe I'm wrong. Regards, The problem is there have been upgrades to php and their server is currently down. This has been reported by several people and all I can suggest is to try again later. FWIW, I just tried to fetch and it's still down. Beech And apparently continues to be so. I guess I'll try again tomorrow. In the meantime, this leaves me wondering if I should try and uninstall imp, and re-install once this server is back. I am under the impression that installing via a package should cause any dependencies of the package to be built with the options the package needs to run (if I'm wrong on this please let me know), so it seems like I may end up chasing dependencies for awhile if I just proceed from where I am right now, since it obviously couldn't build PHP with the options needed for Horde/IMP to work. Also, it;s mentioned above that several people have reported this problem. My Google searches didn't turn anything up; is there someplace I should be checking for issues like this before posting here? Thanks, I found a mirror with a good checksum. Download and put in /usr/ports/distfiles then rebuild. http://critical.ch/distfiles/suhosin-patch-5.2.2-0.9.6.2.patch.gz Beech I did what was suggested above. All seemed to go well with the rebuild. Started Apache, and found it was still trying to download PHP files, not run them. Checked httpd-error.log, found: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20 060613/gd.so' - /usr/local/lib/php/20060613/gd.so: Undefined symbol quot;gdImag eCreateFromXpmquot; in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20 060613/gd.so' - /usr/local/lib/php/20060613/gd.so: Undefined symbol quot;gdImag eCreateFromXpmquot; in
Re: [freebsd-questions] Can't build php5? - Builds now, but doesn't work due to gd.so
Beech Rintoul wrote: On Monday 21 May 2007, Patrick Baldwin said: First, my apologies to Beech for replying off-list, I'm on a few others that work a bit differently, and I was a little quick with the send button. On to the issue at hand: Beech Rintoul wrote: On Monday 21 May 2007, Patrick Baldwin said: Hi, I'm in the process of trying to build a Horde/IMP server. I started by freshly installing updating 6.2-RELEASE-p4 FreeBSD. I then installed IMP package with pkg_add -r imp. All seemed to go well. I then started working my way through configuring the various newly installed things. From: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/netwo rk-a pache.html I added: LoadModule php5_modulelibexec/apache/libphp5.so AddModule mod_php5.c IfModule mod_php5.c DirectoryIndex index.php index.html /IfModule IfModule mod_php5.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps /IfModule To my /usr/local/etc/apache/httpd.conf file. When I tried to restart Apache, I get: apachectl start Syntax error on line 238 of /usr/local/etc/apache/httpd.conf: Cannot load /usr/local/libexec/apache/libphp5.so into server: Cannot open /usr/local/libexec/apache/libphp5.so /usr/local/sbin/apachectl start: httpd could not be started And sure enough, it's not there. I go to /usr/ports/lang/php5, Run make config install, telling it to build Apache module, and I get: === Vulnerability check disabled, database not found === Found saved configuration for php5-5.2.2 = suhosin-patch-5.2.2-0.9.6.2.patch.gz doesn't seem to exist in /usr/ports/distfiles/. = Attempting to fetch from http://www.hardened-php.net/suhosin/_media/. fetch: http://www.hardened-php.net/suhosin/_media/suhosin-patch-5.2.2- 0.9. 6.2.patch.gz: Connection refused = Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/suhosin-patch -5.2 .2-0.9.6.2.patch.gz: File unavailable (e.g., file not found, no access) = Couldn't fetch it - please try to retrieve this = port manually into /usr/ports/distfiles/ and try again. *** Error code 1 Stop in /usr/ports/lang/php5. *** Error code 1 Stop in /usr/ports/lang/php5. My goal here is to get a working FreeBSD 6.2 Horde/IMP server. I'm new to all these things, so if I'm going about this the hard or the stupid way, please don't hesitate to tell me. It seemed like the easiest and fastest way to get a working install would be to install the package, but maybe I'm wrong. Regards, The problem is there have been upgrades to php and their server is currently down. This has been reported by several people and all I can suggest is to try again later. FWIW, I just tried to fetch and it's still down. Beech And apparently continues to be so. I guess I'll try again tomorrow. In the meantime, this leaves me wondering if I should try and uninstall imp, and re-install once this server is back. I am under the impression that installing via a package should cause any dependencies of the package to be built with the options the package needs to run (if I'm wrong on this please let me know), so it seems like I may end up chasing dependencies for awhile if I just proceed from where I am right now, since it obviously couldn't build PHP with the options needed for Horde/IMP to work. Also, it;s mentioned above that several people have reported this problem. My Google searches didn't turn anything up; is there someplace I should be checking for issues like this before posting here? Thanks, I found a mirror with a good checksum. Download and put in /usr/ports/distfiles then rebuild. http://critical.ch/distfiles/suhosin-patch-5.2.2-0.9.6.2.patch.gz Beech I did what was suggested above. All seemed to go well with the rebuild. Started Apache, and found it was still trying to download PHP files, not run them. Checked httpd-error.log, found: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20 060613/gd.so' - /usr/local/lib/php/20060613/gd.so: Undefined symbol quot;gdImag eCreateFromXpmquot; in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20 060613/gd.so' - /usr/local/lib/php/20060613/gd.so: Undefined symbol quot;gdImag eCreateFromXpmquot; in Unknown on line 0 [Tue May 22 12:53:53 2007] [notice] Apache/1.3.37 (Unix) PHP/5.2.2 with Suhosin- Patch configured -- resuming normal operations [Tue May 22 12:53:53 2007] [notice] Accept mutex: flock (Default: flock) When I checked to verify that /usr/local/lib/php/20060613/gd.so existed, I did find it: webmail# pwd /usr/local/lib/php/20060613 webmail# ls -asl g* 368 -r--r--r-- 1 root wheel 357948 May 22 12:26 gd.so The log mentions the patch, so it looks like that installed fine. The file
[freebsd-questions] Can't build php5? - Now builds, but doesn't work.- Fixed
Beech Rintoul wrote: On Monday 21 May 2007, Patrick Baldwin said: First, my apologies to Beech for replying off-list, I'm on a few others that work a bit differently, and I was a little quick with the send button. On to the issue at hand: Beech Rintoul wrote: On Monday 21 May 2007, Patrick Baldwin said: Hi, I'm in the process of trying to build a Horde/IMP server. I started by freshly installing updating 6.2-RELEASE-p4 FreeBSD. I then installed IMP package with pkg_add -r imp. All seemed to go well. I then started working my way through configuring the various newly installed things. From: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/netwo rk-a pache.html I added: LoadModule php5_modulelibexec/apache/libphp5.so AddModule mod_php5.c IfModule mod_php5.c DirectoryIndex index.php index.html /IfModule IfModule mod_php5.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps /IfModule To my /usr/local/etc/apache/httpd.conf file. When I tried to restart Apache, I get: apachectl start Syntax error on line 238 of /usr/local/etc/apache/httpd.conf: Cannot load /usr/local/libexec/apache/libphp5.so into server: Cannot open /usr/local/libexec/apache/libphp5.so /usr/local/sbin/apachectl start: httpd could not be started And sure enough, it's not there. I go to /usr/ports/lang/php5, Run make config install, telling it to build Apache module, and I get: === Vulnerability check disabled, database not found === Found saved configuration for php5-5.2.2 = suhosin-patch-5.2.2-0.9.6.2.patch.gz doesn't seem to exist in /usr/ports/distfiles/. = Attempting to fetch from http://www.hardened-php.net/suhosin/_media/. fetch: http://www.hardened-php.net/suhosin/_media/suhosin-patch-5.2.2- 0.9. 6.2.patch.gz: Connection refused = Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/suhosin-patch -5.2 .2-0.9.6.2.patch.gz: File unavailable (e.g., file not found, no access) = Couldn't fetch it - please try to retrieve this = port manually into /usr/ports/distfiles/ and try again. *** Error code 1 Stop in /usr/ports/lang/php5. *** Error code 1 Stop in /usr/ports/lang/php5. My goal here is to get a working FreeBSD 6.2 Horde/IMP server. I'm new to all these things, so if I'm going about this the hard or the stupid way, please don't hesitate to tell me. It seemed like the easiest and fastest way to get a working install would be to install the package, but maybe I'm wrong. Regards, The problem is there have been upgrades to php and their server is currently down. This has been reported by several people and all I can suggest is to try again later. FWIW, I just tried to fetch and it's still down. Beech And apparently continues to be so. I guess I'll try again tomorrow. In the meantime, this leaves me wondering if I should try and uninstall imp, and re-install once this server is back. I am under the impression that installing via a package should cause any dependencies of the package to be built with the options the package needs to run (if I'm wrong on this please let me know), so it seems like I may end up chasing dependencies for awhile if I just proceed from where I am right now, since it obviously couldn't build PHP with the options needed for Horde/IMP to work. Also, it;s mentioned above that several people have reported this problem. My Google searches didn't turn anything up; is there someplace I should be checking for issues like this before posting here? Thanks, I found a mirror with a good checksum. Download and put in /usr/ports/distfiles then rebuild. http://critical.ch/distfiles/suhosin-patch-5.2.2-0.9.6.2.patch.gz Beech I did what was suggested above. All seemed to go well with the rebuild. Started Apache, and found it was still trying to download PHP files, not run them. Checked httpd-error.log, found: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20 060613/gd.so' - /usr/local/lib/php/20060613/gd.so: Undefined symbol quot;gdImag eCreateFromXpmquot; in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20 060613/gd.so' - /usr/local/lib/php/20060613/gd.so: Undefined symbol quot;gdImag eCreateFromXpmquot; in Unknown on line 0 [Tue May 22 12:53:53 2007] [notice] Apache/1.3.37 (Unix) PHP/5.2.2 with Suhosin- Patch configured -- resuming normal operations [Tue May 22 12:53:53 2007] [notice] Accept mutex: flock (Default: flock) When I checked to verify that /usr/local/lib/php/20060613/gd.so existed, I did find it: webmail# pwd /usr/local/lib/php/20060613 webmail# ls -asl g* 368 -r--r--r-- 1 root wheel 357948 May 22 12:26 gd.so The log mentions the patch, so it looks like that installed fine. The file
[freebsd-questions] Can't build php5?
Hi, I'm in the process of trying to build a Horde/IMP server. I started by freshly installing updating 6.2-RELEASE-p4 FreeBSD. I then installed IMP package with pkg_add -r imp. All seemed to go well. I then started working my way through configuring the various newly installed things. From: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-apache.html I added: LoadModule php5_modulelibexec/apache/libphp5.so AddModule mod_php5.c IfModule mod_php5.c DirectoryIndex index.php index.html /IfModule IfModule mod_php5.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps /IfModule To my /usr/local/etc/apache/httpd.conf file. When I tried to restart Apache, I get: apachectl start Syntax error on line 238 of /usr/local/etc/apache/httpd.conf: Cannot load /usr/local/libexec/apache/libphp5.so into server: Cannot open /usr/local/libexec/apache/libphp5.so /usr/local/sbin/apachectl start: httpd could not be started And sure enough, it's not there. I go to /usr/ports/lang/php5, Run make config install, telling it to build Apache module, and I get: === Vulnerability check disabled, database not found === Found saved configuration for php5-5.2.2 = suhosin-patch-5.2.2-0.9.6.2.patch.gz doesn't seem to exist in /usr/ports/distfiles/. = Attempting to fetch from http://www.hardened-php.net/suhosin/_media/. fetch: http://www.hardened-php.net/suhosin/_media/suhosin-patch-5.2.2-0.9.6.2.patch.gz: Connection refused = Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/suhosin-patch-5.2.2-0.9.6.2.patch.gz: File unavailable (e.g., file not found, no access) = Couldn't fetch it - please try to retrieve this = port manually into /usr/ports/distfiles/ and try again. *** Error code 1 Stop in /usr/ports/lang/php5. *** Error code 1 Stop in /usr/ports/lang/php5. My goal here is to get a working FreeBSD 6.2 Horde/IMP server. I'm new to all these things, so if I'm going about this the hard or the stupid way, please don't hesitate to tell me. It seemed like the easiest and fastest way to get a working install would be to install the package, but maybe I'm wrong. Regards, -- Patrick Baldwin Systems Administrator Studsvik Scandpower, Inc. 1087 Beacon St. Newton, MA 02459 1-617-965-7455 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [freebsd-questions] Can't build php5?
On Monday 21 May 2007, Patrick Baldwin said: Hi, I'm in the process of trying to build a Horde/IMP server. I started by freshly installing updating 6.2-RELEASE-p4 FreeBSD. I then installed IMP package with pkg_add -r imp. All seemed to go well. I then started working my way through configuring the various newly installed things. From: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-a pache.html I added: LoadModule php5_modulelibexec/apache/libphp5.so AddModule mod_php5.c IfModule mod_php5.c DirectoryIndex index.php index.html /IfModule IfModule mod_php5.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps /IfModule To my /usr/local/etc/apache/httpd.conf file. When I tried to restart Apache, I get: apachectl start Syntax error on line 238 of /usr/local/etc/apache/httpd.conf: Cannot load /usr/local/libexec/apache/libphp5.so into server: Cannot open /usr/local/libexec/apache/libphp5.so /usr/local/sbin/apachectl start: httpd could not be started And sure enough, it's not there. I go to /usr/ports/lang/php5, Run make config install, telling it to build Apache module, and I get: === Vulnerability check disabled, database not found === Found saved configuration for php5-5.2.2 = suhosin-patch-5.2.2-0.9.6.2.patch.gz doesn't seem to exist in /usr/ports/distfiles/. = Attempting to fetch from http://www.hardened-php.net/suhosin/_media/. fetch: http://www.hardened-php.net/suhosin/_media/suhosin-patch-5.2.2-0.9. 6.2.patch.gz: Connection refused = Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/suhosin-patch-5.2 .2-0.9.6.2.patch.gz: File unavailable (e.g., file not found, no access) = Couldn't fetch it - please try to retrieve this = port manually into /usr/ports/distfiles/ and try again. *** Error code 1 Stop in /usr/ports/lang/php5. *** Error code 1 Stop in /usr/ports/lang/php5. My goal here is to get a working FreeBSD 6.2 Horde/IMP server. I'm new to all these things, so if I'm going about this the hard or the stupid way, please don't hesitate to tell me. It seemed like the easiest and fastest way to get a working install would be to install the package, but maybe I'm wrong. Regards, The problem is there have been upgrades to php and their server is currently down. This has been reported by several people and all I can suggest is to try again later. FWIW, I just tried to fetch and it's still down. Beech -- --- Beech Rintoul - Port Maintainer - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.freebsd.org/releases/6.2R/announce.html --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [freebsd-questions] Can't build php5?
On Mon, 21 May 2007, Patrick Baldwin wrote: Hi, I'm in the process of trying to build a Horde/IMP server. I started by freshly installing updating 6.2-RELEASE-p4 FreeBSD. I then installed IMP package with pkg_add -r imp. All seemed to go well. I then started working my way through configuring the various newly installed things. From: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-apache.html I added: LoadModule php5_modulelibexec/apache/libphp5.so AddModule mod_php5.c IfModule mod_php5.c DirectoryIndex index.php index.html /IfModule IfModule mod_php5.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps /IfModule To my /usr/local/etc/apache/httpd.conf file. When I tried to restart Apache, I get: apachectl start Syntax error on line 238 of /usr/local/etc/apache/httpd.conf: Cannot load /usr/local/libexec/apache/libphp5.so into server: Cannot open /usr/local/libexec/apache/libphp5.so /usr/local/sbin/apachectl start: httpd could not be started And sure enough, it's not there. I go to /usr/ports/lang/php5, Run make config install, telling it to build Apache module, and I get: === Vulnerability check disabled, database not found === Found saved configuration for php5-5.2.2 = suhosin-patch-5.2.2-0.9.6.2.patch.gz doesn't seem to exist in /usr/ports/distfiles/. = Attempting to fetch from http://www.hardened-php.net/suhosin/_media/. fetch: http://www.hardened-php.net/suhosin/_media/suhosin-patch-5.2.2-0.9.6.2.patch.gz: Connection refused = Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/suhosin-patch-5.2.2-0.9.6.2.patch.gz: File unavailable (e.g., file not found, no access) = Couldn't fetch it - please try to retrieve this = port manually into /usr/ports/distfiles/ and try again. *** Error code 1 Stop in /usr/ports/lang/php5. *** Error code 1 Stop in /usr/ports/lang/php5. My goal here is to get a working FreeBSD 6.2 Horde/IMP server. I'm new to all these things, so if I'm going about this the hard or the stupid way, please don't hesitate to tell me. It seemed like the easiest and fastest way to get a working install would be to install the package, but maybe I'm wrong. Build pgp5 from the ports. It does not take very long. I think, but am not sure, the problem is missing packages from the mirrors. In any case build php from source first will solve this. Make sure that your ports collection is up-to-date. If you want to go the package route, probably horde needs to be installed first and it will pull whatt it needs. With a server I would build from source. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]