On Tue, 2005-05-10 at 14:42 -0500, Young Ryu wrote:
> Dear Synaptic developer,
> 
> When compiling synaptic 0.55.3, I did not have any problem. However,
> when compiling synaptic 0.56.1 in CentOS 4 (RedHat EL 4 Re-build) i686
> with kernel 2.6.9-5.0.5.EL, gcc 3.4.3-9, and Apt 0.5.15cnc7-1.0.
> I have the following error.
> 
> rpackagelister.cc: In member function `bool 
> RPackageLister::updateCache(pkgAcquireStatus*, std::string&)':
> rpackagelister.cc:1262: error: no matching function for call to 
> `pkgAcquire::Run(int)'
> /usr/include/apt-pkg/acquire.h:103: note: candidates are: 
> pkgAcquire::RunResult pkgAcquire::Run()
> rpackagelister.cc: In member function `bool 
> RPackageLister::commitChanges(pkgAcquireStatus*, RInstallProgress*)':
> rpackagelister.cc:1347: error: no matching function for call to 
> `pkgAcquire::Run(int)'
> /usr/include/apt-pkg/acquire.h:103: note: candidates are: 
> pkgAcquire::RunResult pkgAcquire::Run()
> make[2]: *** [rpackagelister.o] Error 1
> make[2]: Leaving directory 
> `/home/ryoung/downloads/installed/synaptic/synaptic-0.56.1/common'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory 
> `/home/ryoung/downloads/installed/synaptic/synaptic-0.56.1'
> make: *** [all] Error 2

You'll need the attached patch to build synaptic-0.56.1 against apt-rpm
(or older debian apt versions as well)

        - Panu -
--- synaptic-0.56.1/common/rpackagelister.cc.xxx	2005-05-10 21:44:15.000000000 +0300
+++ synaptic-0.56.1/common/rpackagelister.cc	2005-05-10 21:45:26.000000000 +0300
@@ -1259,7 +1259,7 @@
       return false;
 
    // Run it
-   if (Fetcher.Run(50000) == pkgAcquire::Failed)
+   if (Fetcher.Run() == pkgAcquire::Failed)
       return false;
 
 
@@ -1344,7 +1344,7 @@
    while (1) {
       bool Transient = false;
 
-      if (fetcher.Run(50000) == pkgAcquire::Failed)
+      if (fetcher.Run() == pkgAcquire::Failed)
          goto gave_wood;
 
       string serverError;
_______________________________________________
Synaptic-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/synaptic-devel

Reply via email to