Hello ALL!
I have a problem in compiling GD-1.35. under Solaris 5.9 x86 with
succesfully installed packets such as freetype-1.3.1, gd-1.8.3,
jpeg-6b, libpng-1.2.4, zlib-1.1.4. Any help will be greatly
appreciated!

Please don't ask me why there are such old versions of packets - that
is problem of internal functioning of our web-site (it works only with
THESE packets, not newer).
Here I have logs.

bash-2.05# make
gcc -B/usr/ccs/bin/ -c -I/usr/local/include -I/usr/local/include/gd
-I/usr/local/include/freetype -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.35\"
-DXS_VERSION=\"1.35\" -fPIC
"-I/usr/local/lib/perl5/5.8.0/i86pc-solaris/CORE" -DHAVE_JPEG
-DHAVE_TTF -DHAVE_XPM GD.c
GD.xs: In function `XS_GD__Image__newFromPng':
GD.xs:368: warning: passing arg 1 of `gdImageCreateFromPng' from
incompatible pointer type
GD.xs: In function `XS_GD__Image__newFromXbm':
GD.xs:512: warning: passing arg 1 of `gdImageCreateFromXbm' from
incompatible pointer type
GD.xs: In function `XS_GD__Image__newFromGd':
GD.xs:522: warning: passing arg 1 of `gdImageCreateFromGd' from
incompatible pointer type
GD.xs: In function `XS_GD__Image__newFromGd2':
GD.xs:532: warning: passing arg 1 of `gdImageCreateFromGd2' from
incompatible pointer type
GD.xs: In function `XS_GD__Image__newFromJpeg':
GD.xs:546: warning: passing arg 1 of `gdImageCreateFromJpeg' from
incompatible pointer type
GD.xs: In function `XS_GD__Image__newFromWBMP':
GD.xs:571: warning: passing arg 1 of `gdImageCreateFromWBMP' from
incompatible pointer type
GD.xs: In function `XS_GD__Image_newFromXpm':
GD.xs:592: warning: assignment makes pointer from integer without a
cast
GD.xs: In function `XS_GD__Image__newFromGd2Part':
GD.xs:618: warning: passing arg 1 of `gdImageCreateFromGd2Part' from
incompatible pointer type
Running Mkbootstrap for GD ()
chmod 644 GD.bs
rm -f blib/arch/auto/GD/GD.so
LD_RUN_PATH="/usr/local/lib:/usr/sfw/lib:/usr/lib:/usr/openwin/lib"
gcc -B/usr/ccs/bin/ -G -L/usr/local/lib GD.o -o
blib/arch/auto/GD/GD.so -L/usr/local/lib -L/usr/openwin/lib
-L/usr/sfw/lib -lgd -lpng -lz -lttf -ljpeg -lm -lc -lX11 -lXpm
chmod 755 blib/arch/auto/GD/GD.so
cp GD.bs blib/arch/auto/GD/GD.bs
chmod 644 blib/arch/auto/GD/GD.bs
Manifying blib/man3/GD.3
bash-2.05# make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/GD....Can't load './blib/arch/auto/GD/GD.so' for module GD: ld.so.1:
/usr/local/bin/perl: fatal: libpng12.so.0: open
failed: No such file or directory at
/usr/local/lib/perl5/5.8.0/i86pc-solaris/DynaLoader.pm line 229.
at t/GD.t line 11
Compilation failed in require at t/GD.t line 11.
BEGIN failed--compilation aborted at t/GD.t line 11.
t/GD....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-10
Failed 10/10 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/GD.t 255 65280 10 10 100.00% 1-10
Failed 1/1 test scripts, 0.00% okay. 10/10 subtests failed, 0.00%
okay.
make: *** [test_dynamic] Error 2

#ldd GD.so shows
libpng12.so.0 => (file not found)
libttf.so.2 => (file not found)
libjpeg.so.62 => /usr/sfw/lib/libjpeg.so.62
libm.so.1 => /usr/lib/libm.so.1
libc.so.1 => /usr/lib/libc.so.1
libX11.so.4 => /usr/openwin/lib/libX11.so.4
libXpm.so.4 => /usr/openwin/lib/libXpm.so.4
libdl.so.1 => /usr/lib/libdl.so.1
libXext.so.0 => /usr/openwin/lib/libXext.so.0
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libmp.so.2 => /usr/lib/libmp.so.2

May be you are already tired of such kind of messages via e-mail, but
I don't really know what to do In Makefile.PL there are paths to
these
libraries (...... libpng12.so.0, libttf.so.2) but after compiling
linker doesn't see it. :((((( I've already recompiled perl 5.8.0 for
my platform.

What can I do in this situation?

Great thanks in advance, with respect,
Michael Vyichizhnanin.