php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32200 Using both --with-apxs2 and --with-apxs2filter causes errors
Submitted: 2005-03-06 01:10 UTC Modified: 2005-03-14 22:12 UTC
From: goofreaks at yahoo dot co dot uk Assigned: sniper (profile)
Status: Closed Package: Compile Failure
PHP Version: 4CVS, 5CVS (2005-03-09) OS: Mac OS X 10.3.8
Private report: No CVE-ID: None
 [2005-03-06 01:10 UTC] goofreaks at yahoo dot co dot uk
Description:
------------
Configure works fine, but make fails.

Reproduce code:
---------------
./configure --prefix=/usr/local/php5 --with-apxs2filter=/usr/local/apache2/bin/apxs --with-apxs2=/usr/local/apache2/bin/apxs --enable-cli --enable-cgi --enable-force-cgi-redirect --enable-discard-path --enable-fastcgi --disable-path-info-check --with-config-file-path=/usr/local/php5/lib --enable-safe-mode --with-exec-dir=/usr/local/php5/bin --disable-magic-quotes --disable-rpath --disable-short-tags --enable-libxml --with-libxml-dir=/usr/local/libxml2 --with-openssl-dir=/usr/include/openssl --with-zlib --with-zlib-dir=/usr/local/zlib --with-bz2 --enable-calendar --with-curl=/usr/local/curl --enable-dbx --disable-dio --enable-dom --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr/local/libjpeg --with-png-dir=/usr/local/libpng --with-tiff-dir=/usr/local/libtiff --with-freetype-dir=/usr/local --enable-gd-native-ttf --with-iconv --with-ldap=/usr --enable-mbstring --enable-mbregex --with-mysql=/usr/local/mysql --with-iodbc=/usr --with-pcre-regex --enable-posix --enable-session --enable-soap --enable-sockets --enable-xml --with-xsl=/usr/local/libxslt

Expected result:
----------------
Make to complete. :)

Actual result:
--------------
The last 3 lines output are:

