[openssl-users] 'makedepend' in openssl builds: clarify need and correct usage

PGNet Dev pgnet.dev at gmail.com
Mon Mar 14 15:58:33 UTC 2016


On 03/14/2016 08:26 AM, PGNet Dev wrote:
> Which I currently attempt to do, but get the reported errors about not finding the stddef.h include etc.

Specifically,

cd test
rm -rf *
wget https://www.openssl.org/source/openssl-1.0.2g.tar.gz
tar zxvf openssl-1.0.2g.tar.gz
cd openssl-1.0.2g

./config --openssldir=/home/work/sslTEST --libdir=lib64 \
  threads shared -D_GNU_SOURCE -DPURIFY -DTERMIO -fno-common 
-Wl,-rpath=/home/work/sslTEST/lib64 -Wa,--noexecstack 
-Wl,-z,relro,-z,now -Wall

	...
	Configured for linux-x86_64.

	*** Because of configuration changes, you MUST do the following before
	*** building:

	        make depend

make depend
	making depend in crypto...
	make[1]: Entering directory 
'/home/work/openssl-1.0.2g/test/openssl-1.0.2g/crypto'
	makedepend: warning:  cryptlib.c (reading /usr/include/stdlib.h, line 
32): cannot find include file "stddef.h"
	        not in ./stddef.h
	        not in ../stddef.h
	        not in ../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  /usr/include/time.h includes 
/usr/include/bits/types.h more than once!
	Already have
	        /usr/include/bits/types.h
	makedepend: warning:  /usr/include/time.h includes 
/usr/include/bits/types.h more than once!
	Already have
	        /usr/include/bits/types.h
	makedepend: warning:  /usr/include/time.h includes 
/usr/include/bits/types.h more than once!
	Already have
	        /usr/include/bits/types.h
	makedepend: warning:  cryptlib.c (reading /usr/include/sys/types.h, 
line 146): cannot find include file "stddef.h"
	        not in ./stddef.h
	        not in ../stddef.h
	        not in ../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  cryptlib.c (reading /usr/include/alloca.h, line 
24): cannot find include file "stddef.h"
	        not in ./stddef.h
	        not in ../stddef.h
	        not in ../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  cryptlib.c (reading /usr/include/string.h, line 
32): cannot find include file "stddef.h"
	        not in ./stddef.h
	        not in ../stddef.h
	        not in ../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  cryptlib.c (reading /usr/include/unistd.h, line 
226): cannot find include file "stddef.h"
	        not in ./stddef.h
	        not in ../stddef.h
	        not in ../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  cryptlib.c (reading /usr/include/stdio.h, line 
33): cannot find include file "stddef.h"
	        not in ./stddef.h
	        not in ../stddef.h
	        not in ../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  cryptlib.c (reading /usr/include/_G_config.h, 
line 15): cannot find include file "stddef.h"
	        not in ./stddef.h
	        not in ../stddef.h
	        not in ../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  cryptlib.c (reading /usr/include/wchar.h, line 
51): cannot find include file "stddef.h"
	        not in ./stddef.h
	        not in ../stddef.h
	        not in ../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  cryptlib.c (reading /usr/include/libio.h, line 
49): cannot find include file "stdarg.h"
	        not in ./stdarg.h
	        not in ../stdarg.h
	        not in ../include/stdarg.h
	        not in /usr/include/stdarg.h
	makedepend: warning:  cryptlib.c (reading ../include/openssl/buffer.h, 
line 68): cannot find include file "stddef.h"
	        not in ./stddef.h
	        not in ../stddef.h
	        not in ../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  cryptlib.c (reading ../include/openssl/bio.h, 
line 67): cannot find include file "stdarg.h"
	        not in ./stdarg.h
	        not in ../stdarg.h
	        not in ../include/stdarg.h
	        not in /usr/include/stdarg.h
	makedepend: warning:  o_str.c (reading o_str.h, line 63): cannot find 
