From Bugzilla Helper: User-Agent: Mozilla/5.0 (compatible; Konqueror/3.1; Linux) Description of problem: To build the rpm, 'libpng-devel' is needed. The rpm libpng-devel provides this but also libpng10-devel provides this: [dries@delirium dries]$ rpm -q --provides libpng10-devel libpng-devel = 1.0.13 libpng10-devel = 1.0.13-9 When libpng10-devel is installed and libpng-devel is not installed, the build halts in ./configure. Reason: one of the first tests in configure is a check if gcc is able to compile something. The spec file contains the line LIBS="-lfreetype -lpng -ljpeg -lz -lnsl"; export LIBS So the small test in the configure fails when libpng-devel is not installed. When you remove the libpng10-devel and install libpng-devel, the rpmbuild works without problems. Version-Release number of selected component (if applicable): php-4.3.3-6, libpng10-devel How reproducible: Always Steps to Reproduce: 1. make sure libpng-devel is not installed 2. make sure libpng10-devel is installed 3. try to rebuild the php source rpm Actual Results: Build fails Expected Results: A lot of php rpms in my RPMS directory :-) Additional info: interesting part in the config.log when libpng10-devel is installed and libpng-devel is not installed: configure:2334: checking for C compiler default output configure:2337: gcc -O2 -g -march=i386 -mcpu=i686 -fPIC -I/usr/kerberos/include conftest.c -lfreetype -lpng -ljpeg -lz -lnsl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz >&5 /usr/bin/ld: cannot find -lpng collect2: ld returned 1 exit status configure:2340: $? = 1 configure: failed program was: | #line 2313 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2379: error: C compiler cannot create executables See `config.log' for more details.
The only bug is that libpng10-devel should not Provide: libpng-devel, since the two are not the same thing.