On Tue, 03 Jan 2012 17:50:33 +0100 Christoph Egger <christ...@debian.org> wrote:
> Package: src:blender > Version: 2.61-1 > Severity: serious > Tags: sid wheezy > Justification: fails to build from source (but built successfully in the past) > > Hi! > > Your package failed to build on the buildds: > [...] > .../libmv/third_party/glog/src/signalhandler.cc: In function 'void* > google::{anonymous}::GetPC(void*)': > .../libmv/third_party/glog/src/signalhandler.cc:75:28: error: 'mcontext_t' > has no member named 'gregs' > .../libmv/third_party/glog/src/signalhandler.cc:75:28: error: 'REG_EIP' was > not declared in this scope Can anyone test if the attached patch improves anything? References: http://stackoverflow.com/questions/5679267 http://jackbeat.samalyse.org/ticket/61 Regards, Antonio -- Antonio Ospite http://ao2.it A: Because it messes up the order in which people normally read text. See http://en.wikipedia.org/wiki/Posting_style Q: Why is top-posting such a bad thing?
>From 77bc07b02f8d279a22c23f99d1db3a89172ab21e Mon Sep 17 00:00:00 2001 From: Antonio Ospite <osp...@studenti.unina.it> Date: Sat, 7 Jan 2012 09:52:47 +0100 Subject: [PATCH] Define _GNU_SOURCE when compiling libmv X-Face: z*RaLf`X<@C75u6Ig9}{oW$H;1_\2t5)({*|jhM<pyWR#k60!#=#>/Vb;]yA5<GWI5`6u&+ ;6b'@y|8w"wB;4/e!7wYYrcqdJFY,~%Gk_4]cq$Ei/7<j&N3ah(m`ku?pX.&+~:_/wC~dwn^)MizBG !pE^+iDQQ1yC6^,)YDKkxDd!T>\I~93>J<_`<4)A{':UrE This is needed in order to bring in REG_EIP in ucontext.h, which should fix issues like: .../libmv/third_party/glog/src/signalhandler.cc: In function 'void* google::{anonymous}::GetPC(void*)': .../libmv/third_party/glog/src/signalhandler.cc:75:28: error: 'struct mcontext_t' has no member named 'gregs' .../libmv/third_party/glog/src/signalhandler.cc:75:28: error: 'REG_RIP' was not declared in this scope See similar issues: http://stackoverflow.com/questions/5679267 http://jackbeat.samalyse.org/ticket/61 Maybe something like in http://www.miriamruiz.es/weblog/?p=14 could be added. --- extern/libmv/CMakeLists.txt | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/extern/libmv/CMakeLists.txt b/extern/libmv/CMakeLists.txt index 76fb367..fe2f170 100644 --- a/extern/libmv/CMakeLists.txt +++ b/extern/libmv/CMakeLists.txt @@ -224,6 +224,7 @@ endif() add_definitions( -DV3DLIB_ENABLE_SUITESPARSE -DGOOGLE_GLOG_DLL_DECL= + -D_GNU_SOURCE ) blender_add_lib(extern_libmv "${SRC}" "${INC}" "${INC_SYS}") -- 1.7.8.2
pgp9fpy9IzGvL.pgp
Description: PGP signature