Re: Re: PHP 4.0 Bug #6055 Updated: require&include("http://...) crash whereas include("file.inc") works
| From: | Derick Rethans | Date: | Tue, 15 Aug 2000 14:30:56 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #6055 Updated: require&include("http://...) crash whereas include("file.inc") works | ||
| References: | 1 2 3 4 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-28960@lists.php.net to get a copy of this message | ||
Olivier Cahagne wrote:
> Hi,
>
> > > BTW, dbase_add_record() works fine too. Therefore, libmcrypt-2.2.7
> > didn't get
> > > included when building php, I'm going to try libmcrypt-2.4.4.
> >
> > Could you send me the error you did encounter with libmcrypt 2.2.7? It
> > should
> > work fine...
>
> I tested with php4-200008150545, with mcrypt.h and libmcrypt.a built with a
> simple ./configure.
> (this is with NetBSD 1.3.3 x86 and gcc 2.7.2.2)
>
> I've been using libmcrypt for 2 months now without problems with php 4.0.1-dev
> (and php-4.0.2-dev before mid-August).
>
> Here's the error with both headers and libs from v.2.2.7:
>
> checking for mcrypt support... yes
> checking for init_mcrypt in -lmcrypt... yes
> checking for mcrypt_module_open in -lmcrypt... no
> checking for mhash support... yes
>
> config.log says:
>
> configure:21423: checking for mcrypt support
> configure:21510: checking for init_mcrypt in -lmcrypt
> configure:21529: gcc -o conftest -g -O2 -I/usr/pkg/include -R/u/guest/www/mbin/
> i386-NetBSD/lib -L/u/guest/www/mbin/i386-NetBSD/lib conftest.c -lmcrypt -ljpeg
> -lgd -lresolv -lm -lcrypt -lresolv -L/u/guest/www/mbin/i386-NetBSD/lib -ljpeg 1
> >&5
> configure:21559: checking for mcrypt_module_open in -lmcrypt
> configure:21578: gcc -o conftest -g -O2 -I/usr/pkg/include -R/u/guest/www/mbin/
> i386-NetBSD/lib -L/u/guest/www/mbin/i386-NetBSD/lib conftest.c -lmcrypt -lmcryp
> t -ljpeg -lgd -lresolv -lm -lcrypt -lresolv -L/u/guest/www/mbin/i386-NetBSD/lib
> -ljpeg -lltdl 1>&5
> ld: -lltdl: no match
>
> However, I can still build php.
> (I don't remember if previous snapshots checked for mcrypt_module_open() or
> linked with libltdl.a)
This is very normal, init_mcrypt does only exists in mcrypt 2.2.7 and
mcrypt_open_module does only exists in mcrypt 2.4.4. This check is used to select
between 2.2.7 / 2.4.4. What does phpinfo(); tells you with this build?
>
>
> With v.2.4.4, it also fails:
>
> checking for mcrypt support... yes
> checking for init_mcrypt in -lmcrypt... no
> checking for mcrypt_module_open in -lmcrypt... no
> configure: error: Sorry
>
> config.log says:
>
> configure:21423: checking for mcrypt support
> configure:21510: checking for init_mcrypt in -lmcrypt
> configure:21529: gcc -o conftest -g -O2 -I/usr/pkg/include -R/u/guest/www/mbin/
> i386-NetBSD/lib -L/u/guest/www/mbin/i386-NetBSD/lib conftest.c -lmcrypt -ljpeg
> -lgd -lresolv -lm -lcrypt -lresolv -L/u/guest/www/mbin/i386-NetBSD/lib -ljpeg 1
> >&5
> mcrypt_modules.c:33: Undefined symbol `_lt_dlclose' referenced from text segment
> mcrypt_modules.c:34: Undefined symbol `_lt_dlclose' referenced from text segment
> mcrypt_modules.c:35: Undefined symbol `_lt_dlexit' referenced from text segment
> mcrypt_modules.c:66: Undefined symbol `_lt_dlinit' referenced from text segment
> mcrypt_modules.c:71: Undefined symbol `_lt_dladdsearchdir' referenced from text
> segment
> mcrypt_modules.c:73: Undefined symbol `_lt_dladdsearchdir' referenced from text
> segment
> mcrypt_modules.c:74: Undefined symbol `_lt_dladdsearchdir' referenced from text
> segment
> mcrypt_modules.c:78: Undefined symbol `_lt_dlopenext' referenced from text segme
> ntconfigure:21559: checking for mcrypt_module_open in -lmcrypt
> configure:21578: gcc -o conftest -g -O2 -I/usr/pkg/include -R/u/guest/www/mbin/
> i386-NetBSD/lib -L/u/guest/www/mbin/i386-NetBSD/lib conftest.c -lmcrypt -ljpeg
> -lgd -lresolv -lm -lcrypt -lresolv -L/u/guest/www/mbin/i386-NetBSD/lib -ljpeg -
> [...]
>
> lltdl 1>&5
> ld: -lltdl: no match
>
> One strange thing is the libmcrypt.a size:
Size isn't strange. With libmcrypt 2.4.4 all encryption modules are shared
library's. You can possible find them in /usr/local/lib/libmcrypt, libcrypt 2.2.7
has all algorithms build in, hence the size of 2.2.7 is much larger than 2.2.4.
>
>
> lrwx--x--x 1 www guest 17 Aug 15 15:53 libmcrypt.a@ -> libmcrypt.a.2.4.4
> -rw------- 1 www guest 333054 Jun 28 14:20 libmcrypt.a.2.2.7
> -rw------- 1 www guest 50802 Aug 15 14:52 libmcrypt.a.2.4.4
>
> I tried configuring and building libmcrypt-2.4.4 with --enable-static-link
> (link mcrypt statically) but it didn't help.
>
> I'd have to check NetBSD ports to see if there're problems with libmcrypt...
Don't looks like a problem with libmcrypt, but it seems that you don't have libltdl
installed (Which is installed if you compile libmcrypt from source, and do a make;
make install)
Please let me know if you succeed or need more information.
--
Derick Rethans
JDI Media Solutions
H.v.Tussenbroekstraat 1
6952 BL Dieren
The Netherlands
e-mail: d.rethans@jdimedia.nl
http://www.jdimedia.nl/