[Yast4debian-devel] trying to compile...

René Martín Rodríguez heaven at croasanaso.sytes.net
Wed Nov 9 11:02:49 UTC 2005


Hi Ramon,

I'm using this:

apt-cache policy librpm-dev
librpm-dev:
  Instalados: 4.4.1-4
  Candidato: 4.4.1-4
  Tabla de versión:
 *** 4.4.1-4 0
        500 http://ftp.crans.org unstable/main Packages
        500 http://debian-amd64.alioth.debian.org unstable/main Packages
500 http://debian-amd64.alioth.debian.org unstable/main Packages
100 /var/lib/dpkg/status
     4.0.4-31.1 0
        500 http://ftp.crans.org testing/main Packages
     4.0.4-31 0
        500 http://ftp.crans.org stable/main Packages


The problem with yast2-packagemanager is this:

yast2-packagemanager-2.12.20# make
make  all-recursive
make[1]: Entering directory `/tmp/yast2-packagemanager-2.12.20'
Making all in src
make[2]: Entering directory `/tmp/yast2-packagemanager-2.12.20/src' Making
all in inst
make[3]: Entering directory `/tmp/yast2-packagemanager-2.12.20/src/inst'
Making all in rpm
make[4]: Entering directory
`/tmp/yast2-packagemanager-2.12.20/src/inst/rpm' if /bin/sh
../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../../.. -I../../../src -I/usr/include/YaST2 -I/usr/include/rpm
-DY2LOG=\"packagemanager\" -Wall -imacros Make.defines   -g -O2 -Wall
-Wformat -MT librpmDb.lo -MD -MP -MF ".deps/librpmDb.Tpo" -c -o
librpmDb.lo librpmDb.cc; \
then mv -f ".deps/librpmDb.Tpo" ".deps/librpmDb.Plo"; else rm -f
".deps/librpmDb.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src
-I/usr/include/YaST2 -I/usr/include/rpm -DY2LOG=\"packagemanager\" -Wall
-imacros Make.defines -g -O2 -Wall -Wformat -MT librpmDb.lo -MD -MP -MF
.deps/librpmDb.Tpo -c librpmDb.cc  -fPIC -DPIC -o .libs/librpmDb.o
librpmDb.cc:634:2: warning: #warning TESTCASE: rpmdbAppendIterator and
(non)sequential access?
librpmDb.cc:647:2: warning: #warning TESTCASE: rpmdbGetIteratorCount
returns 0 on sequential access?
librpmDb.cc: In member function 'bool
librpmDb::db_const_iterator::D::advance()':
librpmDb.cc:614: error: no matching function for call to
'RpmHeader::RpmHeader(headerToken_s*&)'
../../../src/y2pm/RpmHeader.h:69: note: candidates are:
RpmHeader::RpmHeader(binHeaderPtr&)
../../../src/y2pm/RpmHeader.h:63: note:
RpmHeader::RpmHeader(headerToken*)
../../../src/y2pm/RpmHeader.h:52: note:
RpmHeader::RpmHeader(const RpmHeader&)
make[4]: *** [librpmDb.lo] Error 1
make[4]: Leaving directory
`/tmp/yast2-packagemanager-2.12.20/src/inst/rpm' make[3]: ***
[all-recursive] Error 1
make[3]: Leaving directory `/tmp/yast2-packagemanager-2.12.20/src/inst'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/yast2-packagemanager-2.12.20/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/yast2-packagemanager-2.12.20'
make: *** [all] Error 2


This is my compiler:
 g++ -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.0 --enable-__cxa_atexit
--enable-libstdcxx-allocator=mt --enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-gc=boehm
--enable-java-awt=gtk-default --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr
--disable-werror --enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.0.2 (Debian 4.0.2-2)


This is the rpm error (before this error I must to do some ugly hacks with
nb.po, see the script):

make[2]: Leaving directory `/tmp/rpm-4.1.1/beecrypt'
Making all in rpmio
make[2]: Entering directory `/tmp/rpm-4.1.1/rpmio'
for lo in aes.lo aesopt.lo base64.lo beecrypt.lo blockmode.lo blockpad.lo
blowfish.lo blowfishopt.lo dhaes.lo dldp.lo dlkp.lo dlpk.lo dlsvdp-dh.lo
dsa.lo elgamal.lo endianness.lo entropy.lo fips186.lo hmac.lo hmacmd5.lo
hmacsha1.lo hmacsha256.lo md5.lo memchunk.lo mp32.lo mp32barrett.lo
mp32number.lo mp32opt.lo mp32prime.lo mtprng.lo rsa.lo rsakp.lo rsapk.lo
sha1.lo sha1opt.lo sha256.lo timestamp.lo; do \
  [ -f $lo ] || sed -e "s!'!'../beecrypt/!" < ../beecrypt/$lo > $lo ; \
