php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25809 attempting to configure with xslt option breaks configure script for yp
Submitted: 2003-10-09 13:30 UTC Modified: 2003-10-13 19:06 UTC
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: xirkus at z1r0 dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.2 OS: Linux Kernel 2.4.21
Private report: No CVE-ID: None
 [2003-10-09 13:30 UTC] xirkus at z1r0 dot com
Description:
------------
When ever I attempt to compile php 4.3.2 with both the :

--enable-xslt
--with-xslt-sablot=/usr/local/lib

options and :

--enable-yp

in my configure script, I receive the following errors:

configure: error: Unable to find required yp/nis library
make: *** No targets sepcified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
make: *** No rule to make target `distclean'. Stop.

If I remove the xslt options, configure compiles php without any problems what so ever.

Help resolving this issue would be greatly appreciated.

Mel Llaguno


Expected result:
----------------
I should be able to compile php with both the --enable-yp and --enable-xslt options working.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-09 18:12 UTC] sniper@php.net
And by using correct configure options might help too:

--with-xslt-sablot=/usr/local

 [2003-10-10 11:06 UTC] xirkus at z1r0 dot com
I've tried with a vanilla:

--with-xslt-sablot

and :

--with-xslt-sablot=/usr/local

as suggested by sniper@php.net. No go. It still breaks at the same point.

I would like to continue using 4.3.2 as I also have postgresql functionality enabled and there are reports that version 4.3.3 has problems connecting to the postgresql server. This is a production box and until 4.3.4 stable comes out, I would rather not be fiddling with a working php install.

Thanks,

Mel
 [2003-10-10 11:36 UTC] sniper@php.net
What does config.log have about this? Check the 20-30 last lines.

 [2003-10-10 11:36 UTC] sniper@php.net
Also, delete config.cache before reconfigure.

 [2003-10-10 13:11 UTC] xirkus at z1r0 dot com
The error generated at the end of config.log is as follows:

/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char yp_match();

int main() {
yp_match()
; return 0; }
configure:76976: checking for yp_match in -lc
configure:76995: gcc -o conftest -O2 -march=i386 -mcpu=i686  -L/usr/lib -ldb-3.3  -Wl,-rpath,/tmp/pine4.56/imap/c-client/lib -L/tmp/pine4.56/imap/c-client/lib -Wl,-rpath,/usr/local/pgsql/lib -L/usr/local/pgsql/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lc  -lsablot -lexpat -lcrypt -lmm -lpq -lcrypt -lgmp -lpng -lz -ljpeg -ldb-3.3 -lgdbm -lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lcurl -lz -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -lcrypt 1>&5
/usr/local/lib/libsablot.so: undefined reference to `operator new[](unsigned)'
/usr/local/lib/libsablot.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/local/lib/libsablot.so: undefined reference to `operator delete(void*)'
/usr/local/lib/libsablot.so: undefined reference to `__gxx_personality_v0'
/usr/local/lib/libsablot.so: undefined reference to `__cxa_pure_virtual'
/usr/local/lib/libsablot.so: undefined reference to `vtable for __cxxabiv1::__class_type_info'
/usr/local/lib/libsablot.so: undefined reference to `operator delete[](void*)'
/usr/local/lib/libsablot.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info'
/usr/local/lib/libsablot.so: undefined reference to `operator new(unsigned)'
collect2: ld returned 1 exit status
configure: failed program was:
#line 76984 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char yp_match();

int main() {
yp_match()
; return 0; }

It seems that sablotron is broken and spews out unresolved references. To confirm the problem, I uninstalled version 1.0 of sablotron and tried again with version 0.98. Same thing happened when attempting to compile php. Version 0.96 of sablotron is not available for download and version 0.95 is not supported by php 4.3.2.

Mel
 [2003-10-12 22:21 UTC] sniper@php.net
Self-compiled Sablot 1.0 works just fine. Sablotron seems to be very sensitive to the used GCC, etc. Just compile it from sources and it will work just fine.

 [2003-10-13 18:12 UTC] xirkus at z1r0 dot com
All sablotron installations are compiled fresh from source. Sorry ... I don't use RedHat.
 [2003-10-13 19:06 UTC] sniper@php.net
Search the bug database for example '__gxx_personality_v0' and you'll find several reports about this same thing. Do not reopen this, this is no PHP bug.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 10:01:32 2024 UTC