Menu

#41 Fails to build due to some problem with stdio.h

latest_mercurial
closed
spadix
Building (12)
5
2010-12-09
2010-11-30
Anonymous
No

Hello, I'm at Ubuntu 10.10, running on a macbook 4.1:

uname -a
Linux blacksheep 2.6.35-23-generic #40-Ubuntu SMP Wed Nov 17 22:15:35 UTC 2010 i686 GNU/Linux

Just got the latest hg version and the build gives me the following error:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -Werror -g -O2 -MT zbar/zbar_libzbar_la-scanner.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-scanner.Tpo -c zbar/scanner.c -fPIC -DPIC -o zbar/.libs/zbar_libzbar_la-scanner.o
In file included from zbar/debug.h:62,
from zbar/scanner.c:35:
/usr/include/stdio.h:417: error: expected identifier or ‘(’ before ‘while’
make[2]: *** [zbar/zbar_libzbar_la-scanner.lo] Error 1
make[2]: Leaving directory `/home/thiagoss/devel/zbar'
make[1]: *** [all-recursive] Error 1

I'm used to git and never used hg before, but I think I managed to track the issue, the version I get with "hg update 265" builds, the 266 doesn't.

I'd be glad to help with anything else I can provide.
make[1]: Leaving directory `/home/thiagoss/devel/zbar'
make: *** [all] Error 2

Discussion

  • spadix

    spadix - 2010-12-01

    Not sure what from that changeset would cause that kind of problem...
    Could you post some context around /usr/include/stdio.h:417?
    Have you tried building with NDEBUG?
    Thanks for testing out the latest!

     
  • spadix

    spadix - 2010-12-01
    • status: open --> pending
     
  • Timothy B. Terriberry

    Fixed by chageset 277:e0d80fc5de48.

     
  • Timothy B. Terriberry

    • status: pending --> closed
     

Log in to post a comment.