Subject: lib/26557: libcrypto: buildinf.h missing
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <Christoph_Egger@gmx.de>
List: netbsd-bugs
Date: 08/05/2004 11:39:58
>Number:         26557
>Category:       lib
>Synopsis:       libcrypto: buildinf.h missing
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 05 14:05:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Christoph Egger
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
System: NetBSD phoenix.eggernet.de 2.0_BETA NetBSD 2.0_BETA (GENERIC)#0: Sat Jul 31 14:12:00 CEST 2004 root@phoenix.eggernet.de:/usr/objdir.sparc64/sys/arch/sparc64/compile/GENERIC sparc64
Architecture: sparc64
Machine: sparc64

>Description:

compiling the netbsd-2-0 branch fails with the command


./build.sh -O /usr/objdir.sparc64 -T /usr/toolchain/tooldir.NetBSD-2.0B-sparc64 -U distribution


After toolchain/26515 has been fixed, I discovered another
build bug in the netbsd-2-0 branch:


#    create  libcrypto/cversion.d
CC=/usr/toolchain/tooldir.NetBSD-2.0B-sparc64/bin/sparc64--netbsd-gcc /usr/toolchain/tooldir.NetBSD-2.0B-sparc64/bin/nbm
kdep -f cversion.d --       -Dlibcrypto -I. -I/usr/src-2.0/crypto/dist/openssl/crypto -I/usr/src-2.0/crypto/dist/openssl
 -DOPENSSLDIR=\"/etc/openssl\" -DDSO_DLFCN -DHAVE_DLFCN_H -I/usr/src-2.0/crypto/dist/openssl/crypto -I/usr/src-2.0/crypt
o/dist/openssl/crypto/aes -I/usr/src-2.0/crypto/dist/openssl/crypto/asn1 -I/usr/src-2.0/crypto/dist/openssl/crypto/bf -I
/usr/src-2.0/crypto/dist/openssl/crypto/bio -I/usr/src-2.0/crypto/dist/openssl/crypto/bn -I/usr/src-2.0/crypto/dist/open
ssl/crypto/buffer -I/usr/src-2.0/crypto/dist/openssl/crypto/cast -I/usr/src-2.0/crypto/dist/openssl/crypto/comp -I/usr/s
rc-2.0/crypto/dist/openssl/crypto/conf -I/usr/src-2.0/crypto/dist/openssl/crypto -DDES_UNROLL -DDES_RISC1 -DDES_PTR -I/u
sr/src-2.0/crypto/dist/openssl/crypto/des -I/usr/src-2.0/crypto/dist/openssl/crypto/dh -I/usr/src-2.0/crypto/dist/openss
l/crypto/dsa -I/usr/src-2.0/crypto/dist/openssl/crypto/dso -I/usr/src-2.0/crypto/dist/openssl/crypto/ec -I/usr/src-2.0/c
rypto/dist/openssl/crypto/engine -I/usr/src-2.0/crypto/dist/openssl/crypto/err -I/usr/src-2.0/crypto/dist/openssl/crypto
/evp -I/usr/src-2.0/crypto/dist/openssl/crypto/hmac -I/usr/src-2.0/crypto/dist/openssl/crypto/krb5 -I/usr/src-2.0/crypto
/dist/openssl/crypto/lhash -I/usr/src-2.0/crypto/dist/openssl/crypto/md2 -I/usr/src-2.0/crypto/dist/openssl/crypto/md4 -
I/usr/src-2.0/crypto/dist/openssl/crypto/md5 -I/usr/src-2.0/crypto/dist/openssl/crypto/objects -I/usr/src-2.0/crypto/dis
t/openssl/crypto/ocsp -I/usr/src-2.0/crypto/dist/openssl/crypto/pem -I/usr/src-2.0/crypto/dist/openssl/crypto/pkcs12 -I/
usr/src-2.0/crypto/dist/openssl/crypto/pkcs7 -I/usr/src-2.0/crypto/dist/openssl/crypto/rand -I/usr/src-2.0/crypto/dist/o
penssl/crypto/rc2 -I/usr/src-2.0/crypto/dist/openssl/crypto/rc4 -I/usr/src-2.0/crypto/dist/openssl/crypto/ripemd -I/usr/
src-2.0/crypto/dist/openssl/crypto/rsa -I/usr/src-2.0/crypto/dist/openssl/crypto/sha -I/usr/src-2.0/crypto/dist/openssl/
crypto/stack -I/usr/src-2.0/crypto/dist/openssl/crypto/txt_db -I/usr/src-2.0/crypto/dist/openssl/crypto/ui -I/usr/src-2.
0/crypto/dist/openssl/crypto/x509 -I/usr/src-2.0/crypto/dist/openssl/crypto/x509v3 -I/usr/src-2.0/crypto/dist/openssl/cr
ypto/idea -I/usr/src-2.0/crypto/dist/openssl/crypto/rc5 -I/usr/src-2.0/crypto/dist/openssl/crypto/mdc2  -nostdinc -isyst
em /usr/objdir.sparc64/destdir.sparc64/usr/include  /usr/src-2.0/crypto/dist/openssl/crypto/cversion.c
/usr/src-2.0/crypto/dist/openssl/crypto/cversion.c:65:22: buildinf.h: No such file or directory
nbmkdep: compile failed.

