Patch is already applied upstream, but there likely won't be any more releases in the kde3 branch.
Created attachment 147005 [details, diff] kphotoalbum-3.1.1-gcc-4.3.patch
Thanks, I'll handle it ASAP.
Fixed in CVS. Thanks for the patch.