include file "stddef.h"
	        not in ./stddef.h
	        not in ../stddef.h
	        not in ../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  o_str.c (reading /usr/include/strings.h, line 
28): cannot find include file "stddef.h"
	        not in ./stddef.h
	        not in ../stddef.h
	        not in ../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  o_dir.c (reading LPdir_unix.c, line 31): cannot 
find include file "stddef.h"
	        not in ./stddef.h
	        not in ../stddef.h
	        not in ../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  o_dir.c (reading /usr/include/limits.h, line 
123): cannot find include file "limits.h"
	makedepend: warning:  /usr/include/dirent.h includes 
/usr/include/bits/types.h more than once!
	Already have
	        /usr/include/features.h
	        /usr/include/bits/types.h
	        /usr/include/bits/dirent.h
	makedepend: warning:  o_dir.c (reading /usr/include/dirent.h, line 
244): cannot find include file "stddef.h"
	        not in ./stddef.h
	        not in ../stddef.h
	        not in ../include/stddef.h
	        not in /usr/include/stddef.h
	making depend in crypto/objects...
	make[2]: Entering directory 
'/home/work/openssl-1.0.2g/test/openssl-1.0.2g/crypto/objects'
	../../util/domd ../.. -MD makedepend -- -fPIC -DOPENSSL_PIC 
-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -D_GNU_SOURCE 
-DPURIFY -DTERMIO -fno-common -Wa,--noexecstack -Wall -Wa,--noexecstack 
-m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT 
-DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM 
-DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM 
-DGHASH_ASM -DECP_NISTZ256_ASM -I.. -I../.. -I../modes -I../asn1 
-I../evp -I../../include  -DOPENSSL_NO_DEPRECATED 
-DOPENSSL_NO_EC_NISTP_64_GCC_128 -DOPENSSL_NO_GMP -DOPENSSL_NO_JPAKE 
-DOPENSSL_NO_LIBUNBOUND -DOPENSSL_NO_MD2 -DOPENSSL_NO_RC5 
-DOPENSSL_NO_RFC3779 -DOPENSSL_NO_SCTP -DOPENSSL_NO_SSL_TRACE 
-DOPENSSL_NO_SSL2 -DOPENSSL_NO_STORE -DOPENSSL_NO_UNIT_TEST 
-DOPENSSL_NO_WEAK_SSL_CIPHERS --  o_names.c obj_dat.c obj_lib.c 
obj_err.c obj_xref.c
	makedepend: warning:  o_names.c (reading /usr/include/stdio.h, line 
33): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  o_names.c (reading /usr/include/_G_config.h, line 
15): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  o_names.c (reading /usr/include/wchar.h, line 
51): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  o_names.c (reading /usr/include/libio.h, line 
49): cannot find include file "stdarg.h"
	        not in ../stdarg.h
	        not in ../../stdarg.h
	        not in ../modes/stdarg.h
	        not in ../asn1/stdarg.h
	        not in ../evp/stdarg.h
	        not in ../../include/stdarg.h
	        not in /usr/include/stdarg.h
	makedepend: warning:  o_names.c (reading /usr/include/stdlib.h, line 
32): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  /usr/include/time.h includes 
/usr/include/bits/types.h more than once!
	Already have
	        /usr/include/bits/types.h
	makedepend: warning:  /usr/include/time.h includes 
/usr/include/bits/types.h more than once!
	Already have
	        /usr/include/bits/types.h
	makedepend: warning:  /usr/include/time.h includes 
/usr/include/bits/types.h more than once!
	Already have
	        /usr/include/bits/types.h
	makedepend: warning:  o_names.c (reading /usr/include/sys/types.h, line 
146): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  o_names.c (reading /usr/include/alloca.h, line 
24): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  o_names.c (reading /usr/include/string.h, line 
32): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  o_names.c (reading ../../include/openssl/bio.h, 
line 67): cannot find include file "stdarg.h"
	        not in ../stdarg.h
	        not in ../../stdarg.h
	        not in ../modes/stdarg.h
	        not in ../asn1/stdarg.h
	        not in ../evp/stdarg.h
	        not in ../../include/stdarg.h
	        not in /usr/include/stdarg.h
	makedepend: warning:  obj_dat.c (reading /usr/include/limits.h, line 
123): cannot find include file "limits.h"
	makedepend: warning:  obj_dat.c (reading /usr/include/unistd.h, line 
226): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  obj_dat.c (reading 
../../include/openssl/buffer.h, line 68): cannot find include file 
"stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	make[2]: Leaving directory 
'/home/work/openssl-1.0.2g/test/openssl-1.0.2g/crypto/objects'
	making depend in crypto/md4...
	make[2]: Entering directory 
