[Apt-Rpm] Compilation issues with 0.5.15lorg3.94a (rpmpm.cc)

Per Øyvind Karlsen peroyvind at mandriva.org
Thu Mar 6 09:42:40 PST 2008


På Torsdag 06 mars 2008 , 16:59:37 skrev Vincent Danen:
>   g++ -DHAVE_CONFIG_H -I. -I../include -I../include/apt-pkg
> -DLIBDIR=\"/usr/lib\" -DPKGDATADIR=\"/usr/share/apt\"
> -DLOCALEDIR=\"/usr/share/locale\" -DAPT_DOMAIN=\"apt\" -I../lua/include
> -I../lua/local -I/usr/include/libxml2 -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2
> -fstack-protector --param=ssp-buffer-size=4 -fexceptions
> -fomit-frame-pointer -march=i586 -mtune=generic
> -fasynchronous-unwind-tables -MT rpm/rpmpm.lo -MD -MP -MF
> rpm/.deps/rpmpm.Tpo -c rpm/rpmpm.cc  -fPIC -DPIC -o rpm/.libs/rpmpm.o
> rpm/rpmpm.cc: In member function 'virtual bool
> pkgRPMLibPM::Process(std::vector<const char*, std::allocator<const char*>
> >&, std::vector<const char*, std::allocator<const char*> >&,
> std::vector<const char*, std::allocator<const char*> >&)':
> rpm/rpmpm.cc:907: error: invalid conversion from 'void* (*)(const void*,
> rpmCallbackType, rpmCallbackSize_t, rpmCallbackSize_t, const void*, void*)'
> to 'void* (*)(const void*, rpmCallbackType, long long unsigned int, long
> long unsigned int, const void*, void*)' rpm/rpmpm.cc:907: error:  
> initializing argument 2 of 'int rpmtsSetNotifyCallback(rpmts_s*, void*
> (*)(const void*, rpmCallbackType, long long unsigned int, long long
> unsigned int, const void*, void*), void*)' make[1]: *** [rpm/rpmpm.lo]
> Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: Leaving directory
> `/home/vdanen/svn/3.1-CURRENT/apt/BUILD/apt-0.5.15lorg3.94a/apt-pkg' make:
> *** [all-recursive] Error 1
> error: Bad exit status from /home/vdanen/tmp/rpm-tmp.67969 (%build)

Wild guess without knowing what rpm version you have or how code for apt 
0.5.15lorg3.94a(neat versioning!) looks like, but I would think that you'll 
find something like 'typedef unsigned long rpmCallbackSize_t' in 
aptcallback.h or wherever it might reside, make it 'typedef unsigned long 
long rpmCallbackSize_t'.

-- 
Regards,
Per Øyvind Karlsen



More information about the Apt-Rpm mailing list