[Yazlist] Yaz_connect() Failure after Kubuntu Update

Larry Currie lcurrie at calacademy.org
Thu Dec 20 00:22:55 CET 2007


In your response to our previous message (Fri Nov 9 11:49:51 CET 2007) you 
suggested that we might have a PHP-YAZ conflict.  As recommended we removed 
PHP4-YAZ and ran "pecl install yaz" in order to solve the mismatch.  The 
install log begins to show errors when "running: make" begins.  Finally the 
install fails.  Any guidance you can provide would be appreciated.  A portion 
of the install log follows.
*************************************************************************
root at library:/# pecl install yaz
downloading yaz-1.0.13.tgz ...
Starting to download yaz-1.0.13.tgz (16,537 bytes)
......done: 16,537 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
path to YAZ installation? [autodetect] :
building in /var/tmp/pear-build-root/yaz-1.0.13

---LINES OMITTED---

configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /var/tmp/pear-build-root/yaz-1.0.13/libtool --mode=compile 
gcc  -I. -I/tmp/pear/cache/yaz-1.0.13 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/yaz-1.0.13/include -I/var/tmp/pear-build-root/yaz-1.0.13/main -I/tmp/pear/cache/yaz-1.0.13 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/cache/yaz-1.0.13/php_yaz.c -o 
php_yaz.lo
mkdir .libs
 
gcc -I. -I/tmp/pear/cache/yaz-1.0.13 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/yaz-1.0.13/include -I/var/tmp/pear-build-root/yaz-1.0.13/main -I/tmp/pear/cache/yaz-1.0.13 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/cache/yaz-1.0.13/php_yaz.c  -fPIC -DPIC -o .libs/php_yaz.o
/tmp/pear/cache/yaz-1.0.13/php_yaz.c:38:2: error: #error YAZ version 3.0 or 
later must be used.
In file included from /usr/include/yaz/oid_db.h:37,
                 from /tmp/pear/cache/yaz-1.0.13/php_yaz.c:50:
/usr/include/yaz/oid_util.h:43: error: conflicting types for 'Odr_oid'
/usr/local/include/yaz/odr.h:112: error: previous declaration of 'Odr_oid' was 
here
/usr/include/yaz/oid_util.h:46: error: nested redefinition of 'enum oid_proto'
/usr/include/yaz/oid_util.h:46: error: redeclaration of 'enum oid_proto'
/usr/include/yaz/oid_util.h:47: error: redeclaration of enumerator 'PROTO_NOP'
/usr/local/include/yaz/oid.h:49: error: previous definition of 'PROTO_NOP' was 
here
/usr/include/yaz/oid_util.h:48: error: redeclaration of 
enumerator 'PROTO_Z3950'
/usr/local/include/yaz/oid.h:50: error: previous definition of 'PROTO_Z3950' 
was here
/usr/include/yaz/oid_util.h:49: error: redeclaration of enumerator 'PROTO_SR'
/usr/local/include/yaz/oid.h:51: error: previous definition of 'PROTO_SR' was 
here
/usr/include/yaz/oid_util.h:50: error: redeclaration of 
enumerator 'PROTO_GENERAL'
/usr/local/include/yaz/oid.h:52: error: previous definition of 'PROTO_GENERAL' 
was here
/usr/include/yaz/oid_util.h:51: error: redeclaration of 
enumerator 'PROTO_WAIS'
/usr/local/include/yaz/oid.h:53: error: previous definition of 'PROTO_WAIS' 
was here
/usr/include/yaz/oid_util.h:53: error: redeclaration of 
enumerator 'PROTO_HTTP'
/usr/local/include/yaz/oid.h:55: error: previous definition of 'PROTO_HTTP' 
was here
/usr/include/yaz/oid_util.h:55: error: conflicting types for 'oid_oidcpy'
/usr/local/include/yaz/oid.h:253: error: previous declaration of 'oid_oidcpy' 
was here
/usr/include/yaz/oid_util.h:56: error: conflicting types for 'oid_oidcat'
/usr/local/include/yaz/oid.h:254: error: previous declaration of 'oid_oidcat' 
was here
/usr/include/yaz/oid_util.h:57: error: conflicting types for 'oid_oidcmp'
/usr/local/include/yaz/oid.h:255: error: previous declaration of 'oid_oidcmp' 
was here
/usr/include/yaz/oid_util.h:58: error: conflicting types for 'oid_oidlen'
/usr/local/include/yaz/oid.h:256: error: previous declaration of 'oid_oidlen' 
was here

---SIMILAR LINES OMITTED---

/usr/include/yaz/oid_std.h:148: error: expected '=', ',', ';', 'asm' 
or '__attribute__' before 'extern'
/usr/include/yaz/oid_std.h:149: error: expected '=', ',', ';', 'asm' 
or '__attribute__' before 'extern'
/usr/include/yaz/oid_std.h:150: error: expected '=', ',', ';', 'asm' 
or '__attribute__' before 'extern'
/usr/include/yaz/oid_std.h:151: error: expected '=', ',', ';', 'asm' 
or '__attribute__' before 'extern'
/tmp/pear/cache/yaz-1.0.13/php_yaz.c: In function 'ext_grs1':
/tmp/pear/cache/yaz-1.0.13/php_yaz.c:1314: warning: passing argument 1 
of 'yaz_oid_is_iso2709' from incompatible pointer type
/tmp/pear/cache/yaz-1.0.13/php_yaz.c: In function 'zif_yaz_ccl_parse':
/tmp/pear/cache/yaz-1.0.13/php_yaz.c:1874: error: too many arguments to 
function 'ccl_parser_create'
/tmp/pear/cache/yaz-1.0.13/php_yaz.c:1876: warning: assignment makes pointer 
from integer without a cast
/tmp/pear/cache/yaz-1.0.13/php_yaz.c:1891: error: 'ccl_stop_words_t' 
undeclared (first use in this function)
/tmp/pear/cache/yaz-1.0.13/php_yaz.c:1891: error: (Each undeclared identifier 
is reported only once
/tmp/pear/cache/yaz-1.0.13/php_yaz.c:1891: error: for each function it appears 
in.)
/tmp/pear/cache/yaz-1.0.13/php_yaz.c:1891: error: expected ';' before 'csw'
/tmp/pear/cache/yaz-1.0.13/php_yaz.c:1892: error: 'csw' undeclared (first use 
in this function)
make: *** [php_yaz.lo] Error 1
ERROR: `make' failed
*********************************************************************************

Thanks.
-- 
Lawrence Currie
Academy Librarian
California Academy of Sciences
875 Howard St.
San Francisco, CA 94103
(415) 321-8038
fax (415) 321-8633



More information about the Yazlist mailing list