Bug #18255: PHP Won't compile with mnogosearch (-ludmsearch)
| From: | m at manyone dot net | Date: | Wed, 10 Jul 2002 03:05:39 +0000 |
| Subject: | Bug #18255: PHP Won't compile with mnogosearch (-ludmsearch) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-13678@lists.php.net to get a copy of this message | ||
From: m@manyone.net
Operating system: Redhat Linux 7
PHP version: 4.2.1
PHP Bug Type: Compile Failure
Bug description: PHP Won't compile with mnogosearch (-ludmsearch)
Hello,
Spent all day trying to get this to work and finally did. Have seen many
people reporting this problem here, on the newsgroups and at the
mnogosearch site with PHP versions 4.0 through 4.2.1 and all versions of
mnoGoSearch.
The problem is, although mnoGoSearch compiles correctly (note you need to
compile is as a shared library and not a static library), PHP fails on
compilation at the link stage claiming that -ludmsearch cannot be found.
I believe that this only happens if --disable-rpath is passed in as one of
the PHP configure options, which seems to be in common usage.
The following example *WORKS*. Instructions for breaking follow.
- download mnoGoSearch (latest version).
- configure mnoGoSearch with
./configure --prefix=/usr/local/mnogosearch --enable-shared
--enable-syslog --disable-linux-pthreads --disable-freebsd-pthreads
--disable-charset-guesser --enable-parser --enable-mp3 --enable-aliasprog
--disable-news-extension --enable-fast-tag --enable-fast-cat
--enable-fast-site --enable-phrase --enable-exec-cgi --enable-file
--enable-http --enable-ftp --enable-htdb --enable-news --with-pgsql
make
make install
- download php4.2.1 source code
- configure PHP with
'./configure' 'i386-redhat-linux' '--prefix=/usr'
'--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--enable-inline-optimization'
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr'
'--with-config-file-path=/etc' '--disable-debug' '--enable-pic'
'--with-apxs' '--with-bz2' '--with-curl' '--with-db3'
'--with-dom'
'--with-exec-dir=/usr/bin' '--with-gd' '--with-gdbm'
'--with-gettext'
'--with-jpeg-dir=/usr' '--with-mm' '--with-openssl'
'--with-png'
'--with-regex=system' '--with-ttf' '--with-zlib'
'--with-layout=GNU'
'--enable-versioning' '--with-system-regex' '--enable-track-vars'
'--without-gd' '--without-mysql' '--with-zlib'
'--with-pgsql'
'--with-openssl' '--enable-ucd-snmp-hack' '--without-mysql'
'--without-unixODBC' '--without-oracle' '--without-oci8'
'--with-xml'
'--with-dom=/usr/local' '--enable-ftp'
'--with-mnogosearch=/usr/local/mnogosearch' '--enable-bcmath'
'--enable-sockets' '--enable-sysvsem' '--enable-sysvshm'
'--enable-trans-sid' '--enable-debugger' '--enable-magic-quotes'
'--enable-safe-mode' '--enable-track-vars' '--enable-wddx'
make
mkdir libs
make install
If you add '--disable-rpath' to the PHP configure line above, then it
breaks. All the examples I have seen where problems have arisen with
mnoGoSearch seem to contain this configure option.
Hope this helps.
--
Edit bug report at http://bugs.php.net/?id=18255&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18255&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18255&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18255&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18255&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18255&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18255&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18255&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18255&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18255&r=globals