Wind River Support Network

HomeDefectsLIN6-8238
Fixed

LIN6-8238 : Host's /dev/dsp device can change the build of the beecrypt package

Created: Aug 25, 2014    Updated: Dec 3, 2018
Resolved Date: Aug 27, 2014
Previous ID: LIN5-19319
Found In Version: 6.0
Fix Version: 6.0.0.12
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Build & Config

Description

Whether or not the host’s /dev/dsp device is readable can change the build of the beecrypt package.
Expectation: the host side build environment should not change the build.  
Customer's target system does not even have a /dev/dsp device, however #define HAVE_DEV_DSP 1 appears in beecrypt-4.2.1/config.h
Notice that it might have this same problem for /dev/audio, random, tty, etc.

Initial investigation notes:

On one build machine (that had a /dev/dsp, but it wasn’t readable), the beecrypt package contains these lines in config.h after do_configure:
/* Define to 1 if your system has device /dev/audio */
/* #undef HAVE_DEV_AUDIO */

/* Define to 1 if your system has device /dev/dsp */
/* #undef HAVE_DEV_DSP */

/* Define to 1 if your system has device /dev/random */
#define HAVE_DEV_RANDOM 1

/* Define to 1 if your system has device /dev/tty */
#define HAVE_DEV_TTY 1

/* Define to 1 if your system has device /dev/urandom */
#define HAVE_DEV_URANDOM 1

On another machine with a readable /dev/dsp:
/* Define to 1 if your system has device /dev/audio */
/* #undef HAVE_DEV_AUDIO */

/* Define to 1 if your system has device /dev/dsp */
#define HAVE_DEV_DSP 1

/* Define to 1 if your system has device /dev/random */
#define HAVE_DEV_RANDOM 1

/* Define to 1 if your system has device /dev/tty */
#define HAVE_DEV_TTY 1

/* Define to 1 if your system has device /dev/urandom */
#define HAVE_DEV_URANDOM 1

This was caused by this code in the beecrypt-4.2.1/configure script:
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/dsp" >&5
$as_echo_n "checking for /dev/dsp... " >&6; }
if ${ac_cv_have_dev_dsp+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test -r /dev/dsp; then
      ac_cv_have_dev_dsp=yes
    else
      ac_cv_have_dev_dsp=no
    fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dev_dsp" >&5
$as_echo "$ac_cv_have_dev_dsp" >&6; }
  if test "$ac_cv_have_dev_dsp" = yes; then
    $as_echo "#define HAVE_DEV_DSP 1" >>confdefs.h

  fi

Which probably came from the configure.ac line:
AH_TEMPLATE([HAVE_DEV_DSP],[Define to 1 if your system has device /dev/dsp]) 

Other Downloads


Live chat
Online