Kaiko Kaur wrote:
On Wed, Dec 10, 2003 at 11:05:33AM -0800, Stas Bekman wrote:

Kaiko Kaur wrote:
[...]

I recompiled freetype library and gd library and have result:
# ldd /usr/lib/libgd.so
      libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4003b000)
      libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4005a000)
      libpng.so.3 => /usr/lib/libpng.so.3 (0x400a4000)
      libz.so.1 => /usr/lib/libz.so.1 (0x400cf000)
      libm.so.6 => /lib/libm.so.6 (0x400de000)
      libc.so.6 => /lib/libc.so.6 (0x40101000)
      /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

Still no results.

Problem was php. PHP was compiled with gd and I don't know when and how.
Anyway... I did it again (--with-gd=/usr) and it worked.

You mean it was compiled with a different library of gd? Sounds like the --with-mysql problem people had with mp1 and php.

My guess stays the same, php must have been compiled with a different build of gd or it did something to it so it'll appear different. Once you load two versions of libgd into the same process, boom, crash, bang, is the obvious thing to happen.


Quite instructional case for me.

Could you please summarize things up, the problem and the solution, so we can document it? Thanks.


I have no long experience with libraries. Anyway, it seems php don't accept
gd library as it is. I don't know how this is possible and why php is doing
this!?

First, I made gd with freetype: ./configure --prefix=/usr --with-freetype
(Freetype was already in /usr/lib/libfreetype.so.6)

Then Apache 2.0.48: ./configure --prefix=/usr --enable-so
Then mod_perl-1.99_11: perl Makefile.PL MP_APXS=/usr/bin/apxs
Then GD.pm with cpan.

Then played with php. If I compile php very simple way with gd:
./configure --with-apxs2=/usr/bin/apxs --with-gd --with-zlib-dir=/usr
I can't use freetype features with mod_perl nor php (actually I didn't check
php, but I'm quite sure I can't).

And now php (4.3.4)...
Working installations are:
./configure --with-apxs2=/usr/bin/apxs --with-gd=/usr --with-zlib-dir=/usr
./configure --with-apxs2=/usr/bin/apxs --with-gd-dir=/usr --with-zlib-dir=/usr

(giving only gd-dir will not compile gd into php)

Not working:
./configure --with-apxs2=/usr/bin/apxs --with-gd --with-zlib-dir=/usr
./configure --with-apxs2=/usr/bin/apxs --with-gd --with-zlib-dir=/usr --with-natural-freetype
./configure --with-apxs2=/usr/bin/apxs --with-gd --with-gd-dir=/usr --with-zlib-dir=/usr


Can anyone tell me (and others) what is going on?
What else should be tested?

It is getting off topic. It seems to me this is php problem, not mod_perl.
Btw, I have never done image creation with php. So I didn't it now. Should I?

Yeah, looks like you need to take these issues to the php support list. It'd be nice if you've reported back any interesting finding that may help mod_perl 2.0 users who need to have php and gd.


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to