FAQ
hi, i am trying to compile rpms for php5.0.0 based on taking the 5.0.0
source just released on the 13th, and using the php.spec file from the
4.3.6 source rpm and tweaking it a little. basically, i'm trying to
stay close to what redhat has in its configure (even though it's a ton
of stuff), because i can't really tell what all the configure options
are, and what i would or wouldn't need. i did have to write in a a
separate interbase package (creates "php-interbase-<version>.rpm")
with options similar to mssql and oracle, following the redhat lead,
and this has worked in previous versions. i am on a fedora core 2
system, with all updates applied (daily).

the problem is i am getting 3 errors , the most important from libtool.
here they are documented here. if anyone has any idea, i'd be most
appreciative.. thanks

here is my build command:

============================================================================
rpmbuild --define 'interbase 1' -bb php.spec
============================================================================

and here is the relevant configure line out of the php.spec:

============================================================================


============================================================================
%configure \
--cache-file=../config.cache \
--with-config-file-path=%{_sysconfdir} \
--with-config-file-scan-dir=%{_sysconfdir}/php.d \
--enable-force-cgi-redirect \
--disable-debug \
--enable-pic \
--disable-rpath \
--enable-inline-optimization \
--with-bz2 \
--with-db4=%{_prefix} \
--with-curl \
--with-exec-dir=%{_bindir} \
--with-freetype-dir=%{_prefix} \
--with-png-dir=%{_prefix} \
--with-gd \
--enable-gd-native-ttf \
--without-gdbm \
--with-gettext \
--with-ncurses \
--with-gmp \
--with-iconv \
--with-jpeg-dir=%{_prefix} \
--with-openssl \
--with-png \
--with-pspell \
--with-regex=system \
--with-xml \
--with-expat-dir=%{_prefix} \
--with-dom=shared,%{_prefix} \
--with-dom-xslt=%{_prefix} --with-dom-exslt=%{_prefix} \
--with-xmlrpc=shared \
--with-pcre-regex=%{_prefix} \
--with-zlib \
--with-layout=GNU \
--enable-bcmath \
--enable-ftp \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-discard-path \
--enable-track-vars \
--enable-trans-sid \
--enable-yp \
--enable-wddx \
--without-oci8 \
--with-pear=/usr/share/pear \
--with-imap=shared \
--with-imap-ssl \
--with-kerberos \
--with-ldap=shared \
--with-mysql=shared,%{_prefix} \
%if %{oracle}
--with-oci8=shared \
%endif
%if %{mssql}
--with-mssql=shared \
%endif
--with-pgsql=shared \
--with-snmp=shared,%{_prefix} \
--with-snmp=shared \
--enable-ucd-snmp-hack \
--with-unixODBC=shared \
%if %{interbase}
--with-interbase=shared,/opt/interbase \
%endif
--enable-memory-limit \
--enable-bcmath \
--enable-shmop \
--enable-calendar \
--enable-exif \
--enable-dbx \
--enable-mbstring --enable-mbstr-enc-trans \
--enable-dio \
--enable-mcal \
--enable-mbregex \
$*

============================================================================

1) mbstring

now, when i try to run the rpmbuild command, i get this output:

============================================================================
gcc -DNOT_RUBY -DHAVE_CONFIG_H -Iext/mbstring/
-I/usr/src/redhat/BUILD/php-5.0.0/ext/mbstring/ -DPHP_ATOM_INC
-I/usr/src/redhat/BUILD/php-5.0.0/build-cgi/include
-I/usr/src/redhat/BUILD/php-5.0.0/build-cgi/main
-I/usr/src/redhat/BUILD/php-5.0.0
-I/usr/src/redhat/BUILD/php-5.0.0/build-cgi/Zend
-I/usr/include/libxml2 -I/usr/kerberos/include
-I/usr/include/freetype2 -I/usr/include/imap -I/opt/interbase/include
-I/usr/src/redhat/BUILD/php-5.0.0/ext/mbstring/oniguruma
-I/usr/src/redhat/BUILD/php-5.0.0/ext/mbstring/libmbfl
-I/usr/src/redhat/BUILD/php-5.0.0/ext/mbstring/libmbfl/mbfl
-I/usr/include/mysql -I/usr/include/ncurses -I/usr/include/pcre
-I/usr/include/pspell -I/usr/src/redhat/BUILD/php-5.0.0/main
-I/usr/src/redhat/BUILD/php-5.0.0/Zend
-I/usr/src/redhat/BUILD/php-5.0.0/TSRM
-I/usr/src/redhat/BUILD/php-5.0.0/build-cgi/TSRM -O2 -g -pipe
-march=i386 -mcpu=i686 -Wall -fno-strict-aliasing
-I/usr/kerberos/include -c
/usr/src/redhat/BUILD/php-5.0.0/ext/mbstring/mbstring.c -o
ext/mbstring/mbstring.o && echo > ext/mbstring/mbstring.lo

In file included from
/usr/src/redhat/BUILD/php-5.0.0/ext/mbstring/php_mbregex.h:28,
from
/usr/src/redhat/BUILD/php-5.0.0/ext/mbstring/mbstring.h:77,
from
/usr/src/redhat/BUILD/php-5.0.0/ext/mbstring/mbstring.c:55:
/usr/src/redhat/BUILD/php-5.0.0/ext/mbstring/oniguruma/oniguruma.h:573:
error: redefinition of `struct re_registers'

make: *** [ext/mbstring/mbstring.lo] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.70069 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.70069 (%build)
============================================================================

so i go to the php web site, but there are no docs written yet on the
configure commands. so i just comment out the option in my configure
command in my php.spec which says:

# --enable-mbstring --enable-mbstr-enc-trans \

(after doing a little googling around, and guessing that these options
have to do with 16-bit characters/japanese support, and hoping it
won't hinder me further.

2) exif

so i re-try another build, and this is what i get in output:

============================================================================

/bin/sh /usr/src/redhat/BUILD/php-5.0.0/build-cgi/libtool --silent
--preserve-dup-deps --mode=link gcc -export-dynamic -O2 -g -pipe
-march=i386 -mcpu=i686 -Wall -fno-strict-aliasing
-I/usr/kerberos/include -L/usr/kerberos/lib ext/libxml/libxml.lo
ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/zlib/zlib.lo
ext/zlib/zlib_fopen_wrapper.lo ext/bcmath/bcmath.lo
ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo
ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo
ext/bcmath/libbcmath/src/outofmem.lo
ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo
ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo
ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo
ext/bcmath/libbcmath/src/num2long.lo
ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo
ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo
ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo
ext/bcmath/libbcmath/src/nearzero.lo
ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo
ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo
ext/bz2/bz2.lo ext/calendar/calendar.lo ext/calendar/dow.lo
ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo
ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo
ext/ctype/ctype.lo ext/curl/interface.lo ext/curl/multi.lo
ext/curl/streams.lo ext/dba/dba.lo ext/dba/dba_cdb.lo
ext/dba/dba_db2.lo ext/dba/dba_dbm.lo ext/dba/dba_gdbm.lo
ext/dba/dba_ndbm.lo ext/dba/dba_db3.lo ext/dba/dba_db4.lo
ext/dba/dba_flatfile.lo ext/dba/dba_inifile.lo ext/dba/dba_qdbm.lo
ext/dba/libcdb/cdb.lo ext/dba/libcdb/cdb_make.lo
ext/dba/libcdb/uint32.lo ext/dba/libflatfile/flatfile.lo
ext/dba/libinifile/inifile.lo ext/dbx/dbx.lo ext/dbx/dbx_mysql.lo
ext/dbx/dbx_odbc.lo ext/dbx/dbx_pgsql.lo ext/dbx/dbx_mssql.lo
ext/dbx/dbx_fbsql.lo ext/dbx/dbx_oci8.lo ext/dbx/dbx_sybasect.lo
ext/dbx/dbx_sqlite.lo ext/dio/dio.lo ext/dom/php_dom.lo
ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo
ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo
ext/dom/processinginstruction.lo ext/dom/cdatasection.lo
ext/dom/documentfragment.lo ext/dom/domimplementation.lo
ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo
ext/dom/characterdata.lo ext/dom/documenttype.lo
ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo
ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo
ext/dom/domimplementationsource.lo ext/dom/entityreference.lo
ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo
ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo
ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/exif/exif.lo
ext/ftp/php_ftp.lo ext/ftp/ftp.lo ext/gd/gd.lo ext/gd/gdttf.lo
ext/gd/libgd/gd.lo ext/gd/libgd/gd_gd.lo ext/gd/libgd/gd_gd2.lo
ext/gd/libgd/gd_io.lo ext/gd/libgd/gd_io_dp.lo
ext/gd/libgd/gd_io_file.lo ext/gd/libgd/gd_ss.lo
ext/gd/libgd/gd_io_ss.lo ext/gd/libgd/gd_png.lo
ext/gd/libgd/gd_jpeg.lo ext/gd/libgd/gdxpm.lo ext/gd/libgd/gdfontt.lo
ext/gd/libgd/gdfonts.lo ext/gd/libgd/gdfontmb.lo
ext/gd/libgd/gdfontl.lo ext/gd/libgd/gdfontg.lo
ext/gd/libgd/gdtables.lo ext/gd/libgd/gdft.lo ext/gd/libgd/gdcache.lo
ext/gd/libgd/gdkanji.lo ext/gd/libgd/wbmp.lo ext/gd/libgd/gd_wbmp.lo
ext/gd/libgd/gdhelpers.lo ext/gd/libgd/gd_topal.lo
ext/gd/libgd/gd_gif_in.lo ext/gd/libgd/xbm.lo ext/gettext/gettext.lo
ext/gmp/gmp.lo ext/iconv/iconv.lo ext/ncurses/ncurses.lo
ext/ncurses/ncurses_fe.lo ext/ncurses/ncurses_functions.lo
ext/pcre/php_pcre.lo ext/posix/posix.lo ext/pspell/pspell.lo
ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo
ext/session/mod_user.lo ext/shmop/shmop.lo ext/simplexml/simplexml.lo
ext/sockets/sockets.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo
ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo
ext/spl/spl_directory.lo ext/spl/spl_sxe.lo ext/sqlite/sqlite.lo
ext/sqlite/sess_sqlite.lo ext/sqlite/libsqlite/src/opcodes.lo
ext/sqlite/libsqlite/src/parse.lo ext/sqlite/libsqlite/src/encode.lo
ext/sqlite/libsqlite/src/auth.lo ext/sqlite/libsqlite/src/btree.lo
ext/sqlite/libsqlite/src/build.lo ext/sqlite/libsqlite/src/delete.lo
ext/sqlite/libsqlite/src/expr.lo ext/sqlite/libsqlite/src/func.lo
ext/sqlite/libsqlite/src/hash.lo ext/sqlite/libsqlite/src/insert.lo
ext/sqlite/libsqlite/src/main.lo ext/sqlite/libsqlite/src/os.lo
ext/sqlite/libsqlite/src/pager.lo ext/sqlite/libsqlite/src/printf.lo
ext/sqlite/libsqlite/src/random.lo ext/sqlite/libsqlite/src/select.lo
ext/sqlite/libsqlite/src/table.lo ext/sqlite/libsqlite/src/tokenize.lo
ext/sqlite/libsqlite/src/update.lo ext/sqlite/libsqlite/src/util.lo
ext/sqlite/libsqlite/src/vdbe.lo ext/sqlite/libsqlite/src/attach.lo
ext/sqlite/libsqlite/src/btree_rb.lo
ext/sqlite/libsqlite/src/pragma.lo ext/sqlite/libsqlite/src/vacuum.lo
ext/sqlite/libsqlite/src/copy.lo ext/sqlite/libsqlite/src/vdbeaux.lo
ext/sqlite/libsqlite/src/date.lo ext/sqlite/libsqlite/src/where.lo
ext/sqlite/libsqlite/src/trigger.lo ext/standard/array.lo
ext/standard/base64.lo ext/standard/basic_functions.lo
ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo
ext/standard/cyr_convert.lo ext/standard/datetime.lo
ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo
ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo
ext/standard/flock_compat.lo ext/standard/formatted_print.lo
ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo
ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo
ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo
ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo
ext/standard/microtime.lo ext/standard/pack.lo
ext/standard/pageinfo.lo ext/standard/parsedate.lo
ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo
ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo
ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo
ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo
ext/standard/versioning.lo ext/standard/assert.lo
ext/standard/strnatcmp.lo ext/standard/levenshtein.lo
ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo
ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo
ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo
ext/standard/css.lo ext/standard/var_unserializer.lo
ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo
ext/standard/uuencode.lo ext/standard/filters.lo
ext/standard/proc_open.lo ext/standard/sunfuncs.lo
ext/standard/streamsfuncs.lo ext/standard/http.lo
ext/sysvsem/sysvsem.lo ext/sysvshm/sysvshm.lo
ext/tokenizer/tokenizer.lo ext/wddx/wddx.lo ext/xml/xml.lo
ext/xml/compat.lo ext/yp/yp.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo
TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo
main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo
main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo
main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo
main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo
main/php_variables.lo main/php_ticks.lo main/network.lo
main/php_open_temporary_file.lo main/php_logos.lo main/output.lo
main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo
main/streams/filter.lo main/streams/plain_wrapper.lo
main/streams/userspace.lo main/streams/transports.lo
main/streams/xp_socket.lo main/streams/mmap.lo
Zend/zend_language_parser.lo Zend/zend_language_scanner.lo
Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo
Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo
Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo
Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo
Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo
Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo
Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo
Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo
Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo
Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo
Zend/zend_objects.lo Zend/zend_object_handlers.lo
Zend/zend_objects_API.lo Zend/zend_mm.lo Zend/zend_default_classes.lo
Zend/zend_reflection_api.lo Zend/zend_execute.lo sapi/cgi/cgi_main.lo
sapi/cgi/getopt.lo main/internal_functions.lo -lcrypt -lnsl -lcrypt
-lpspell -lpcre -lpanel -lncurses -lgmp -lfreetype -lpng -lz -ljpeg
-ldb-4.2 -lcurl -lbz2 -lz -lm -lfreetype -lpng -ljpeg -lz -lnsl
-L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err
-lk5crypto -lresolv -ldl -lz -lxml2 -lz -lm -lssl -lcrypto
-lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lcurl
-lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl
-lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err
-lk5crypto -lresolv -ldl -lz -lz -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt
-lxml2 -lz -lm -lcrypt -o sapi/cgi/php
libtool: link: `ext/libxml/libxml.lo' is not a valid libtool object
make: *** [sapi/cgi/php] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.72048 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.72048 (%build)


============================================================================

so i comment out the exif, since as far as i can tell (googling
again), exif has to do embedded thumbnails and comments in jpegs.
again, as far as i can tell at least, i won't need this. being
pragmatic again, i just comment out the option:

# --enable-exif \

and move it past the configure command.

3) libxml

now i try a third time and get this error:

============================================================================

/bin/sh /usr/src/redhat/BUILD/php-5.0.0/build-cgi/libtool --silent
--preserve-dup-deps --mode=link gcc -export-dynamic -O2 -g -pipe
-march=i386 -mcpu=i686 -Wall -fno-strict-aliasing
-I/usr/kerberos/include -L/usr/kerberos/lib ext/libxml/libxml.lo
ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/zlib/zlib.lo
ext/zlib/zlib_fopen_wrapper.lo ext/bcmath/bcmath.lo
ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo
ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo
ext/bcmath/libbcmath/src/outofmem.lo
ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo
ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo
ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo
ext/bcmath/libbcmath/src/num2long.lo
ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo
ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo
ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo
ext/bcmath/libbcmath/src/nearzero.lo
ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo
ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo
ext/bz2/bz2.lo ext/calendar/calendar.lo ext/calendar/dow.lo
ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo
ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo
ext/ctype/ctype.lo ext/curl/interface.lo ext/curl/multi.lo
ext/curl/streams.lo ext/dba/dba.lo ext/dba/dba_cdb.lo
ext/dba/dba_db2.lo ext/dba/dba_dbm.lo ext/dba/dba_gdbm.lo
ext/dba/dba_ndbm.lo ext/dba/dba_db3.lo ext/dba/dba_db4.lo
ext/dba/dba_flatfile.lo ext/dba/dba_inifile.lo ext/dba/dba_qdbm.lo
ext/dba/libcdb/cdb.lo ext/dba/libcdb/cdb_make.lo
ext/dba/libcdb/uint32.lo ext/dba/libflatfile/flatfile.lo
ext/dba/libinifile/inifile.lo ext/dbx/dbx.lo ext/dbx/dbx_mysql.lo
ext/dbx/dbx_odbc.lo ext/dbx/dbx_pgsql.lo ext/dbx/dbx_mssql.lo
ext/dbx/dbx_fbsql.lo ext/dbx/dbx_oci8.lo ext/dbx/dbx_sybasect.lo
ext/dbx/dbx_sqlite.lo ext/dio/dio.lo ext/dom/php_dom.lo
ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo
ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo
ext/dom/processinginstruction.lo ext/dom/cdatasection.lo
ext/dom/documentfragment.lo ext/dom/domimplementation.lo
ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo
ext/dom/characterdata.lo ext/dom/documenttype.lo
ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo
ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo
ext/dom/domimplementationsource.lo ext/dom/entityreference.lo
ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo
ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo
ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/ftp/php_ftp.lo
ext/ftp/ftp.lo ext/gd/gd.lo ext/gd/gdttf.lo ext/gd/libgd/gd.lo
ext/gd/libgd/gd_gd.lo ext/gd/libgd/gd_gd2.lo ext/gd/libgd/gd_io.lo
ext/gd/libgd/gd_io_dp.lo ext/gd/libgd/gd_io_file.lo
ext/gd/libgd/gd_ss.lo ext/gd/libgd/gd_io_ss.lo ext/gd/libgd/gd_png.lo
ext/gd/libgd/gd_jpeg.lo ext/gd/libgd/gdxpm.lo ext/gd/libgd/gdfontt.lo
ext/gd/libgd/gdfonts.lo ext/gd/libgd/gdfontmb.lo
ext/gd/libgd/gdfontl.lo ext/gd/libgd/gdfontg.lo
ext/gd/libgd/gdtables.lo ext/gd/libgd/gdft.lo ext/gd/libgd/gdcache.lo
ext/gd/libgd/gdkanji.lo ext/gd/libgd/wbmp.lo ext/gd/libgd/gd_wbmp.lo
ext/gd/libgd/gdhelpers.lo ext/gd/libgd/gd_topal.lo
ext/gd/libgd/gd_gif_in.lo ext/gd/libgd/xbm.lo ext/gettext/gettext.lo
ext/gmp/gmp.lo ext/iconv/iconv.lo ext/ncurses/ncurses.lo
ext/ncurses/ncurses_fe.lo ext/ncurses/ncurses_functions.lo
ext/pcre/php_pcre.lo ext/posix/posix.lo ext/pspell/pspell.lo
ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo
ext/session/mod_user.lo ext/shmop/shmop.lo ext/simplexml/simplexml.lo
ext/sockets/sockets.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo
ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo
ext/spl/spl_directory.lo ext/spl/spl_sxe.lo ext/sqlite/sqlite.lo
ext/sqlite/sess_sqlite.lo ext/sqlite/libsqlite/src/opcodes.lo
ext/sqlite/libsqlite/src/parse.lo ext/sqlite/libsqlite/src/encode.lo
ext/sqlite/libsqlite/src/auth.lo ext/sqlite/libsqlite/src/btree.lo
ext/sqlite/libsqlite/src/build.lo ext/sqlite/libsqlite/src/delete.lo
ext/sqlite/libsqlite/src/expr.lo ext/sqlite/libsqlite/src/func.lo
ext/sqlite/libsqlite/src/hash.lo ext/sqlite/libsqlite/src/insert.lo
ext/sqlite/libsqlite/src/main.lo ext/sqlite/libsqlite/src/os.lo
ext/sqlite/libsqlite/src/pager.lo ext/sqlite/libsqlite/src/printf.lo
ext/sqlite/libsqlite/src/random.lo ext/sqlite/libsqlite/src/select.lo
ext/sqlite/libsqlite/src/table.lo ext/sqlite/libsqlite/src/tokenize.lo
ext/sqlite/libsqlite/src/update.lo ext/sqlite/libsqlite/src/util.lo
ext/sqlite/libsqlite/src/vdbe.lo ext/sqlite/libsqlite/src/attach.lo
ext/sqlite/libsqlite/src/btree_rb.lo
ext/sqlite/libsqlite/src/pragma.lo ext/sqlite/libsqlite/src/vacuum.lo
ext/sqlite/libsqlite/src/copy.lo ext/sqlite/libsqlite/src/vdbeaux.lo
ext/sqlite/libsqlite/src/date.lo ext/sqlite/libsqlite/src/where.lo
ext/sqlite/libsqlite/src/trigger.lo ext/standard/array.lo
ext/standard/base64.lo ext/standard/basic_functions.lo
ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo
ext/standard/cyr_convert.lo ext/standard/datetime.lo
ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo
ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo
ext/standard/flock_compat.lo ext/standard/formatted_print.lo
ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo
ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo
ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo
ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo
ext/standard/microtime.lo ext/standard/pack.lo
ext/standard/pageinfo.lo ext/standard/parsedate.lo
ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo
ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo
ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo
ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo
ext/standard/versioning.lo ext/standard/assert.lo
ext/standard/strnatcmp.lo ext/standard/levenshtein.lo
ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo
ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo
ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo
ext/standard/css.lo ext/standard/var_unserializer.lo
ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo
ext/standard/uuencode.lo ext/standard/filters.lo
ext/standard/proc_open.lo ext/standard/sunfuncs.lo
ext/standard/streamsfuncs.lo ext/standard/http.lo
ext/sysvsem/sysvsem.lo ext/sysvshm/sysvshm.lo
ext/tokenizer/tokenizer.lo ext/wddx/wddx.lo ext/xml/xml.lo
ext/xml/compat.lo ext/yp/yp.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo
TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo
main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo
main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo
main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo
main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo
main/php_variables.lo main/php_ticks.lo main/network.lo
main/php_open_temporary_file.lo main/php_logos.lo main/output.lo
main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo
main/streams/filter.lo main/streams/plain_wrapper.lo
main/streams/userspace.lo main/streams/transports.lo
main/streams/xp_socket.lo main/streams/mmap.lo
Zend/zend_language_parser.lo Zend/zend_language_scanner.lo
Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo
Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo
Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo
Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo
Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo
Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo
Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo
Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo
Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo
Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo
Zend/zend_objects.lo Zend/zend_object_handlers.lo
Zend/zend_objects_API.lo Zend/zend_mm.lo Zend/zend_default_classes.lo
Zend/zend_reflection_api.lo Zend/zend_execute.lo sapi/cgi/cgi_main.lo
sapi/cgi/getopt.lo main/internal_functions.lo -lcrypt -lnsl -lcrypt
-lpspell -lpcre -lpanel -lncurses -lgmp -lfreetype -lpng -lz -ljpeg
-ldb-4.2 -lcurl -lbz2 -lz -lm -lfreetype -lpng -ljpeg -lz -lnsl
-L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err
-lk5crypto -lresolv -ldl -lz -lxml2 -lz -lm -lssl -lcrypto
-lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lcurl
-lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl
-lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err
-lk5crypto -lresolv -ldl -lz -lz -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt
-lxml2 -lz -lm -lcrypt -o sapi/cgi/php

