$ rpm --rebuild XFree86-4.1.0.1-alt4.src.rpm cd ./config/pswrap && make pswrap make[1]: Entering directory `/usr/src/RPM/BUILD/XFree86-4.1.0.1/xc/config/pswrap\' gcc -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -ansi -pedantic -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -I../.. -I../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXENVIRONMENT -c -o main.o main.c main.c:43:21: X11/Xos.h: No such file or directory In file included from main.c:51: pswpriv.h:136: warning: redundant redeclaration of `ifile\' in same scope pswpriv.h:135: warning: previous declaration of `ifile\' pswpriv.h:147: warning: redundant redeclaration of `errorCount\' in same scope pswpriv.h:144: warning: previous declaration of `errorCount\' main.c: In function `ScanArgs\': main.c:98: warning: implicit declaration of function `rindex\' main.c:98: warning: assignment makes pointer from integer without a cast main.c:128: warning: assignment makes pointer from integer without a cast main.c:129: warning: implicit declaration of function `strcpy\' main.c:132: warning: value computed is not used make[1]: *** [main.o] Error 1 make[1]: Leaving directory `/usr/src/RPM/BUILD/XFree86-4.1.0.1/xc/config/pswrap\'make: *** [World] Error 2 make: Leaving directory `/usr/src/RPM/BUILD/XFree86-4.1.0.1/xc\' Неверный код возврата из /var/tmp/rpm-tmp.12563 (%build) --- --- Помогло поправить spec-файл - убрать наложение двух патчей: XFree86-4.0.99.3-parallelmake.patch и XFree86-4.0.99.900-parallelmake.patch
Для сборки XFree86 в системе должен быть установлен пакет XFree86-devel