RE: Urgent help needed please: pecl-memcache problem after upgrade of php

2007-08-14 Thread Ian Lord


-Original Message-
From: B. Cook [mailto:[EMAIL PROTECTED] 
Sent: 13 août 2007 13:54
To: Ian Lord
Subject: Re: Urgent help needed please: pecl-memcache problem after upgrade
of php

Have you tried rebuilding the port?

memcache to reflect your current version of php?

Thats usually what I need to do.

cd /usr/ports/www/memcache (or whatever it is..)

make clean  make  make deinstall  make install  sync

then try a php -v or php-cgi -v and see what happens.



Ian Lord wrote, On 8/13/07 10:49 AM:
 Hi,
 
  
 
 I just did a portupgrade -a and now memcache doesn't work anymore in php.
 
  
 
 Here are the version portupgrade installed:
 
 pecl-memcache-2.1.2
 
 memcached-1.2.2
 
 php5-5.2.3_1
 
  
 
 In php/error.log I can see this error message
 
 [13-Aug-2007 10:38:20] PHP Warning:  PHP Startup: Unable to load dynamic
 library '/usr/local/lib/php/20060613/memcache.so' -
 /usr/local/lib/php/20060613/memcache.so: Undefined symbol
 quot;php_session_create_idquot; in Unknown on line 0
 
  
 
 Can anyone help please
 
  
 
 If not able to fix (might be a problem with the port, what is the easiest
 way to go back to previous version)
 
  
 
 Thanks
 
  
 
 p.s. Please reply to me directly as I am only registered on the digest
list
 
  
 
  
 
  
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]

-- 
B. Cook
Network Analyst
Poughkeepsie City School District
Mobile: 845.264.5827 | Desk: 845.451.4791

Thanks for your help...

The problem was not with the memcache port but with the pecl-memcache
port...

Doing as you suggested, fixed the problem make clean, followed by a make
deinstall and make install

Before sending the message I already tried a make deinstall / make reinstall
and it didn’t work.

Any idea why
1- Portupgrade broke the thing ?
2- a make clean/make deinstall/make install is better than a make
deinstall/make reinstall ?

Thanks


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Urgent help needed please: pecl-memcache problem after upgrade of php

2007-08-14 Thread Norberto Meijome
On Tue, 14 Aug 2007 03:01:15 -0400
Ian Lord [EMAIL PROTECTED] wrote:

 1- Portupgrade broke the thing ?

portupgrade upgraded libraries that were referenced by other objects...for some 
reason, pecl / php stuff is very picky. Maybe the ports need to be updated in 
unison / force upgrades of the other (if installed)... 

 2- a make clean/make deinstall/make install is better than a make
 deinstall/make reinstall ?

not sure, make clean forces a full rebuild of the port ... i think it goes back 
to the point that portupgrade may not realise it needs to update the other 
port...if u tell it exactly what to update then it should work too with 
portupgrade

_
{Beto|Norberto|Numard} Meijome

Never take Life too seriously, no one gets out alive anyway.

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: Urgent help needed please: pecl-memcache problem after upgrade of php

2007-08-13 Thread Norberto Meijome
On Mon, 13 Aug 2007 10:49:48 -0400
Ian Lord [EMAIL PROTECTED] wrote:

 Hi,
 
  
 
 I just did a portupgrade -a and now memcache doesn't work anymore in php.

best practice is to test upgrades before applying them to production  :)

  
 
 Here are the version portupgrade installed:
 
 pecl-memcache-2.1.2
 
 memcached-1.2.2
 
 php5-5.2.3_1
 
  
 
 In php/error.log I can see this error message
 
 [13-Aug-2007 10:38:20] PHP Warning:  PHP Startup: Unable to load dynamic
 library '/usr/local/lib/php/20060613/memcache.so' -
 /usr/local/lib/php/20060613/memcache.so: Undefined symbol
 quot;php_session_create_idquot; in Unknown on line 0

it could be that memcache and php got out of sync with the php modules. try 
rebuilding all the php modules ( portupgrade -fp php-* ) . the -p will make 
binary packages after installing the ports

[...]
 If not able to fix (might be a problem with the port, what is the easiest
 way to go back to previous version)

- have you kept packages of the previously installed versions? you an use them 
to revert back
- you can try to move the ports tree back to before those upgrades happened, 
and force a downgrade to those versions.

i still think the fastest way is to rebuild php*

good luck,
B
_
{Beto|Norberto|Numard} Meijome

Egotism is the anesthetic that dulls the pain of stupidity.
  Frank Leahy

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]