done
touch .created
/bin/sh ../libtool --mode=link gcc  -g -O2 -D_GNU_SOURCE -D_REENTRANT
-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
-Wno-char-subscripts   -o librpmio.la -rpath /usr//lib64 -release 4.1
../file/libfmagic.la ../zlib/libz.la -lrt -lpthread argv.lo digest.lo
fts.lo macro.lo rpmio.lo rpmlog.lo rpmmalloc.lo rpmpgp.lo rpmrpc.lo
strcasecmp.lo stubs.lo url.lo ugid.lo aes.lo aesopt.lo base64.lo
beecrypt.lo blockmode.lo blockpad.lo blowfish.lo blowfishopt.lo dhaes.lo
dldp.lo dlkp.lo dlpk.lo dlsvdp-dh.lo dsa.lo elgamal.lo endianness.lo
entropy.lo fips186.lo hmac.lo hmacmd5.lo hmacsha1.lo hmacsha256.lo md5.lo
memchunk.lo mp32.lo mp32barrett.lo mp32number.lo mp32opt.lo mp32prime.lo
mtprng.lo rsa.lo rsakp.lo rsapk.lo sha1.lo sha1opt.lo sha256.lo
timestamp.lo -lrt -lpthread  -L/usr//lib  -lbz2
rm -fr .libs/librpmio.la .libs/librpmio.* .libs/librpmio-4.1.*
gcc -shared  argv.lo digest.lo fts.lo macro.lo rpmio.lo rpmlog.lo
rpmmalloc.lo rpmpgp.lo rpmrpc.lo strcasecmp.lo stubs.lo url.lo ugid.lo
aes.lo aesopt.lo base64.lo beecrypt.lo blockmode.lo blockpad.lo
blowfish.lo blowfishopt.lo dhaes.lo dldp.lo dlkp.lo dlpk.lo dlsvdp-dh.lo
dsa.lo elgamal.lo endianness.lo entropy.lo fips186.lo hmac.lo hmacmd5.lo
hmacsha1.lo hmacsha256.lo md5.lo memchunk.lo mp32.lo mp32barrett.lo
mp32number.lo mp32opt.lo mp32prime.lo mtprng.lo rsa.lo rsakp.lo rsapk.lo
sha1.lo sha1opt.lo sha256.lo timestamp.lo -Wl,--whole-archive
../file/.libs/libfmagic.al ../zlib/.libs/libz.al -Wl,--no-whole-archive 
-lz -lrt -lpthread -L/usr//lib -lbz2  -Wl,-soname -Wl,librpmio-4.1 -o
.libs/librpmio-4.1
aes.lo: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[2]: *** [librpmio.la] Error 1
make[2]: Leaving directory `/tmp/rpm-4.1.1/rpmio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/rpm-4.1.1'
make: *** [all] Error 2



> Hi AgarFu,
>
> what versions of librpm-dev and rpm are you using? check that
> they are at least 4.4.1 (it's the version in sid).
>
> I didn't have the time to try it, will do it asap.
>
> Good luck!
thx
>
> Ramon
> El mar, 08-11-2005 a las 15:50 +0000, AgarFu escribió:
>> Hi, I was trying to compile yast2 but I was not suceceed.
>>
>> yast2-devtools and liby2util works whithout problems, but I'm block.
>>
>> The next step following the howto is to compile yast2-packagemanager
but the
>> process fails due to something related to librpm, so I start to compile
suse's rpm but it wont work.
>>
>> I wrote two small and much improvable scripts to compile all this things.
>>
>> _______________________________________________
>> Yast4debian-devel mailing list
>> Yast4debian-devel at lists.alioth.debian.org
>> http://lists.alioth.debian.org/mailman/listinfo/yast4debian-devel
>
>
> _______________________________________________
> Yast4debian-devel mailing list
> Yast4debian-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/yast4debian-devel
>






More information about the Yast4debian-devel mailing list