On OSX, there is no such thing as the program 'makedepend' (unless one
installs XQuartz (X11 for mac), which shouldn't be required in order to
build openssl).

But lets say the user does have XQuartz installed.  I suspect the
makedepend that's included in XQuartz is buggy.  As of 1.0.1f,  If I enable
one of the flags that then requires calling 'make depend' after
./Configure, I get the following error immediately:

  making depend in crypto...
  makedepend: warning:  cannot open "x86_64"
  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

Then I see this:

making depend in crypto/objects...
../../util/domd ../.. -MD makedepend -- -fPIC -fno-common -DOPENSSL_PIC
-DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch
x86_64 -O3 -DL_ENDIAN -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 -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include
 -DOPENSSL_NO_DEPRECATED -DOPENSSL_NO_GMP -DOPENSSL_NO_JPAKE
-DOPENSSL_NO_MD2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_SCTP
-DOPENSSL_NO_STORE --  o_names.c obj_dat.c obj_lib.c obj_err.c obj_xref.c
makedepend: warning:  cannot open "x86_64"
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

And things that look just like that happen over and over and over, until
the 'make depend' stops.

(A) Are these warnings important, or to be ignored?

(B) The OSX package manager Homebrew gets around the lack of makedepend by
creating a stub with the following contents:

#!/bin/bash
exec cc -M "$@"

Can the openssl source dir please be amended to include such a stub, and to
automatically use it on OSX?

-Charles

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to