On Wed, May 20, 2009 at 01:25:04PM +0200, Enrico Forestieri wrote:

> On Wed, May 20, 2009 at 02:10:50AM -0400, Ben M. wrote:
> 
> > Furthermore, under Vista you must execute
> > autogen.sh from a shell that is "Run as Administrator."  When run
> > without administrative privileges, the following error occurs:
> >   /usr/bin/m4:configure.ac:3: cannot create temporary file for
> > diversion: Permission denied
> 
> This looks like a permission problem. I can trigger a failure (even if
> not exactly as yours) as follows:
> 
> $ mkdir /tmp/notgood
> $ chmod 0 /tmp/notgood
> $ env TMPDIR=/tmp/notgood ./autogen.sh
> Using automake (GNU automake) 1.10.1
> Using autoconf (GNU Autoconf) 2.63
> Building macros...
> autom4te-2.63: cannot create /tmp/notgood/am4t7070.484: Permission denied
>  at /usr/bin/autom4te-2.63 line 958
> aclocal-1.10: autom4te failed with exit status: 1
> Building config header template...
> autoheader not found -- aborting
> 
> So, make sure that TMPDIR is not set (it may be imported from your
> native Windows environment) and that the permissions on /tmp are correct.
> The permissions on /tmp should be as follows:
> 
> $ ls -ld /tmp
> drwxrwxrwt+ 6 root None 20480 May 20 12:53 /tmp
> 
> If in the first column you don't see "drwxrwxrwt+", try issuing:
> 
> $ chmod 1777 /tmp
> 
> and see whether this solves the problem (remember to also unset TMPDIR
> if it is already set).

If it is not due to TMPDIR, it may be due to BLODA interference:
http://www.cygwin.com/ml/cygwin-xfree/2008-12/msg00039.html
http://forum.videolan.org/viewtopic.php?f=14&t=43019

Check whether you have any of the BLODA applications listed here:
http://cygwin.com/faq/faq.using.html#faq.using.bloda

-- 
Enrico

Reply via email to