> engine.cpp:289: request for member `count' in `matches', which is of non-aggregate 
>type `_dbiIndexSet *'
> engine.cpp:291: request for member `recs' in `matches', which is of non-aggregate 
>type `_dbiIndexSet *'
> engine.cpp:291: `rpmdbGetRecord' undeclared (first use this function)
> engine.cpp:313: `dbiFreeIndexRecord' undeclared (first use this function)
> 
> [...]
> 
> > - Dependencies added with: mailx, gnupg, crond, anacron, curl-lib
> 
> beware, mailx is dangerous, you'd better use directly /usr/sbin/sendmail.
> (see bugtraq for more)
>


Ok I got it to compile. Here is the patch needed if you want to compile
on mdk 7.2, and if you want to compile on cooker because of the stricter g++
you will need to disable -Werror in the Makefile to directly fix the problem
on line 591. I don't know the intention of whether this should return void
or whether it should really return a value so I left that unfixed.
 
-- 
Geoffrey Lee <[EMAIL PROTECTED]>
李長風

http://devel.mandrakesoft.com/~snailtalk
ftp://devel.mandrakesoft.com/pub/people/snailtalk

$/usr/games/fortune
Anything that can go wrong will go
Segmentation fault (core dumped)
$

diff -u MandrakeUpdateRobot-0.8-old/AUTHORS MandrakeUpdateRobot-0.8/AUTHORS
--- MandrakeUpdateRobot-0.8-old/AUTHORS Tue Feb  6 07:51:37 2001
+++ MandrakeUpdateRobot-0.8/AUTHORS     Sun Feb 25 11:05:10 2001
@@ -1 +1,3 @@
 Prana <[EMAIL PROTECTED]>
+Patches from Pixel <[EMAIL PROTECTED]>, 
+       Geoffrey Lee <[EMAIL PROTECTED]>
diff -u MandrakeUpdateRobot-0.8-old/MandrakeUpdateRobot.spec 
MandrakeUpdateRobot-0.8/MandrakeUpdateRobot.spec
--- MandrakeUpdateRobot-0.8-old/MandrakeUpdateRobot.spec        Sun Feb 25 09:21:29 
2001
+++ MandrakeUpdateRobot-0.8/MandrakeUpdateRobot.spec    Sun Feb 25 11:16:36 2001
@@ -1,6 +1,6 @@
 %define name MandrakeUpdateRobot
 %define version 0.8
-%define release 1mdk
+%define release 2mdk
 
 Name:          %{name}
 Summary:       Console-based Mandrake update tool for automatic upgrade daemon in a 
large corporate network
@@ -9,7 +9,7 @@
 Copyright:     GPL
 Group:         System/Base
 URL:           http://www.cyest.org
-Source:                %{name}-%{version}.tar.bz2
+Source:                http://www.cyest.org/downloads/%{name}-%{version}.tar.bz2
 BuildRoot:     %{_tmppath}/%{name}-%{version}
 BuildRequires:  curl-devel
 Requires:      curl-lib, gnupg >= 1.0.2-2mdk
@@ -34,10 +34,12 @@
 %setup -q
 
 %build
-%make 
 
 ### Note to Pixel - Uhmm.. I can't use this, exception handling must be enabled - try 
- catch
 #OPTIMIZE="$RPM_OPT_FLAGS"
+### Use sed to fix the OPTIMIZE flags
+OPTIMIZE=$(echo $RPM_OPT_FLAGS | sed -e s/fno-exceptions/fexceptions/)
+%make
 
 %install
 [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
@@ -61,6 +63,12 @@
 %{_sbindir}/*
 
 %changelog
+* Sun Feb 25 2001 Geoffrey Lee <[EMAIL PROTECTED]> 0.8-2mdk
+- Put a fix so that it acutally compiles on Mandrake 7.2 and compiles
+  on cooker if you remove -Werror. This is a known problem as up till
+  line 591 in engine.cpp it does not return for a function of bool type.
+- Use our own build flags, but enable exception handling.
+
 * Sat Feb 24 2001 Pixel <[EMAIL PROTECTED]> 0.8-1mdk
 - 0.8
 - Merge Pixel's fix
diff -u MandrakeUpdateRobot-0.8-old/engine.cpp MandrakeUpdateRobot-0.8/engine.cpp
--- MandrakeUpdateRobot-0.8-old/engine.cpp      Sun Feb 25 09:02:33 2001
+++ MandrakeUpdateRobot-0.8/engine.cpp  Sun Feb 25 11:07:42 2001
@@ -295,7 +295,7 @@
    {
       if (iterator)
       {
-         rpm_header = rpmdbNextIterator(iterator)         
+         rpm_header = rpmdbNextIterator(iterator);
 #endif
         if (rpm_header)
         {
diff -u MandrakeUpdateRobot-0.8-old/engine.h MandrakeUpdateRobot-0.8/engine.h
--- MandrakeUpdateRobot-0.8-old/engine.h        Sun Feb 25 09:01:01 2001
+++ MandrakeUpdateRobot-0.8/engine.h    Sun Feb 25 11:04:08 2001
@@ -40,7 +40,7 @@
 #include <rpm/rpmlib.h>
 #include <rpm/rpmio.h>
 
-#ifdef RPMDBI_PACKAGES
+#ifndef RPMDBI_PACKAGES
    #include <rpm/dbindex.h>
 #endif
 

Reply via email to