delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/07/18:43:36

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Originating-IP: [203.97.2.243]
X-Originating-Email: [viliam_batka AT hotmail DOT com]
From: "Viliam Batka" <viliam_batka AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: 2.415-1 setup.exe is crashing on defected package
Date: Wed, 08 Oct 2003 11:43:10 +1300
Mime-Version: 1.0
Message-ID: <Law11-F600IDT8zAJ9500000da9@hotmail.com>
X-OriginalArrivalTime: 07 Oct 2003 22:43:10.0675 (UTC) FILETIME=[62761230:01C38D24]

Hi,

It happens to me that after updating “setup.exe” (setup-2.415-1-src.tar.bz2) 
I was not able to install Cygwin anymore. The setup.exe program has always 
crashed during Installation progress.

After analysing the problem I have discovered following possible issues in 
the setup program.

1) Missing “RECTWrapper.h” file in the “setup-2.415-1-src.tar.bz2” source 
distribution.

NOTE:  I have managed download the missing file from Web CVS.

2) If instalation package is (deffected) bigger than current information in 
the setup.ini file than the  setup.exe is crashing.  The problem occurs in 
source code “install.cc:657 “:


Breakpoint 7, md5_one(packagesource const&) (source=@0xa158948)
    at install.cc:657
....
654       if (source.md5.isSet())
655         {
656           // check the MD5 sum of the cached file here
657 ==>      io_stream *thefile = io_stream::open (source.Cached (), "rb");
658           if (!thefile)

Because the  “source.Cached ()” returns NULL

NOTE:
One possible solution that has been working for me was introduce “check 
existence of cacded file name” as listed below ...

void md5_one (const packagesource& source)
{
  if (source.md5.isSet())
    {

     //-Start --- check existence of cached file name  -----
      if (source.Cached() == NULL)
    throw new Exception (TOSTRING(__LINE__) " " __FILE__, String (" Package 
Error in ") + ((packagesource *)&(source))->Filename(), APPERR_IO_ERROR);
    //--End----------------------------------

      // check the MD5 sum of the cached file here
      io_stream *thefile = io_stream::open (source.Cached (), "rb");
      if (!thefile)
. . .

In my case the error has been caused by defected "lynx" package that I have 
download. Where setup.ini hold following information version : 2.8.4-7
install: release/lynx/lynx-2.8.4-7.tar.bz2 1144623 
9d82cffa996f65c0905ee29f1e916d42
....

Size of my downloaded package was : 1,145,141 bytes

I have created this mail in hope to help others with similar problem.

Regards

Viliam Batka

_________________________________________________________________
Surf the net and talk on the phone with Xtra Jetstream @  
http://www.xtra.co.nz/products/0,,5803,00.html !


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019