On Thu, Apr 08, 2004, Mike's List wrote:
> I'm installing OpenPKG from scratch and follows the Quick Reference.
> Things were going fine and almost done until the below errors. I'm
> running Solaris 9 x86 on an Intel CA810E with onboard audio, could
> a simple /dev/audio caused the script failure below?
>
> If so, how do I go about disabling or temporarily remove the audio
> or get around the compiling looking at /dev/audio interface?
>
> /usr/local/bin/gcc -DHAVE_CONFIG_H -I. -I. -I. -O -O3 -fomit-frame-pointer -c
> entropy.c -o entropy.o
> entropy.c:1154:11: #error Unknown type of /dev/audio interface
> make[2]: *** [entropy.lo] Error 1
> make[2]: Leaving directory `/tmp/openpkg-2.0.0/beecrypt-3.1.0'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/openpkg-2.0.0/beecrypt-3.1.0'
> make: *** [all] Error 2
> + exit 2
> + exit 2
> ./openpkg.boot:ERROR: script returned non-null value
>
> Thanks in advance for any hints/tips.
The problem you have is that BeeCrypt's configure detects a /dev/audio
device node but has no system C header files with the necessary ioctl(2)
definitions. BeeCrypt's detection is bogus here, of course. OTOH because
we do not really need this in BeeCrypt (remember that RPM mainly uses
BeeCrypt just for verification of signatures and not for the generation
of keys or for signing, etc) it is acceptable to us to let BeeCrypt run
with less entropy sources. Hence, the following patch I'll now apply to
OpenPKG-CURRENT (once "openpkg dev release" is working again on which
Thomas currently is hacking :-):
Index: openpkg.spec
===================================================================
RCS file: /e/openpkg/cvs/openpkg-src/openpkg/openpkg.spec,v
retrieving revision 1.311
diff -u -d -u -d -u -d -r1.311 openpkg.spec
--- openpkg.spec 7 Apr 2004 08:05:58 -0000 1.311
+++ openpkg.spec 8 Apr 2004 06:54:52 -0000
@@ -630,9 +630,13 @@
# build BeeCrypt library
( cd beecrypt-%{V_beecrypt}
+ ( echo 'ac_cv_have_dev_dsp=no'
+ echo 'ac_cv_have_dev_audio=no'
+ ) >config.cache
CC="${l_cc}" \
CFLAGS="-O" \
./configure \
+ --cache-file=./config.cache \
--prefix=%{l_prefix} \
--disable-threads \
--disable-shared \
It will be merged into OpenPKG 2.0 on the next mass-merge for the
bootstrap package and then will be included in openpkg-2.0.2-2.0.2 once
available.
BTW, an obvious workaround is to make your Solaris installation more
consistent, I think: either remove the audio driver (so the devices
disappear) or install also the audio C headers so that applications can
drive the audio device when builded from source. Leaving out some part
is IMHO inconsistent and can lead to more problems with applications.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]