gcc -bundle -bundle_loader /usr/local/apache2/bin/httpd 
-bundle -bundle_loader /usr/local/apache2/bin/httpd -g 
-O2   -L/usr/local/libxml2/lib -L/usr/local/curl/lib -L/
usr/local/libjpeg/lib -L/usr/local/libpng/lib -L/usr/
local/lib -L/usr/local/mysql/lib -L/usr/local/libxslt/
lib -L/usr/local/libxml2 ext/libxml/libxml.o ext/zlib/
zlib.o ext/zlib/zlib_fopen_wrapper.o ext/bz2/bz2.o ext/
calendar/calendar.o ext/calendar/dow.o ext/calendar/
french.o ext/calendar/gregor.o ext/calendar/jewish.o 
ext/calendar/julian.o ext/calendar/easter.o ext/
calendar/cal_unix.o ext/ctype/ctype.o ext/curl/
interface.o ext/curl/multi.o ext/curl/streams.o ext/dbx/
dbx.o ext/dbx/dbx_mysql.o ext/dbx/dbx_odbc.o ext/dbx/
dbx_pgsql.o ext/dbx/dbx_mssql.o ext/dbx/dbx_fbsql.o ext/
dbx/dbx_oci8.o ext/dbx/dbx_sybasect.o ext/dbx/
dbx_sqlite.o ext/dom/php_dom.o ext/dom/attr.o ext/dom/
document.o ext/dom/domerrorhandler.o ext/dom/
domstringlist.o ext/dom/domexception.o ext/dom/
namelist.o ext/dom/processinginstruction.o ext/dom/
cdatasection.o ext/dom/documentfragment.o ext/dom/
domimplementation.o ext/dom/element.o ext/dom/node.o 
ext/dom/string_extend.o ext/dom/characterdata.o ext/dom/
documenttype.o ext/dom/domimplementationlist.o ext/dom/
entity.o ext/dom/nodelist.o ext/dom/text.o ext/dom/
comment.o ext/dom/domconfiguration.o ext/dom/
domimplementationsource.o ext/dom/entityreference.o ext/
dom/notation.o ext/dom/xpath.o ext/dom/dom_iterators.o 
ext/dom/typeinfo.o ext/dom/domerror.o ext/dom/
domlocator.o ext/dom/namednodemap.o ext/dom/
userdatahandler.o ext/exif/exif.o ext/ftp/php_ftp.o ext/
ftp/ftp.o ext/gd/gd.o ext/gd/gdttf.o ext/gd/libgd/gd.o 
ext/gd/libgd/gd_gd.o ext/gd/libgd/gd_gd2.o ext/gd/libgd/
gd_io.o ext/gd/libgd/gd_io_dp.o ext/gd/libgd/
gd_io_file.o ext/gd/libgd/gd_ss.o ext/gd/libgd/
gd_io_ss.o ext/gd/libgd/gd_png.o ext/gd/libgd/gd_jpeg.o 
ext/gd/libgd/gdxpm.o ext/gd/libgd/gdfontt.o ext/gd/
libgd/gdfonts.o ext/gd/libgd/gdfontmb.o ext/gd/libgd/
gdfontl.o ext/gd/libgd/gdfontg.o ext/gd/libgd/gdtables.o 
ext/gd/libgd/gdft.o ext/gd/libgd/gdcache.o ext/gd/libgd/
gdkanji.o ext/gd/libgd/wbmp.o ext/gd/libgd/gd_wbmp.o 
ext/gd/libgd/gdhelpers.o ext/gd/libgd/gd_topal.o ext/gd/
libgd/gd_gif_in.o ext/gd/libgd/xbm.o ext/gd/libgd/
gd_gif_out.o ext/iconv/iconv.o ext/ldap/ldap.o ext/
mbstring/mbstring.o ext/mbstring/php_unicode.o ext/
mbstring/mb_gpc.o ext/mbstring/php_mbregex.o ext/
mbstring/oniguruma/regcomp.o ext/mbstring/oniguruma/
regerror.o ext/mbstring/oniguruma/regexec.o ext/
mbstring/oniguruma/reggnu.o ext/mbstring/oniguruma/
regparse.o ext/mbstring/oniguruma/regenc.o ext/mbstring/
oniguruma/enc/ascii.o ext/mbstring/oniguruma/enc/utf8.o 
ext/mbstring/oniguruma/enc/euc_jp.o ext/mbstring/
oniguruma/enc/euc_tw.o ext/mbstring/oniguruma/enc/
euc_kr.o ext/mbstring/oniguruma/enc/sjis.o ext/mbstring/
oniguruma/enc/iso8859_1.o ext/mbstring/oniguruma/enc/
iso8859_2.o ext/mbstring/oniguruma/enc/iso8859_3.o ext/
mbstring/oniguruma/enc/iso8859_4.o ext/mbstring/
oniguruma/enc/iso8859_5.o ext/mbstring/oniguruma/enc/
iso8859_6.o ext/mbstring/oniguruma/enc/iso8859_7.o ext/
mbstring/oniguruma/enc/iso8859_8.o ext/mbstring/
oniguruma/enc/iso8859_9.o ext/mbstring/oniguruma/enc/
iso8859_10.o ext/mbstring/oniguruma/enc/iso8859_11.o 
ext/mbstring/oniguruma/enc/iso8859_13.o ext/mbstring/
oniguruma/enc/iso8859_14.o ext/mbstring/oniguruma/enc/
iso8859_15.o ext/mbstring/oniguruma/enc/iso8859_16.o 
ext/mbstring/oniguruma/enc/koi8.o ext/mbstring/
oniguruma/enc/koi8_r.o ext/mbstring/oniguruma/enc/big5.o 
ext/mbstring/libmbfl/filters/html_entities.o ext/
mbstring/libmbfl/filters/mbfilter_7bit.o ext/mbstring/
libmbfl/filters/mbfilter_ascii.o ext/mbstring/libmbfl/
filters/mbfilter_base64.o ext/mbstring/libmbfl/filters/
mbfilter_big5.o ext/mbstring/libmbfl/filters/
mbfilter_byte2.o ext/mbstring/libmbfl/filters/
mbfilter_byte4.o ext/mbstring/libmbfl/filters/
mbfilter_cp1251.o ext/mbstring/libmbfl/filters/
mbfilter_cp1252.o ext/mbstring/libmbfl/filters/
mbfilter_cp866.o ext/mbstring/libmbfl/filters/
mbfilter_cp932.o ext/mbstring/libmbfl/filters/
mbfilter_cp936.o ext/mbstring/libmbfl/filters/
mbfilter_euc_cn.o ext/mbstring/libmbfl/filters/
mbfilter_euc_jp.o ext/mbstring/libmbfl/filters/
mbfilter_euc_jp_win.o ext/mbstring/libmbfl/filters/
mbfilter_euc_kr.o ext/mbstring/libmbfl/filters/
mbfilter_euc_tw.o ext/mbstring/libmbfl/filters/
mbfilter_htmlent.o ext/mbstring/libmbfl/filters/
mbfilter_hz.o ext/mbstring/libmbfl/filters/
mbfilter_iso2022_kr.o ext/mbstring/libmbfl/filters/
mbfilter_iso8859_1.o ext/mbstring/libmbfl/filters/
mbfilter_iso8859_10.o ext/mbstring/libmbfl/filters/
mbfilter_iso8859_13.o ext/mbstring/libmbfl/filters/
mbfilter_iso8859_14.o ext/mbstring/libmbfl/filters/
mbfilter_iso8859_15.o ext/mbstring/libmbfl/filters/
mbfilter_iso8859_2.o ext/mbstring/libmbfl/filters/
mbfilter_iso8859_3.o ext/mbstring/libmbfl/filters/
mbfilter_iso8859_4.o ext/mbstring/libmbfl/filters/
mbfilter_iso8859_5.o ext/mbstring/libmbfl/filters/
mbfilter_iso8859_6.o ext/mbstring/libmbfl/filters/
mbfilter_iso8859_7.o ext/mbstring/libmbfl/filters/
mbfilter_iso8859_8.o ext/mbstring/libmbfl/filters/
mbfilter_iso8859_9.o ext/mbstring/libmbfl/filters/
mbfilter_jis.o ext/mbstring/libmbfl/filters/
mbfilter_koi8r.o ext/mbstring/libmbfl/filters/
mbfilter_qprint.o ext/mbstring/libmbfl/filters/
mbfilter_sjis.o ext/mbstring/libmbfl/filters/
mbfilter_ucs2.o ext/mbstring/libmbfl/filters/
mbfilter_ucs4.o ext/mbstring/libmbfl/filters/
mbfilter_uhc.o ext/mbstring/libmbfl/filters/
mbfilter_utf16.o ext/mbstring/libmbfl/filters/
mbfilter_utf32.o ext/mbstring/libmbfl/filters/
mbfilter_utf7.o ext/mbstring/libmbfl/filters/
mbfilter_utf7imap.o ext/mbstring/libmbfl/filters/
mbfilter_utf8.o ext/mbstring/libmbfl/filters/
mbfilter_uuencode.o ext/mbstring/libmbfl/mbfl/mbfilter.o 
ext/mbstring/libmbfl/mbfl/mbfilter_8bit.o ext/mbstring/
libmbfl/mbfl/mbfilter_pass.o ext/mbstring/libmbfl/mbfl/
mbfilter_wchar.o ext/mbstring/libmbfl/mbfl/
mbfl_convert.o ext/mbstring/libmbfl/mbfl/mbfl_encoding.o 
ext/mbstring/libmbfl/mbfl/mbfl_filter_output.o ext/
mbstring/libmbfl/mbfl/mbfl_ident.o ext/mbstring/libmbfl/
mbfl/mbfl_language.o ext/mbstring/libmbfl/mbfl/
mbfl_memory_device.o ext/mbstring/libmbfl/mbfl/
mbfl_string.o ext/mbstring/libmbfl/mbfl/
mbfl_allocators.o ext/mbstring/libmbfl/nls/nls_de.o ext/
mbstring/libmbfl/nls/nls_en.o ext/mbstring/libmbfl/nls/
nls_ja.o ext/mbstring/libmbfl/nls/nls_kr.o ext/mbstring/
libmbfl/nls/nls_neutral.o ext/mbstring/libmbfl/nls/
nls_ru.o ext/mbstring/libmbfl/nls/nls_uni.o ext/
mbstring/libmbfl/nls/nls_zh.o ext/mysql/php_mysql.o ext/
odbc/php_odbc.o ext/pcre/pcrelib/maketables.o ext/pcre/
pcrelib/get.o ext/pcre/pcrelib/study.o ext/pcre/pcrelib/
pcre.o ext/pcre/php_pcre.o ext/posix/posix.o ext/
session/session.o ext/session/mod_files.o ext/session/
mod_mm.o ext/session/mod_user.o ext/simplexml/
simplexml.o ext/soap/soap.o ext/soap/php_encoding.o ext/
soap/php_http.o ext/soap/php_packet_soap.o ext/soap/
php_schema.o ext/soap/php_sdl.o ext/soap/php_xml.o ext/
sockets/sockets.o ext/spl/php_spl.o ext/spl/
spl_functions.o ext/spl/spl_engine.o ext/spl/
spl_iterators.o ext/spl/spl_array.o ext/spl/
spl_directory.o ext/spl/spl_sxe.o ext/sqlite/sqlite.o 
ext/sqlite/sess_sqlite.o ext/sqlite/libsqlite/src/
opcodes.o ext/sqlite/libsqlite/src/parse.o ext/sqlite/
libsqlite/src/encode.o ext/sqlite/libsqlite/src/auth.o 
ext/sqlite/libsqlite/src/btree.o ext/sqlite/libsqlite/
src/build.o ext/sqlite/libsqlite/src/delete.o ext/
sqlite/libsqlite/src/expr.o ext/sqlite/libsqlite/src/
func.o ext/sqlite/libsqlite/src/hash.o ext/sqlite/
libsqlite/src/insert.o ext/sqlite/libsqlite/src/main.o 
ext/sqlite/libsqlite/src/os.o ext/sqlite/libsqlite/src/
pager.o ext/sqlite/libsqlite/src/printf.o ext/sqlite/
libsqlite/src/random.o ext/sqlite/libsqlite/src/select.o 
ext/sqlite/libsqlite/src/table.o ext/sqlite/libsqlite/
src/tokenize.o ext/sqlite/libsqlite/src/update.o ext/
sqlite/libsqlite/src/util.o ext/sqlite/libsqlite/src/
vdbe.o ext/sqlite/libsqlite/src/attach.o ext/sqlite/
libsqlite/src/btree_rb.o ext/sqlite/libsqlite/src/
pragma.o ext/sqlite/libsqlite/src/vacuum.o ext/sqlite/
libsqlite/src/copy.o ext/sqlite/libsqlite/src/vdbeaux.o 
ext/sqlite/libsqlite/src/date.o ext/sqlite/libsqlite/
src/where.o ext/sqlite/libsqlite/src/trigger.o regex/
regcomp.o regex/regexec.o regex/regerror.o regex/
regfree.o ext/standard/array.o ext/standard/base64.o 
ext/standard/basic_functions.o ext/standard/browscap.o 
ext/standard/crc32.o ext/standard/crypt.o ext/standard/
cyr_convert.o ext/standard/datetime.o ext/standard/dir.o 
ext/standard/dl.o ext/standard/dns.o ext/standard/exec.o 
ext/standard/file.o ext/standard/filestat.o ext/
standard/flock_compat.o ext/standard/formatted_print.o 
ext/standard/fsock.o ext/standard/head.o ext/standard/
html.o ext/standard/image.o ext/standard/info.o ext/
standard/iptc.o ext/standard/lcg.o ext/standard/link.o 
ext/standard/mail.o ext/standard/math.o ext/standard/
md5.o ext/standard/metaphone.o ext/standard/microtime.o 
ext/standard/pack.o ext/standard/pageinfo.o ext/
standard/parsedate.o ext/standard/quot_print.o ext/
standard/rand.o ext/standard/reg.o ext/standard/
soundex.o ext/standard/string.o ext/standard/scanf.o 
ext/standard/syslog.o ext/standard/type.o ext/standard/
uniqid.o ext/standard/url.o ext/standard/url_scanner.o 
ext/standard/var.o ext/standard/versioning.o ext/
standard/assert.o ext/standard/strnatcmp.o ext/standard/
levenshtein.o ext/standard/incomplete_class.o ext/
standard/url_scanner_ex.o ext/standard/
ftp_fopen_wrapper.o ext/standard/http_fopen_wrapper.o 
ext/standard/php_fopen_wrapper.o ext/standard/credits.o 
ext/standard/css.o ext/standard/var_unserializer.o ext/
standard/ftok.o ext/standard/sha1.o ext/standard/
user_filters.o ext/standard/uuencode.o ext/standard/
filters.o ext/standard/proc_open.o ext/standard/
sunfuncs.o ext/standard/streamsfuncs.o ext/standard/
http.o ext/tokenizer/tokenizer.o ext/xml/xml.o ext/xml/
compat.o ext/xsl/php_xsl.o ext/xsl/xsltprocessor.o TSRM/
TSRM.o TSRM/tsrm_strtok_r.o TSRM/tsrm_virtual_cwd.o 
main/main.o main/snprintf.o main/spprintf.o main/
php_sprintf.o main/safe_mode.o main/fopen_wrappers.o 
main/alloca.o main/php_scandir.o main/php_ini.o main/
SAPI.o main/rfc1867.o main/php_content_types.o main/
strlcpy.o main/strlcat.o main/mergesort.o main/
reentrancy.o main/php_variables.o main/php_ticks.o main/
network.o main/php_open_temporary_file.o main/
php_logos.o main/output.o main/streams/streams.o main/
streams/cast.o main/streams/memory.o main/streams/
filter.o main/streams/plain_wrapper.o main/streams/
userspace.o main/streams/transports.o main/streams/
xp_socket.o main/streams/mmap.o Zend/
zend_language_parser.o Zend/zend_language_scanner.o 
Zend/zend_ini_parser.o Zend/zend_ini_scanner.o Zend/
zend_alloc.o Zend/zend_compile.o Zend/zend_constants.o 
Zend/zend_dynamic_array.o Zend/zend_execute_API.o Zend/
zend_highlight.o Zend/zend_llist.o Zend/zend_opcode.o 
Zend/zend_operators.o Zend/zend_ptr_stack.o Zend/
zend_stack.o Zend/zend_variables.o Zend/zend.o Zend/
zend_API.o Zend/zend_extensions.o Zend/zend_hash.o Zend/
zend_list.o Zend/zend_indent.o Zend/
zend_builtin_functions.o Zend/zend_sprintf.o Zend/
zend_ini.o Zend/zend_qsort.o Zend/zend_multibyte.o Zend/
zend_ts_hash.o Zend/zend_stream.o Zend/zend_iterators.o 
Zend/zend_interfaces.o Zend/zend_exceptions.o Zend/
zend_strtod.o Zend/zend_objects.o Zend/
zend_object_handlers.o Zend/zend_objects_API.o Zend/
zend_mm.o Zend/zend_default_classes.o Zend/
zend_reflection_api.o Zend/zend_execute.o sapi/
apache2filter/sapi_apache2.o sapi/apache2filter/
apache_config.o sapi/apache2filter/php_functions.o sapi/
apache2handler/mod_php5.o sapi/apache2handler/
sapi_apache2.o sapi/apache2handler/apache_config.o sapi/
apache2handler/php_functions.o main/internal_functions.o  
-lexslt -liodbc -lmysqlclient -lldap -llber -lfreetype 
-lpng -lz -ljpeg -lcurl -lbz2 -lz -lm -lxml2 -lz -liconv 
-lm -lcurl -lssl -lcrypto -lz -lxml2 -lz -liconv -lm 
-liodbc -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm 
-lxml2 -lz -liconv -lm -lxslt -lxml2 -lz -liconv -lm  -o 
libs/libphp5.bundle && cp libs/libphp5.bundle libs/
libphp5.so
ld: -bundle_loader multiply specified
make: *** [libs/libphp5.bundle] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-06 16:14 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-03-06 19:07 UTC] goofreaks at yahoo dot co dot uk
Make still fails with the snap, but the error is 
different:

