Hiya Pixel,
Thanks for the patch for compile.
I have fixed most of the error, except a few of them. It seems rpm-4.0
has a weird API that doesn't have any `rpmdbFindPackage' and
`rpmdbGetRecord'. Since some of the code were taken from grpmi and
Kpackage, then they might not be able to compile too against 4.0, am I
right?
Regarding the following error:
> engine.cpp:719: cannot convert `void *(*) (headerToken *, rpmCallbackType_e, long
>unsigned int, long unsigned int, const void *, void *)' to `void *(*) (const void *,
>rpmCallbackType_e, long unsigned int, long unsigned int, const void *, void *)' for
>argument `2' to `rpmRunTransactions (rpmTransactionSet_s *, void *(*) (const void *,
>rpmCallbackType_e, long unsigned int, long unsigned int, const void *, void *), void
>*, rpmProblemSet_s *, rpmProblemSet_s **, int, int)'
If you see, the argument 2 is HeaderToken *h , which can be stated
"Header h", it's so weird. They change it to const void *h . I have
people wanting this for Mandrake 7.2, that's why. So, I compiled it
under 7.2, besides I only have 1 harddrive, that's why I can't install
Cooker right now.
It seems that gcc-2.96 is more strict about not returning a value for
functions that aren't "void". I fixed the " warning: no return statement
in function returning non-void". So, it won't be a problem anymore.
Also, do you know how to statically link curl-lib into
MandrakeUpdateRobot? When I gave g++ the "-static" arguments, it
complains about not finding references to the defined functions :-(
Thanks,
Prana
Pixel wrote:
>
> Prana <[EMAIL PROTECTED]> writes:
>
> > Hi guys,
> > Mandrake Update Robot (the daemon for large network) is near the final
> > stage now. I have stabilize it, increased the security, enable to run it
>
> i tried building it:
>
> a little cleanup
> ftp://ftp.mandrakesoft.com/pub/pixel/MandrakeUpdateRobot-0.7-2mdk.src.rpm
>
> and here are the pbs:
>
> g++ -frtti -fwritable-strings -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro
>-march=i586 -ffast-math -I/usr/include -I/usr/include/rpm -c engine.cpp -o engine.o
> engine.cpp: In method `bool drakupdate::download_mirror ()':
> engine.cpp:253: warning: no return statement in function returning non-void
> engine.cpp: In method `bool drakupdate::is_rpm_package_installed (string *, string
>*, string *, string *)':
> engine.cpp:300: `rpmdbFindPackage' undeclared (first use this function)
> engine.cpp:300: (Each undeclared identifier is reported only once for each function
>it appears in.)
> engine.cpp:303: request for member `count' in `matches', which is of non-aggregate
>type `_dbiIndexSet *'
> engine.cpp:308: request for member `recs' in `matches', which is of non-aggregate
>type `_dbiIndexSet *'
> engine.cpp:308: `rpmdbGetRecord' undeclared (first use this function)
> engine.cpp:321: `dbiFreeIndexRecord' undeclared (first use this function)
>
> g++ -frtti -fwritable-strings -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro
>-march=i586 -ffast-math -I/usr/include -I/usr/include/rpm -c drakupdatesetup.cpp -o
>drakupdatesetup.o
> engine.cpp: In method `bool drakupdate::download_all_selected_rpms ()':
> engine.cpp:582: warning: no return statement in function returning non-void
> engine.cpp: In method `bool drakupdate::install_one_rpm_package (string *)':
> engine.cpp:719: cannot convert `void *(*) (headerToken *, rpmCallbackType_e, long
>unsigned int, long unsigned int, const void *, void *)' to `void *(*) (const void *,
>rpmCallbackType_e, long unsigned int, long unsigned int, const void *, void *)' for
>argument `2' to `rpmRunTransactions (rpmTransactionSet_s *, void *(*) (const void *,
>rpmCallbackType_e, long unsigned int, long unsigned int, const void *, void *), void
>*, rpmProblemSet_s *, rpmProblemSet_s **, int, int)'
> engine.cpp:723: warning: no return statement in function returning non-void
> engine.cpp: In method `bool drakupdate::install_all_selected_rpms ()':
> engine.cpp:739: warning: no return statement in function returning non-void
>
> Are you using a 7.2 to build it?
>
> cu Pixel.
--
Prana <[EMAIL PROTECTED]>
http://www.cyest.org
My GnuPG Key ID: 0x33343FD3 (2000-07-21)
Key fingerprint = F1FB 1F76 8866 0F40 A801 D9DA 6BED 6641 3334 3FD3
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0x33343FD3