*** Failed target:  cversion.d
*** Failed command: CC=/usr/toolchain/tooldir.NetBSD-2.0B-sparc64/bin/sparc64--netbsd-gcc /usr/toolchain/tooldir.NetBSD-
2.0B-sparc64/bin/nbmkdep -f cversion.d -- -Dlibcrypto -I. -I/usr/src-2.0/crypto/dist/openssl/crypto -I/usr/src-2.0/crypt
o/dist/openssl -DOPENSSLDIR=\"/etc/openssl\" -DDSO_DLFCN -DHAVE_DLFCN_H -I/usr/src-2.0/crypto/dist/openssl/crypto -I/usr
/src-2.0/crypto/dist/openssl/crypto/aes -I/usr/src-2.0/crypto/dist/openssl/crypto/asn1 -I/usr/src-2.0/crypto/dist/openss
l/crypto/bf -I/usr/src-2.0/crypto/dist/openssl/crypto/bio -I/usr/src-2.0/crypto/dist/openssl/crypto/bn -I/usr/src-2.0/cr
ypto/dist/openssl/crypto/buffer -I/usr/src-2.0/crypto/dist/openssl/crypto/cast -I/usr/src-2.0/crypto/dist/openssl/crypto
/comp -I/usr/src-2.0/crypto/dist/openssl/crypto/conf -I/usr/src-2.0/crypto/dist/openssl/crypto -DDES_UNROLL -DDES_RISC1 
-DDES_PTR -I/usr/src-2.0/crypto/dist/openssl/crypto/des -I/usr/src-2.0/crypto/dist/openssl/crypto/dh -I/usr/src-2.0/cryp
to/dist/openssl/crypto/dsa -I/usr/src-2.0/crypto/dist/openssl/crypto/dso -I/usr/src-2.0/crypto/dist/openssl/crypto/ec -I
/usr/src-2.0/crypto/dist/openssl/crypto/engine -I/usr/src-2.0/crypto/dist/openssl/crypto/err -I/usr/src-2.0/crypto/dist/
openssl/crypto/evp -I/usr/src-2.0/crypto/dist/openssl/crypto/hmac -I/usr/src-2.0/crypto/dist/openssl/crypto/krb5 -I/usr/
src-2.0/crypto/dist/openssl/crypto/lhash -I/usr/src-2.0/crypto/dist/openssl/crypto/md2 -I/usr/src-2.0/crypto/dist/openss
l/crypto/md4 -I/usr/src-2.0/crypto/dist/openssl/crypto/md5 -I/usr/src-2.0/crypto/dist/openssl/crypto/objects -I/usr/src-
2.0/crypto/dist/openssl/crypto/ocsp -I/usr/src-2.0/crypto/dist/openssl/crypto/pem -I/usr/src-2.0/crypto/dist/openssl/cry
pto/pkcs12 -I/usr/src-2.0/crypto/dist/openssl/crypto/pkcs7 -I/usr/src-2.0/crypto/dist/openssl/crypto/rand -I/usr/src-2.0
/crypto/dist/openssl/crypto/rc2 -I/usr/src-2.0/crypto/dist/openssl/crypto/rc4 -I/usr/src-2.0/crypto/dist/openssl/crypto/
ripemd -I/usr/src-2.0/crypto/dist/openssl/crypto/rsa -I/usr/src-2.0/crypto/dist/openssl/crypto/sha -I/usr/src-2.0/crypto
/dist/openssl/crypto/stack -I/usr/src-2.0/crypto/dist/openssl/crypto/txt_db -I/usr/src-2.0/crypto/dist/openssl/crypto/ui
 -I/usr/src-2.0/crypto/dist/openssl/crypto/x509 -I/usr/src-2.0/crypto/dist/openssl/crypto/x509v3 -I/usr/src-2.0/crypto/d
ist/openssl/crypto/idea -I/usr/src-2.0/crypto/dist/openssl/crypto/rc5 -I/usr/src-2.0/crypto/dist/openssl/crypto/mdc2 -no
stdinc -isystem /usr/objdir.sparc64/destdir.sparc64/usr/include /usr/src-2.0/crypto/dist/openssl/crypto/cversion.c
*** Error code 1

Stop.
nbmake: stopped in /usr/src-2.0/lib/libcrypto

*** Failed target:  dependall-libcrypto
*** Failed command: targ=dependall;dir=libcrypto; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; /usr/toolchain/t
ooldir.NetBSD-2.0B-sparc64/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> $dir"; cd "/usr/src-2.0/lib/$dir";
 /usr/toolchain/tooldir.NetBSD-2.0B-sparc64/bin/nbmake "_THISDIR_=$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /usr/src-2.0/lib

*** Failed target:  do-lib
*** Failed command: (cd /usr/src-2.0/lib && /usr/toolchain/tooldir.NetBSD-2.0B-sparc64/bin/nbmake dependall)
*** Error code 1

Stop.
nbmake: stopped in /usr/src-2.0

*** Failed target:  build
*** Failed command: (cd /usr/src-2.0 && /usr/toolchain/tooldir.NetBSD-2.0B-sparc64/bin/nbmake do-lib)
*** Error code 1


Stop.
nbmake: stopped in /usr/src-2.0

*** Failed target:  distribution
*** Failed command: (cd /usr/src-2.0 && /usr/toolchain/tooldir.NetBSD-2.0B-sparc64/bin/nbmake NOPOSTINSTALL=1 build)
*** Error code 1

Stop.
nbmake: stopped in /usr/src-2.0

ERROR: Failed to make distribution
*** BUILD ABORTED ***

>How-To-Repeat:

Build a native distribution on a Sun Ultra1:


mkdir /usr/objdir.sparc64
mkdir /usr/toolchain
cd /usr/src-2.0   (or whatever your directory with the netbsd-2-0 tree is)
./build.sh -O /usr/objdir.sparc64 tools
mv /usr/objdir.sparc64/tooldir.NetBSD-2.0B-sparc64 /usr/toolchain
./build.sh -O /usr/objdir.sparc64 -T /usr/toolchain/tooldir.NetBSD-2.0B-sparc64 -U distribution

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: