building postresql fails, because of the appCompat patch in linux26-headers-2.6.8.1-r1 This forum topic gives a link to a different appCompat version. After emerging linux26-headers using this patch, postgresql builds fine. http://forums.gentoo.org/viewtopic.php?t=275093 http://www.mokropsy.com/linux26-headers-2.6.8.1-appCompat.patch Reproducible: Always Steps to Reproduce: 1. (clean install) 2. move to linux26-headers 3. emerge postgresql Actual Results: compile error: make[4]: Entering directory `/var/tmp/portage/postgresql-7.4.6/work/postgresql-7.4.6/src/backend/access/transam' gcc -march=athlon -O3 -pipe -fomit-frame-pointer -funroll-loops -fforce-addr -falign-functions=4 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include -D_GNU_SOURCE -c -o clog.o clog.c -MMD gcc -march=athlon -O3 -pipe -fomit-frame-pointer -funroll-loops -fforce-addr -falign-functions=4 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include -D_GNU_SOURCE -c -o transam.o transam.c -MMD gcc -march=athlon -O3 -pipe -fomit-frame-pointer -funroll-loops -fforce-addr -falign-functions=4 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include -D_GNU_SOURCE -c -o varsup.o varsup.c -MMD gcc -march=athlon -O3 -pipe -fomit-frame-pointer -funroll-loops -fforce-addr -falign-functions=4 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include -D_GNU_SOURCE -c -o xact.o xact.c -MMD gcc -march=athlon -O3 -pipe -fomit-frame-pointer -funroll-loops -fforce-addr -falign-functions=4 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include -D_GNU_SOURCE -c -o xlog.o xlog.c -MMD distcc[23461] ERROR: compile /root/.ccache/xlog.tmp.compi.23438.i on 192.168.0.100 failed In file included from ../../../../src/include/storage/spin.h:50, from xlog.c:35: ../../../../src/include/storage/s_lock.h:101: error: syntax error before "typeof" make[4]: *** [xlog.o] Error 1 make[4]: Leaving directory `/var/tmp/portage/postgresql-7.4.6/work/postgresql-7.4.6/src/backend/access/transam' make[3]: *** [transam-recursive] Error 2 make[3]: Leaving directory `/var/tmp/portage/postgresql-7.4.6/work/postgresql-7.4.6/src/backend/access' make[2]: *** [access-recursive] Error 2 make[2]: Leaving directory `/var/tmp/portage/postgresql-7.4.6/work/postgresql-7.4.6/src/backend' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/postgresql-7.4.6/work/postgresql-7.4.6/src' make: *** [all] Error 2
Fixed in CVS, sync and remerge linux26-headers. Please reopen this bug if the issue still persists. Thanks!
Sorry, I need to re-open this. I got a changed patch file, re-emerged linux26-headers and started to emerge postgres: exactly the same error like before.
What is the MD5 of files/linux26-headers-2.6.8.1-appCompat.patch?
7ba4b1fac2a6131679648126a9f55d48 linux26-headers-2.6.8.1-appCompat.patch
Hrm, well the fixed version in CVS is 059bc0fd9ab694075c0a27b717816f93 so it looks like your rsync mirror hasn't synched yet... Try another mirror; if you still have issues with the patch with the right MD5 then please reopen this bug again. Thanks!
Oh, sorry. I'll just try it tomorrow again (got it already working with the other patch).
*** Bug 76921 has been marked as a duplicate of this bug. ***