Re: libmcrypt patch

From: Date: Fri, 15 Dec 2000 15:06:37 +0000
Subject: Re: libmcrypt patch
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-41475@lists.php.net to get a copy of this message
Quoting Jani Taskinen <sniper@iki.fi>: > On Fri, 15 Dec 2000, Anil Madhavapeddy wrote: > > >It is incorrectly detecting mcrypt-2.2 instead of 2.4, due to the fact > >that my copy of 2.4.7 has init_module defined, afaiks. Only way it works > >for me is with my previous patch in this thread to reverse the checks. > > /* */ > /* #undef HAVE_LIBMCRYPT22 */ > > /* */ > #define HAVE_LIBMCRYPT24 1 > For me: /* */ #define HAVE_LIBMCRYPT22 1 /* */ /* #undef HAVE_LIBMCRYPT24 */ > Where did you get the sources for it? > And how did you compile it? (configure lines for both php and mcrypt?) > Are you sure that the configure is not finding wrong library ?? My OpenBSD port of libmcrypt (which works fine with the command line mcrypt tool, by all reports). The overall line would be ./configure --prefix=/usr/local --enable-shared --enable-static From the port makefile: DISTNAME= libmcrypt-2.4.7 MASTER_SITES= http://mcrypt.hellug.gr/lib/ PHP configured with: ./configure --with-ldap=/usr/local --with- apxs=/usr/sbin/apxs --with-mysql=/usr/local --with-imap --with-gettext -- without-gd --with-mhash --with-mcrypt && make > > >How it's working for you is what is puzzling me; do you have init_mcrypt > >defined in your copy of libmcrypt-2.4? > > [root@sniper lib]# nm libmcrypt.a |grep init_mcrypt > U init_mcrypt > 00000000 t internal_init_mcrypt > 000004ac T init_mcrypt > [root@brick /]# nm /usr/local/lib/libmcrypt.so.4.4 | grep init_mcrypt 00001500 T _init_mcrypt [root@brick /]# nm /usr/local/lib/libmcrypt.a | grep init_mcrypt U _init_mcrypt 00000000 t _internal_init_mcrypt 00000690 T _init_mcrypt Sascha, what version of libmcrypt do you have, and under what OS? If I'm not mistaking my symbols, since the segment types are capital they are external, and so we do have init_mcrypt in our versions right? -- Anil Madhavapeddy, <anil@recoil.org>

« previous php.dev (#41475) next »