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. > > >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? -- Kaiko Kaur -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html