Bug #17604 Updated: Apache 2/MySQL/PHP4/Sablotron Will not compile

From: Date: Sun, 16 Jun 2002 09:34:04 +0000
Subject: Bug #17604 Updated: Apache 2/MySQL/PHP4/Sablotron Will not compile
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10564@lists.php.net to get a copy of this message
ID: 17604 Updated by: pavel@gingerall.cz Reported By: kevin@kevinfries.com Status: Feedback Bug Type: Compile Failure Operating System: Solaris 8 IA PHP Version: 4.2.1 New Comment: It looks like traditional problem with linking the C++ library (what Sablotron is) and C code. This is rather the autoconf/libtool issue then sablotron's one. Sablotron itself doesn't require any other librraies then expat and libjs (when enabled, what is not the problem discussed). An issue usually is, that gnu linker links additional 'magic' libraries to the executable file (not to the library file). This is typically named like libstdc++. Problem is, that Sablotron can not guess these libraries, since they depend on the system and compiler used. This is a known issue related to configuration tools, read libtool documentation and FAQs. It is possible to check, waht libraries are linked to working sabcmd (use something like ldd from GNU's binutils) and set LDFLAGS='-lsomething' when configuring PHP. Conclusion: may be I'm wrong, but problem described looks like one we meet from time to time. It is usually on platforms, where gnu tools are not the default (namely gnu ld is not the default linker). If I could do anything to kill this problem, I'd do it, but there are many people solving this problem with many libraries :( The best solution (of bad ones) is to maintain good README file and list libraries needed for different platforms. We'd like to do it in our README, but we usually do not get the solution and platform set, we can use is limited. Pavel (Sablotron maintainer) Previous Comments: ------------------------------------------------------------------------ [2002-06-15 23:09:48] sniper@php.net This sounds like some libraries are missing. There isn't much we can do about it unless sablot gets some 'sablot-config' script which tells what libraries are needed to link with it.. Please report this to the sablotron authors. ------------------------------------------------------------------------ [2002-06-05 20:27:36] kevin@kevinfries.com Sablotron version 0.90 All I did was a standard: ./configure make make install Nothing special ------------------------------------------------------------------------ [2002-06-05 18:18:51] sniper@php.net What version of sablotron is that? And how did you configure it? --Jani ------------------------------------------------------------------------ [2002-06-05 16:04:12] kevin@kevinfries.com OK, now this gets PHP to configure and make, but it still crashes apache on restart. I am now back to my original error: Syntax error on line 230 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp4.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/lib/libsablot.so.0: symbol _ZTVN10__cxxabiv120__si_class_type_infoE: referenced symbol not found apache/bin/apachectl start: httpd could not be started ------------------------------------------------------------------------ [2002-06-05 14:55:54] sniper@php.net --with-expat-dir=/usr/local/lib should be: --with-expat-dir=/usr/local/ ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/17604 -- Edit this bug report at http://bugs.php.net/?id=17604&edit=1

« previous php.bugs (#10564) next »