libtool: link: `ext/libxml/libxml.lo' is not a valid libtool object
make: *** [sapi/cgi/php] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.29174 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.29174 (%build)


============================================================================

so close, and yet so far!!!! down to the php executable itself!

well, i look a little closer and notice that the libxml.lo file itself
is only 1 character long. also, so are the other .lo files in that
directory. is this intentional? what is right or wrong here? i know
nothing about libtool..

i could kind of do without 16-bit char support and jpeg thumbnails,
but i need to parse xml. does anyone have any idea what is going on
and how i could fix it?

i would be most appreciative, thanks..

Search Discussions

  • Marcus Boerger at Jul 17, 2004 at 12:25 am
    Hello Jeff,

    try te attached script as a base for your needs and don't send such long
    mails without any usefull information - instead please try to strip down
    the mails to the parts containing usefull information...:-)

    marcus

    Saturday, July 17, 2004, 12:38:28 AM, you wrote:
    hi, i am trying to compile rpms for php5.0.0 based on taking the 5.0.0
    source just released on the 13th, and using the php.spec file from the
    4.3.6 source rpm and tweaking it a little. basically, i'm trying to
    stay close to what redhat has in its configure (even though it's a ton
    of stuff), because i can't really tell what all the configure options
    are, and what i would or wouldn't need. i did have to write in a a
    separate interbase package (creates "php-interbase-<version>.rpm")
    with options similar to mssql and oracle, following the redhat lead,
    and this has worked in previous versions. i am on a fedora core 2
    system, with all updates applied (daily).
    the problem is i am getting 3 errors , the most important from libtool.
    here they are documented here. if anyone has any idea, i'd be most
    appreciative.. thanks
    here is my build command:
    ============================================================================
    rpmbuild --define 'interbase 1' -bb php.spec
    ============================================================================
    and here is the relevant configure line out of the php.spec:
    ============================================================================

    --
    Best regards,
    Marcus mailto:helly@php.net
  • Jeff Stern at Jul 19, 2004 at 8:20 pm
    hey marcus,
    On Sat, 17 Jul 2004, Marcus Boerger wrote:

    try te attached script as a base for your needs and don't send
    such long mails without any usefull information - instead
    please try to strip down the mails to the parts containing
    usefull information...:-)
    okay, thanks for the script, but i can't really tell how that
    will help me.. that just creates a spec file, right? but i
    already have one set up the way i want.. how will that help?

    also, the .spec that script creates does not include xml, but i
    need some of the xml functions -- that seems to be where it is
    bombing out..

    i don't know what you mean by "useful" information, but here i
    will just cut down to the basics -- the last few lines of the
    compilation, when it is bombing out. it appears to have built all
    its .lo's and is getting down to the end, and now wants to just
    link everything into the php executable? (just guessing).. . if
    you / anyone needs more, i am happy to supply. here are the last
    few lines:

    ======================================================================
    /bin/sh /usr/src/redhat/BUILD/php-5.0.0/build-cgi/libtool --silent
    --preserve-dup-deps --mode=link gcc -export-dynamic -O2 -g -pipe
    -march=i386 -mcpu=i686 -Wall -fno-strict-aliasing
    -I/usr/kerberos/include -L/usr/kerberos/lib ext/libxml/libxml.lo
    ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/zlib/zlib.lo
    ...
    ...
    Zend/zend_objects_API.lo Zend/zend_mm.lo Zend/zend_default_classes.lo
    Zend/zend_reflection_api.lo Zend/zend_execute.lo sapi/cgi/cgi_main.lo
    sapi/cgi/getopt.lo main/internal_functions.lo -lcrypt -lnsl -lcrypt
    -lpspell -lpcre -lpanel -lncurses -lgmp -lfreetype -lpng -lz -ljpeg
    -ldb-4.2 -lcurl -lbz2 -lz -lm -lfreetype -lpng -ljpeg -lz -lnsl
    -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err
    -lk5crypto -lresolv -ldl -lz -lxml2 -lz -lm -lssl -lcrypto
    -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lcurl
    -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl
    -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err
    -lk5crypto -lresolv -ldl -lz -lz -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt
    -lxml2 -lz -lm -lcrypt -o sapi/cgi/php

    libtool: link: `ext/libxml/libxml.lo' is not a valid libtool object
    make: *** [sapi/cgi/php] Error 1
    error: Bad exit status from /var/tmp/rpm-tmp.29174 (%build)


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.29174 (%build)


    ============================================================================
  • Joe Orton at Jul 19, 2004 at 9:25 pm

    On Mon, Jul 19, 2004 at 01:20:26PM -0700, Jeff Stern wrote:
    libtool: link: `ext/libxml/libxml.lo' is not a valid libtool object
    make: *** [sapi/cgi/php] Error 1
    error: Bad exit status from /var/tmp/rpm-tmp.29174 (%build)
    IIRC this is the error you get from trying to build PHP using libtool
    1.5, which isn't a support configuration. Try applying this patch
    before running ./buildconf (it applies to 5.0.0 too):

    --- php-4.3.2/acinclude.m4.libtool15
    +++ php-4.3.2/acinclude.m4
    @@ -821,12 +821,12 @@
    dnl
    AC_DEFUN([PHP_BUILD_PROGRAM],[
    OVERALL_TARGET=[]ifelse($1,,php,$1)
    - php_c_pre='$(CC)'
    - php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
    - php_c_post=' && echo > $[@]'
    - php_cxx_pre='$(CXX)'
    - php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
    - php_cxx_post=' && echo > $[@]'
    + php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
    + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -prefer-non-pic'
    + php_c_post=
    + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
    + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -prefer-non-pic'
    + php_cxx_post=
    php_lo=o

    shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedJul 16, '04 at 10:38p
activeJul 19, '04 at 9:25p
posts4
users3
websitephp.net

People

Translate

site design / logo © 2022 Grokbase