Error when compiling on Ubuntu Raring 13

Help
bob
2013-07-17
2014-06-07
  • bob
    bob
    2013-07-17

    I seem to have a problem when trying to modify the source code on linux. I can run ./configure and it will work but then when i try to make it with either make all/make install i run in to this error :

    In file included from /usr/include/stdio.h:937:0,
                     from zbar/debug.h:60,
                     from zbar/scanner.c:34:
    /usr/include/x86_64-linux-gnu/bits/stdio2.h:140:1: error: expected identifier or ( before { token
    make[1]: *** [zbar/zbar_libzbar_la-scanner.lo] Error 1
    make[1]: Leaving directory `/home/user/Downloads/zbar-0.10'
    make: *** [all] Error 2
    
     
    Last edit: bob 2013-07-22
  • David
    David
    2013-07-22

    Exact same platform and issue here. Apparently this is related to a conflict between dprintf functions (eg http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=707364#10) but don't know how to solve that.

     
    • David
      David
      2013-07-22

      Can be worked around using the technique found here: https://bbs.archlinux.org/viewtopic.php?id=151274

      Essentially set CFLAGS="" (empty string) before running ./configure and it'll compile. At least it did for me.

       
  • Hrod Ruck
    Hrod Ruck
    2014-06-07

    Where do I set this CFLAGS? The topic in the archlinux forum talked about a makepkg.conf, but I can't locate it