ld: warning multiple definitions of symbol 
_pcre_stack_malloc
ext/pcre/pcrelib/pcre.o definition of _pcre_stack_malloc 
in section (__DATA,__data)
/usr/local/apache2/bin/httpd definition of 
_pcre_stack_malloc
make: *** [libs/libphp5.bundle] Error 1
 [2005-03-06 19:25 UTC] sniper@php.net
Are you really able to run configure with BOTH these in the ocnfigure line:

  --with-apxs2filter=/usr/local/apache2/bin/apxs
  --with-apxs2=/usr/local/apache2/bin/apxs

FYI: You can ONLY have either one.
Also, your configure line contains lot of entries which either don't exist or don't have any meaning when building apache module. Try this with the snapshot sources:

# rm config.cache
# ./configure --disable-all --with-apxs2=/usr/local/apache2/bin/apxs --with-pcre-regex



 [2005-03-06 23:19 UTC] goofreaks at yahoo dot co dot uk
With the latest snap "./configure --disable-all --with-
apxs2=/usr/local/apache2/bin/apxs --with-pcre-regex" and 
make work, although with a few warnings:

/usr/local/php-5.1.0-dev/main/snprintf.c: In function 
`format_converter':
/usr/local/php-5.1.0-dev/main/snprintf.c:917: warning: 
use of `long double' type; its size may change in a 
future release
/usr/local/php-5.1.0-dev/main/snprintf.c:917: warning: 
(Long double usage is reported only once for each file.
/usr/local/php-5.1.0-dev/main/snprintf.c:917: warning: 
To disable this warning, use -Wno-long-double.)
[...]
/usr/local/php-5.1.0-dev/main/spprintf.c: In function 
`xbuf_format_converter':
/usr/local/php-5.1.0-dev/main/spprintf.c:534: warning: 
use of `long double' type; its size may change in a 
future release
/usr/local/php-5.1.0-dev/main/spprintf.c:534: warning: 
(Long double usage is reported only once for each file.
/usr/local/php-5.1.0-dev/main/spprintf.c:534: warning: 
To disable this warning, use -Wno-long-double.)
[...]
ld: warning multiple definitions of symbol _pcre_callout
ext/pcre/pcrelib/pcre.o definition of _pcre_callout in 
section (__DATA,__data)
/usr/local/apache2/bin/httpd definition of _pcre_callout
ld: warning multiple definitions of symbol _pcre_config
ext/pcre/pcrelib/pcre.o definition of _pcre_config in 
section (__TEXT,__text)
/usr/local/apache2/bin/httpd definition of _pcre_config
ld: warning multiple definitions of symbol _pcre_free
ext/pcre/pcrelib/pcre.o definition of _pcre_free in 
section (__DATA,__data)
/usr/local/apache2/bin/httpd definition of _pcre_free
ld: warning multiple definitions of symbol _pcre_malloc
ext/pcre/pcrelib/pcre.o definition of _pcre_malloc in 
section (__DATA,__data)
/usr/local/apache2/bin/httpd definition of _pcre_malloc
ld: warning multiple definitions of symbol 
_pcre_stack_free
ext/pcre/pcrelib/pcre.o definition of _pcre_stack_free 
in section (__DATA,__data)
/usr/local/apache2/bin/httpd definition of 
_pcre_stack_free
ld: warning multiple definitions of symbol 
_pcre_stack_malloc
ext/pcre/pcrelib/pcre.o definition of _pcre_stack_malloc 
in section (__DATA,__data)
/usr/local/apache2/bin/httpd definition of 
_pcre_stack_malloc

I'll start the configure line over with the other 
entries -- I guess I got my notes a bit confused!

A suggestion for the "./configure --help" though, would 
it be possible to add in a note saying to only use one 
or other of --with-apxs2filter / --with-apxs2 ? It might 
stop someone else from making the same mistake that I 
did,
 [2005-03-14 22:12 UTC] sniper@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 11 21:01:27 2024 UTC