Max, could you do:
ldd /usr/lib/php5/20060613+lfs/gd.so And send output here. Common cause for these types of bugs is some old forgotten library in /usr/local/lib which gets linked before library from debian package. Ondrej. -- Ondřej Surý <[EMAIL PROTECTED]>