Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dave Korn" To: "'Max Bowsher'" , "'Luke Kendall'" , Subject: RE: What to do when setup fails? Date: Wed, 10 Nov 2004 13:16:02 -0000 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0028_01C4C727.6D3EF130" In-Reply-To: <025801c4c6bd$75306140$e6ec6f83@robinson.cam.ac.uk> Message-ID: X-OriginalArrivalTime: 10 Nov 2004 13:16:02.0390 (UTC) FILETIME=[6D41D760:01C4C727] Note-from-DJ: This may be spam ------=_NextPart_000_0028_01C4C727.6D3EF130 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit > -----Original Message----- > From: cygwin-owner On Behalf Of Max Bowsher > Sent: 10 November 2004 00:37 > To: Luke Kendall; cygwin > Subject: Re: What to do when setup fails? > > Luke Kendall wrote: > > I recently found another system that Cygwin setup failed on > > every time. > > > > I'm installing from a local mirror for which all the > > checksums are good. > > > > It fails due to mount, apparently. A panel titled "Mount" pops up > > after the download stage, saying: "The operation completed > > successfully", and then setup exits. > > > > I tried several times, with failures pretty consistent but > > just small variations on this theme. > > Bizarre. I've noted this in setup's bug tracker for attention when my > university work eases off. From mount.cc: void create_mount (String const posix, String const win32, int istext, int issystem) { char buf[1000]; HKEY key; DWORD disposition; DWORD flags; remove_mount (posix); snprintf (buf, sizeof(buf), "Software\\%s\\%s\\%s\\%s", CYGWIN_INFO_CYGNUS_REGISTRY_NAME, CYGWIN_INFO_CYGWIN_REGISTRY_NAME, CYGWIN_INFO_CYGWIN_MOUNT_REGISTRY_NAME, posix.cstr_oneuse ()); HKEY kr = issystem ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; if (RegCreateKeyEx (kr, buf, 0, (char *)"Cygwin", 0, KEY_ALL_ACCESS, 0, &key, &disposition) != ERROR_SUCCESS) fatal ("mount"); Luke, if setup is failing to create that key, you must be trying to install for all users while running as a user with inadequate rights, mustn't you? The attached patch would tell you what the actual error code was, if you felt like rebuilding setup. cheers, DaveK -- Can't think of a witty .sigline today.... ------=_NextPart_000_0028_01C4C727.6D3EF130 Content-Type: application/octet-stream; name="setup-mnt-err-patch.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="setup-mnt-err-patch.diff" Index: mount.cc =================================================================== RCS file: /cvs/cygwin-apps/setup/mount.cc,v retrieving revision 2.16 diff -p -u -r2.16 mount.cc --- mount.cc 11 Jul 2003 22:48:14 -0000 2.16 +++ mount.cc 10 Nov 2004 10:28:02 -0000 @@ -153,7 +153,11 @@ create_mount (String const posix, String HKEY kr = issystem ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; if (RegCreateKeyEx (kr, buf, 0, (char *)"Cygwin", 0, KEY_ALL_ACCESS, 0, &key, &disposition) != ERROR_SUCCESS) - fatal ("mount"); + { + char errbuffer[40]; + _snprintf (errbuffer, 40, "mount %d", GetLastError ()); + fatal (errbuffer); + } RegSetValueEx (key, "native", 0, REG_SZ, (BYTE *) win32.cstr_oneuse (), win32.size () + 1); ------=_NextPart_000_0028_01C4C727.6D3EF130 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_NextPart_000_0028_01C4C727.6D3EF130--