Thank you Had to remove the original patch, the build operation is below. dude@s-e:~$ cd Software/partimate-ng/ dude@s-e:~/Software/partimate-ng$ ls compile-without-uint16-max.diff partimage-ng dude@s-e:~/Software/partimate-ng$ ls /home/dude/Desktop/*.diff /home/dude/Desktop/no-int16max+boost-1.43.diff dude@s-e:~/Software/partimate-ng$ mv /home/dude/Desktop/*.diff . dude@s-e:~/Software/partimate-ng$ ls compile-without-uint16-max.diff no-int16max+boost-1.43.diff partimage-ng dude@s-e:~/Software/partimate-ng$ cd partimage-ng/ dude@s-e:~/Software/partimate-ng/partimage-ng$ cd partimage-ng/ dude@s-e:~/Software/partimate-ng/partimage-ng/partimage-ng$ cd src/ dude@s-e:~/Software/partimate-ng/partimage-ng/partimage-ng/src$ patch < ../../.. /no-int16max+boost-1.43.diff patching file main.cpp Hunk #1 FAILED at 147. 1 out of 3 hunks FAILED -- saving rejects to file main.cpp.rej dude@s-e:~/Software/partimate-ng/partimage-ng/partimage-ng/src$ man patch dude@s-e:~/Software/partimate-ng/partimage-ng/partimage-ng/src$ patch < ../../. ./no-int16max+boost-1.43.diff patching file main.cpp Hunk #1 FAILED at 147. Hunk #2 FAILED at 208. Hunk #3 FAILED at 261. 3 out of 3 hunks FAILED -- saving rejects to file main.cpp.rej dude@s-e:~/Software/partimate-ng/partimage-ng/partimage-ng/src$ patch -R < ../. ./../no-int16max+boost-1.43.diff patching file main.cpp Hunk #1 FAILED at 147. 1 out of 3 hunks FAILED -- saving rejects to file main.cpp.rej dude@s-e:~/Software/partimate-ng/partimage-ng/partimage-ng/src$ patch -R < ../. ./../ compile-without-uint16-max.diff partimage-ng/ no-int16max+boost-1.43.diff dude@s-e:~/Software/partimate-ng/partimage-ng/partimage-ng/src$ patch -R < ../. ./../compile-without-uint16-max.diff patching file main.cpp dude@s-e:~/Software/partimate-ng/partimage-ng/partimage-ng/src$ patch < ../../. ./no-int16max+boost-1.43.diff patching file main.cpp dude@s-e:~/Software/partimate-ng/partimage-ng/partimage-ng/src$ Then it is built dude@s-e:~/Software/partimate-ng/partimage-ng/build$ make [ 86%] Built target partimage-ng [ 91%] Building CXX object partimage-ng/src/CMakeFiles/partimage-ng-cli.dir/main.cpp.o [ 95%] Building CXX object partimage-ng/src/CMakeFiles/partimage-ng-cli.dir/imageinfo.cpp.o /home/dude/Software/partimate-ng/partimage-ng/partimage-ng/src/imageinfo.cpp: In function ‘void imageinfo(const std::string&)’: /home/dude/Software/partimate-ng/partimage-ng/partimage-ng/src/imageinfo.cpp:49: warning: comparison between signed and unsigned integer expressions /home/dude/Software/partimate-ng/partimage-ng/partimage-ng/src/imageinfo.cpp:81: warning: comparison between signed and unsigned integer expressions /home/dude/Software/partimate-ng/partimage-ng/partimage-ng/src/imageinfo.cpp:101: warning: comparison between signed and unsigned integer expressions /home/dude/Software/partimate-ng/partimage-ng/partimage-ng/src/imageinfo.cpp:140: warning: comparison between signed and unsigned integer expressions /home/dude/Software/partimate-ng/partimage-ng/partimage-ng/src/imageinfo.cpp:170: warning: comparison between signed and unsigned integer expressions [100%] Building CXX object partimage-ng/src/CMakeFiles/partimage-ng-cli.dir/info.cpp.o Linking CXX executable partimage-ng-cli [100%] Built target partimage-ng-cli On Fri, 22 Jan 2010 09:20:24 -0000 Dmitry Ivanov