PHP compilation error debian lenny (stable)

08:15AM Mai 26, 2009 in category PHP by Alexander Pirsig

Today I tried to recompile GD2-Lib on Debian Lenny (stable) to get the shared support working again. But during package build I had the following problem:
/usr/src/php5-5.2.6.dfsg.1/ext/imap/php_imap.c:4557: warning: pointer targets in assignment differ in signedness
/usr/src/php5-5.2.6.dfsg.1/ext/imap/php_imap.c:4557: warning: pointer targets in g argument 1 of ‘strlen’ differ in signedness
make[1]: *** [ext/imap/php_imap.lo] B??d 1
make[1]: Opuszczenie katalogu `/usr/src/php5-5.2.6/apache2-build'
make: *** [build-apache2-stamp] B??d 2
dpkg-buildpackage: niepowodzenie: debian/rules build zwróci? status b??du 2
I think there is something wrong with the php-imap and it's dependencies to a external lib. Since I don't need it for my server I removed the compile flags from debian rules.

Open your rules-set file in /usr/src/php5-5.2.6.dfsg.1/debian/rules
--with-imap=shared,/usr
--with-imap-ssl

After that rebuild package with:
dpkg-buildpackage -rfakeroot
That's it! :)

Kommentare[0] Tags: imap error recompile problem php5 lenny