'/home/work/openssl-1.0.2g/test/openssl-1.0.2g/crypto/md4'
	../../util/domd ../.. -MD makedepend -- -fPIC -DOPENSSL_PIC 
-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -D_GNU_SOURCE 
-DPURIFY -DTERMIO -fno-common -Wa,--noexecstack -Wall -Wa,--noexecstack 
-m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT 
-DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM 
-DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM 
-DGHASH_ASM -DECP_NISTZ256_ASM -I.. -I../.. -I../modes -I../asn1 
-I../evp -I../../include  -DOPENSSL_NO_DEPRECATED 
-DOPENSSL_NO_EC_NISTP_64_GCC_128 -DOPENSSL_NO_GMP -DOPENSSL_NO_JPAKE 
-DOPENSSL_NO_LIBUNBOUND -DOPENSSL_NO_MD2 -DOPENSSL_NO_RC5 
-DOPENSSL_NO_RFC3779 -DOPENSSL_NO_SCTP -DOPENSSL_NO_SSL_TRACE 
-DOPENSSL_NO_SSL2 -DOPENSSL_NO_STORE -DOPENSSL_NO_UNIT_TEST 
-DOPENSSL_NO_WEAK_SSL_CIPHERS --  md4_dgst.c md4_one.c
	makedepend: warning:  md4_dgst.c (reading /usr/include/stdio.h, line 
33): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  md4_dgst.c (reading /usr/include/_G_config.h, 
line 15): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  md4_dgst.c (reading /usr/include/wchar.h, line 
51): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  md4_dgst.c (reading /usr/include/libio.h, line 
49): cannot find include file "stdarg.h"
	        not in ../stdarg.h
	        not in ../../stdarg.h
	        not in ../modes/stdarg.h
	        not in ../asn1/stdarg.h
	        not in ../evp/stdarg.h
	        not in ../../include/stdarg.h
	        not in /usr/include/stdarg.h
	makedepend: warning:  md4_dgst.c (reading /usr/include/stdlib.h, line 
32): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  /usr/include/time.h includes 
/usr/include/bits/types.h more than once!
	Already have
	        /usr/include/bits/types.h
	makedepend: warning:  /usr/include/time.h includes 
/usr/include/bits/types.h more than once!
	Already have
	        /usr/include/bits/types.h
	makedepend: warning:  /usr/include/time.h includes 
/usr/include/bits/types.h more than once!
	Already have
	        /usr/include/bits/types.h
	makedepend: warning:  md4_dgst.c (reading /usr/include/sys/types.h, 
line 146): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  md4_dgst.c (reading /usr/include/alloca.h, line 
24): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  md4_dgst.c (reading /usr/include/string.h, line 
32): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	makedepend: warning:  md4_dgst.c (reading ../../include/openssl/md4.h, 
line 63): cannot find include file "stddef.h"
	        not in ../stddef.h
	        not in ../../stddef.h
	        not in ../modes/stddef.h
	        not in ../asn1/stddef.h
	        not in ../evp/stddef.h
	        not in ../../include/stddef.h
	        not in /usr/include/stddef.h
	make[2]: Leaving directory 
'/home/work/openssl-1.0.2g/test/openssl-1.0.2g/crypto/md4'
	making depend in crypto/md5...
	make[2]: Entering directory 
'/home/work/openssl-1.0.2g/test/openssl-1.0.2g/crypto/md5'
	...




More information about the openssl-users mailing list