[freetds] 0.63 Release Candidate 2

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Wed Dec 1 11:24:21 EST 2004


> 
> --- Original message --
> From: Spadea, David NYC
> Sent: Wednesday, December 01, 2004 10:06 AM
> 
> I am having difficulty building 0.63-RC[12] on Solaris. I've 
> pasted the
> configure for RC2 and make below (the make dies immediately). 
> --- End original message ---
> 
> > config.status: creating include/config.h
> > config.status: include/config.h is unchanged
> > config.status: executing depfiles commands
> > lyca:/export/home/dbspadea/freetds-0.63RC2 $ make
> > Making all in include
> > make[1]: Entering directory
> `/export/home/dbspadea/freetds-0.63RC2/include'
> > cd .. && /bin/bash 
> /export/home/dbspadea/freetds-0.63RC2/missing --run
> autoheader
> > configure.in:75: /usr/local/bin/m4: ERROR: Reading inserted file: No
> such file or directory
> > autom4te: /usr/local/bin/m4 failed with exit status: 1
> > autoheader: /usr/local/bin/autom4te failed with exit status: 1
> > make[1]: *** [config.h.in] Error 1
> > make[1]: Leaving directory
> `/export/home/dbspadea/freetds-0.63RC2/include'
> > make: *** [all-recursive] Error 1
> 
> 	Do I contradict myself? 
> 	Very well then I contradict myself, 
> 	(I am large, I contain multitudes.) 
> 
> 	http://www.princeton.edu/~batke/logr/log_026.html
> 
> It seems m4 does get involved.  I'm not sure why; it's not 
> supposed to.
> I don't suppose "make clean; make" is any help?  Or maybe 
> just removing
> the tree and starting over from "tar -x"?  
> 
> If not, then we have to understand what file /usr/local/bin/m4 was
> hoping to find, and why it's not there.  :-(
> 

This problem came from some change in automake. autoheader do not change
time if file it's unchanged. This to prevent unwrong configure. However
recent automake insert

$(srcdir)/config.h.in:  $(top_srcdir)/configure.in $(ACLOCAL_M4)
        cd $(top_srcdir) && $(AUTOHEADER)
        touch $(srcdir)/config.h.in

autogen.sh execute these steps:

Running libtoolize...
Running aclocal  ...
Running autoheader...
Running automake --gnu --include-deps ...
Running autoconf ...
Running ./configure ...

so:

aclocal create a new aclocal.m4 setting current time
autoheader parse configure.in but include/config.h.in it's unchanged so
it do not update time
automake and autoconf do their jobs (create Makefile.in and configure
script)

You that ran configure which generate include/config.h and Makefiles.
Then you execute make. Make enter in include and found that config.h
it's older that aclocal.m4 so it tries to update running autoheader ...
A solution for distribution it's to delete include/config.h.in before
calling autoheader.

freddy77


More information about the FreeTDS mailing list