If configure is run on PHP 4.0.[23] with the option --with-gettext, the configure script fails after not finding bindtextdomain in '-lc'.
Never mind. It was a problem with finding libdb. I just took off --with-db2 and --with-db3 and configure succeeded. Build, however, didn't...
Hmm... after a bit more poking around, I was able to determine that it wasn't finding /usr/lib/libdb2.(a|so): """ configure:16669: checking for bindtextdomain in -lc configure:16688: gcc -o conftest -O2 -m486 -fno-strength-reduce -fPIC -L/usr/lib conftest.c -lc -lttf -ljpeg -lgd -l -ldb2 -lgdbm -lresolv -lm -ldl -lcrypt -lnsl -lresolv -L/usr/lib -ljpeg 1>&5 /usr/bin/ld: cannot find -l--library=db2 collect2: ld returned 1 exit status configure: failed program was: #line 16677 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char bindtextdomain(); int main() { bindtextdomain() ; return 0; } """ The same error happened when I force-installed db[23]-*.rpm from 7.0 (which I hope didn't break glibc-2.1.3, right? Right?). I then removed --with-db[23] from the spec, and libphp4.so didn't build. I am using --sybase-ct=/opt/sybase-11.9.2, but other than that, it's the stock rawhide php-4.0.2-2 SRPM.
Try installing db1-devel and db2-devel. These are missing build-time dependencies which should be added to the .spec file.
Survey says...nope. 4.0.2 seems to be building now (odd...), but 4.0.3pl1 is still a no-go on the so.
I take it the 4.0.3pl1 which is not building is the errata version. Is it failing detecting one of the Berkeley DB libraries, or elsewhere?
Actually no, it was the tarball with the spec from 4.0.2 on Rawhide. The errata version doesn't show on the errata pages, but I'm downloading it now and we'll see from there...
Damn. Still can't find libdb2.so: """ configure:16753: checking for bindtextdomain in -lc configure:16772: gcc -o conftest -O2 -m486 -fno-strength-reduce -fPIC -L/usr/lib conftest.c -lc -ljpeg -l -ldb2 -lgdbm -lresolv -lm -ldl -lcrypt -lnsl -lttf -lpng -ljpeg -lz -lresolv -L/usr/lib -ljpeg 1>&5 /usr/bin/ld: cannot find -l--library=db2 collect2: ld returned 1 exit status configure: failed program was: #line 16761 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char bindtextdomain(); int main() { bindtextdomain() ; return 0; } """
Hmm...never mind. We had to refresh some RPMs due to another problem, and now it seems to be working fine. Just when it was getting interesting :)