[asterisk-bugs] [Zaptel 0012056]: HOSTCC not exported by top level Makefile causes makefw compile to fail

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Feb 25 17:09:40 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12056 
====================================================================== 
Reported By:                davidw
Assigned To:                
====================================================================== 
Project:                    Zaptel
Issue ID:                   12056
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Zaptel Version:              SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 3874 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             02-24-2008 04:19 CST
Last Modified:              02-25-2008 17:09 CST
====================================================================== 
Summary:                    HOSTCC not exported by top level Makefile causes
makefw compile to fail
Description: 
The Makefile does not explicitly export HOSTCC.  As this is not in the
initial environment, GNU Make does not export it by default.  As a result,
the make in the kernel directory, which does not independently include
makeopts, the file that actually includes the definition of HOSTCC,
substitutes a null string for HOSTCC resulting in a command not found when
compiling the, host platform, utiity makefw.
====================================================================== 

---------------------------------------------------------------------- 
 davidw - 02-25-08 17:09  
---------------------------------------------------------------------- 
The patch makes the build go to completion.

However, a quick scan suggests that ARCH and INSTALL also need to be
propagated, and possibly more.  ARCH only causes a problem with 64 bit
architectures.

I don't want to do a real install at the moment, because I was only
dry-running and "make -n install" breaks on wct4xxp/wct4xxp.o, but I don't
know if that is the result of -n.  If variables are not getting through, I
need to be careful with false roots.

I tried make -kn install, and it looks like INSTALL isn't getting through,
but it is defaulting to "install", rather than "/usr/bin/ginstall -c",
which, by contorted symbolic links and "-c" being ignored, is the same!

Looking at make.info, it does look like there are ways of causing
everything to get exported by using an "export" command or a target of
".EXPORT_ALL_VARIABLES".

Unfortunately, I don't have time to investigate further tonight. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-25-08 17:09  davidw         Note Added: 0082908                          
======================================================================




More information about the asterisk-bugs mailing list