From:             elkner at linofee dot org
Operating system: Linux
PHP version:      5.0.2
PHP Bug Type:     Compile Failure
Bug description:  xsl: undefined reference to `php_dom_create_object'

Description:
------------
Can't compile php 5.0.2 with xsl support:

...
ext/xsl/.libs/xsltprocessor.o(.text+0x94f): In function
`xsl_ext_function_php':
/export/scratch/build/php-5.0.2/ext/xsl/xsltprocessor.c:204: undefined
reference to `php_dom_object_get_data'
ext/xsl/.libs/xsltprocessor.o(.text+0xb2b):/export/scratch/build/php-5.0.2/ext/xsl/xsltprocessor.c:229:
undefined reference to `php_dom_create_object'
ext/xsl/.libs/xsltprocessor.o(.text+0xfd9):/export/scratch/build/php-5.0.2/ext/xsl/xsltprocessor.c:291:
undefined reference to `dom_object_get_node'
ext/xsl/.libs/xsltprocessor.o(.text+0x194b): In function
`zif_xsl_xsltprocessor_transform_to_doc':
/export/scratch/build/php-5.0.2/ext/xsl/xsltprocessor.c:495: undefined
reference to `php_dom_create_object'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
...


Reproduce code:
---------------
    ./configure \
        --prefix=${PROTO}/opt/php \
        --disable-static \
        --enable-shared \
        \
        --enable-cli \
        --disable-cgi \
        --enable-discard-path \
        --enable-path-info-check \
        \
        --enable-debug \
        --enable-safe-mode \
        --enable-magic-quotes \
        --disable-rpath \
        --enable-short-tags \
        --disable-ipv6 \
        --enable-versioning \
        \
        --enable-libxml=shared \
        --enable-bcmath=shared \
        --enable-calendar=shared \
        --enable-ctype=shared \
        --enable-dba=shared \
        --enable-dbase=shared \
        --enable-dbx=shared \
        --enable-dio=shared \
        --enable-dom=shared \
        --enable-exif=shared \
        --enable-filepro=shared \
        --enable-ftp=shared \
        --enable-gd-native-ttf=shared \
        --enable-gd-jis-conv=shared \
        --enable-mbstring=shared \
        --enable-mbregex=shared \
        --enable-embedded-mysqli \
        --enable-posix=shared \
        --enable-session=shared \
        --enable-shmop=shared \
        --enable-soap=shared \
        --enable-sockets=shared \
        --enable-sysvmsg \
        --enable-sysvsem \
        --enable-sysvshm \
        --enable-tokenizer=shared \
        --disable-wddx \
        --enable-xml=shared=shared \
        \
        --enable-inline-optimization \
        --enable-memory-limit \
        --enable-zend-multibyte \
        \
        --with-apxs2=${ROOT4BUILD}/opt/www/bin/apxs \
        --with-config-file-path=/etc \
        --with-exec-dir \
        --with-libxml-dir=${ROOT4BUILD}/usr/lib --enable-shared=xml \
        --with-openssl=${ROOT4BUILD}/usr --enable-shared=openssl \
        --with-zlib=${ROOT4BUILD}/usr --enable-shared=zlib \
        --with-bz2=${ROOT4BUILD}/usr --enable-shared=bz2 \
        --without-cpdflib \
        --with-jpeg-dir=${ROOT4BUILD}/usr --enable-shared=jpeg \
        --with-tiff-dir=${ROOT4BUILD}/usr --enable-shared=tiff \
        --without-curl \
        --without-curl-wrappers \
        --without-qdbm \
        --with-gdbm=${ROOT4BUILD}/usr --enable-shared=gdbm \
        --with-db3=${ROOT4BUILD}/usr --enable-shared=db3 \
        --with-inifile=shared \
        --with-flatfile=shared \
        --with-fam=shared \
        --with-gd=shared \
        --with-png-dir=${ROOT4BUILD}/usr --enable-shared=png \
        --with-xpm-dir=${ROOT4BUILD}/usr --enable-shared=xpm \
        --without-ttf \
        --with-freetype-dir=${ROOT4BUILD}/usr \
        --with-t1lib=${ROOT4BUILD}/usr --enable-shared=t1lib \
        --with-gettext \
        --without-gmp \
        --with-iconv \
        --without-imap \
        --disable-mime-magic \
        --with-mysql=shared,${ROOT4BUILD}/usr --enable-shared=mysql \
        --with-mysql-sock=/var/run/mysql.sock \
        --with-ncurses=shared,${ROOT4BUILD}/usr --enable-shared=ncurses \
        --with-pcre-regex=${ROOT4BUILD}/usr --enable-shared=pcre-regex \
        --without-sqlite \
        --without-readline \
        --with-xsl=${ROOT4BUILD}/usr --enable-shared=xsl \



Expected result:
----------------
php should be able to recognize dependencies to other modules
and resolve them properly

Actual result:
--------------
none

-- 
Edit bug report at http://bugs.php.net/?id=30781&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30781&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=30781&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=30781&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30781&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30781&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30781&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30781&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30781&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30781&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30781&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=30781&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=30781&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30781&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30781&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30781&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30781&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30781&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30781&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30781&r=mysqlcfg

Reply via email to