There seems to be a problem with map-2000/Makefile The settings EXTRACFLAGS= -DDISABLE_POP_PROXY=1 -DIGNORE_LOCK_EACCES_ERRORS=1 do not propagate when doing a build. Probably a keyword "export" must be added somewhere in make so files like imap-2000/src/osdep/unix/Makefile catch the value in the line CFLAGS=$(BASECFLAGS) $(EXTRACFLAGS)
The problem is with imap.spec It 1. patches imap-2000/Makefile 2. Sets the environment variable EXTRACFLAGS which makes it ignoring the value set in Makefile for sub-makes. The right solution is not to patch Makefile, but put directly into imap.spec %build EXTRACFLAGS="-DDISABLE_POP_PROXY=1 -DIGNORE_LOCK_EACCES_ERRORS=1" .... This the options will be propagate across the Makefile(s).
Also, the same problem exists with imap srom RedHat 7.0 updates. One need to add EXTRACFLAGS to imap.spec as I recommended in the previod message to compile it correctly.
Fixed in Rawhide a while back.. forgot to update the bug.. sorry..