PHP Warning when running ./build updatw_versions

jca

Verified User
Joined
Oct 31, 2006
Messages
284
Location
Allen, TX
PHP Warning when running ./build update_versions

Hello,

Since yesterday I started to receive the following error while running ./build update_versions

Code:
# ./build update_versions
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/rsync.so' - librsync.so.1: cannot open shared object file: No such file or directory in Unknown on line 0

Apache and PHP are running normally on the server and I can confirm that '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/rsync.so' exists:

Code:
# ls -lah /usr/local/lib/php/extensions/no-debug-non-zts-20121212/rsync.so
-rw-r--r-- 1 root root 62K Dec  3 11:53 /usr/local/lib/php/extensions/no-debug-non-zts-20121212/rsync.so

Any ideas on what the problem might be?

Thanks

Jose
 
Last edited:
librsync.so.1 doesn't seem to exist on your system. Please try reinstalling librsync.
 
Hello Martynas,

I tried to reinstall rsync using pear:

Code:
pear install channel://pecl.php.net/rsync-0.1.0

Yet when compiling it fails like this:

Code:
mkdir .libs
 cc -I. -I/tmp/pear/temp/rsync -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-jchouzaxO9lsn/rsync-0.1.0/include -I/tmp/pear/temp/pear-build-jchouzaxO9lsn/rsync-0.1.0/main -I/tmp/pear/temp/rsync -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/rsync/rsync.c  -fPIC -DPIC -o .libs/rsync.o
/tmp/pear/temp/rsync/rsync.c: In function 'php_rsync_globals_ctor':
/tmp/pear/temp/rsync/rsync.c:338: error: 'RS_DEFAULT_STRONG_LEN' undeclared (first use in this function)
/tmp/pear/temp/rsync/rsync.c:338: error: (Each undeclared identifier is reported only once
/tmp/pear/temp/rsync/rsync.c:338: error: for each function it appears in.)
/tmp/pear/temp/rsync/rsync.c: In function 'zm_startup_rsync':
/tmp/pear/temp/rsync/rsync.c:410: error: 'RS_MD4_LENGTH' undeclared (first use in this function)
/tmp/pear/temp/rsync/rsync.c:411: error: 'RS_DEFAULT_STRONG_LEN' undeclared (first use in this function)
/tmp/pear/temp/rsync/rsync.c: In function 'zif_rsync_generate_signature':
/tmp/pear/temp/rsync/rsync.c:501: error: incompatible type for argument 5 of 'rs_sig_file'
/usr/include/librsync.h:419: note: expected 'rs_magic_number' but argument is of type 'struct rs_stats_t *'
/tmp/pear/temp/rsync/rsync.c:501: error: too few arguments to function 'rs_sig_file'
make: *** [rsync.lo] Error 1
ERROR: `make' failed

I made sure to have librsync and librsync-devel installed:

Code:
# yum install librsync-devel
Package librsync-1.0.0-1.el6.x86_64 already installed and latest version
Package librsync-devel-1.0.0-1.el6.x86_64 already installed and latest version
Nothing to do

Any idea on what might be the problem?

Thanks for the help!
 
Compiling it manually worked:

Code:
wget http://pecl.php.net/get/rsync-0.1.0.tgz
tar xzf rsync-0.1.0.tgz
cd rsync-0.1.0
phpize
./configure --with-rsync
make
make install
 
Back
Top