#7 --debug > 1 gains no debug output on Raspberry Pi

1.0
closed
nobody
None
2014-09-02
2014-06-23
No

I compiled master (0.9.2-devel, a9012a7) as well as the 0.9.1 tag from Git on my Raspberry Pi (Raspbian Wheezy) with --debug-enabled:

./configure --prefix=/home/pi/apps/lirc-git-0_9_1 --with-driver=tira --without-x --enable-debug

While lircd --debug=1 gives me additional debug output in the lircd.log, anything larger than 1 (e.g. 2) does not give any debug output at all, but only the normal logging output from LIRC.

Also see https://sourceforge.net/p/lirc/mailman/message/32491789/ (borked in the web view, Mail from June 22nd 2014).

Discussion

  • Alec Leamas

    Alec Leamas - 2014-08-14

    Could you please make a try with current master? There has been some problems w logging, but I definitely does not recognize this... Note that the --enable-debug option now is gone, debug is always enabled.

     
  • Alec Leamas

    Alec Leamas - 2014-08-18
    • status: open --> need-info
     
  • Tobias Schlitt

    Tobias Schlitt - 2014-08-20

    I currently cannot run configure on the RaspberryPi due to the following error:

    checking for /usr/lib/systemd/system... no
    configure: Building all userspace drivers.
    configure: error: conditional "BUILD_ALSA_SB_RC" was never defined.
    Usually this means the macro was only invoked conditionally.

    Seems like the option to only build dedicated drivers is also gone?

     
  • Alec Leamas

    Alec Leamas - 2014-08-20

    I just (~1 hour ...) checked in a fix for that bug. Can you try again, making a pull or applying patch below?

    And yes, 0.9.2 is partly about dynamically loading drivers. In this scenario it doesn't make much sense to build only one driver. If we really want to do that it can be built out of tree, see the examples in the drivers/ directory.

    The patch:

    diff --git a/configure.ac b/configure.ac
    index 30dbdaa..d126204 100644
    --- a/configure.ac
    +++ b/configure.ac
    @@ -246,7 +246,10 @@ if test "$have_alsa" = "yes"; then
         AC_MSG_RESULT(no)
         AM_CONDITIONAL([BUILD_ALSA_SB_RC],[false])
       ])
    +else
    +  AM_CONDITIONAL([BUILD_ALSA_SB_RC],[false])
     fi
    +
     dnl creative_infracd driver requires linux scsi api
     AC_CHECK_HEADERS(scsi/sg.h,[
       AC_DEFINE(HAVE_SCSI)
    
     
  • Tobias Schlitt

    Tobias Schlitt - 2014-08-20

    I just pulled ([3e55f5] now), but still get the same error:

    $ ./configure --prefix=/home/pi/apps/lirc-git --without-x

    checking for /usr/lib/systemd/system... no
    configure: Building all userspace drivers.
    configure: error: conditional "BUILD_ALSA_SB_RC" was never defined.
    Usually this means the macro was only invoked conditionally.

     

    Related

    Commit: [3e55f5]


    Last edit: Tobias Schlitt 2014-08-20
  • Alec Leamas

    Alec Leamas - 2014-08-20

    Hm... 3e55f5 is 7 commits below current tip in master which is 9f0227d. Did you forget 'git remote update origin' or so?

     
  • Tobias Schlitt

    Tobias Schlitt - 2014-08-20

    Sorry, my fault, mis-copied the hash, [9f0227] here:

    $ git log
    commit 9f0227d82a67aa36b0112d21d691899a836393ed
    Author: Alec Leamas leamas.alec@gmail.com
    Date: Wed Aug 20 11:42:51 2014 +0200

    lirc_options: Use environment to enable early debug.
    
     

    Related

    Commit: [9f0227]

  • Alec Leamas

    Alec Leamas - 2014-08-20

    So, you are on 9f0227 and still having that problem... Could you attach config.log?

     
  • Tobias Schlitt

    Tobias Schlitt - 2014-08-20

    Sure, here it is.

     
  • Tobias Schlitt

    Tobias Schlitt - 2014-08-20

    Bad luck. :(

    configure: Building all userspace drivers.
    configure: error: conditional "BUILD_ALSA_SB_RC" was never defined.
    Usually this means the macro was only invoked conditionally.

     
  • Alec Leamas

    Alec Leamas - 2014-08-20

    Bad luck. :(

    configure: Building all userspace drivers.
    configure: error: conditional "BUILD_ALSA_SB_RC" was never defined.
    Usually this means the macro was only invoked conditionally.

    And you have run autogen.sh? Those patches should definitely define BUILD_ALSA_SB_RC one and for all?!

     
  • Tobias Schlitt

    Tobias Schlitt - 2014-08-20

    Sorry, my fault, I forgot that. :( I managed to compile LIRC now and the debug output seems to be better than before. I did not find time to experiment further with my TIRA issues, but thats a different topic. Thanks a lot for your support!

     
  • Alec Leamas

    Alec Leamas - 2014-08-20

    NP, I'm really happy to get things tested at this point :) Clearing the need-info flag. Leaving bug open for a few days, but unless you get in touch again about the debug output I'll eventually close it.

    I presume that the last patch wasn't needed, right?

     
  • Alec Leamas

    Alec Leamas - 2014-08-20
    • status: need-info --> open
     
  • Alec Leamas

    Alec Leamas - 2014-09-02

    OK, no news is good news. Assuming that the logging problems are resolved, closing. Please feel free to re-open bug if required.

     
  • Alec Leamas

    Alec Leamas - 2014-09-02
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks