Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Apr 2001 13:22:00 +0200
From:      Danny Pansters <danny@ricin.com>
To:        freebsd-questions@freebsd.org
Cc:        freebsd-stable@freebsd.org
Subject:   rpm or rpm2cpio broken?? (4.3-RC)
Message-ID:  <01041913220000.30352@ricin.localnet>

next in thread | raw e-mail | index | archive | help
Hello,

I just cvsup'ed and upgraded my desktop box from 4.2 stable (12202000) to 
what is now 4.3RC (04192001) including all ports I wanted to use. I used 
pkg_version to find out which ports needed recompiling/installation. Almost 
everything works, even KDE2.1, building the parts one by one. However I ran 
into two weird problems which look to be related:

When trying to compile/install kdeutils-2.1.1 from the ports, it threw me a 
syntax error when compiling the rpm bits of kpackage (rpm: redhat package 
manager). I have pasted the output below. Looks like the RPM headers used are 
wrong?

When trying to install the Linux RealPlayer 8 which is to be fectched 
manually as a RPM package it appeared to either have trouble with RPM or with 
rpm2cpio. I know from older posts in -questions that rpm2cpio lives in 
/compat/linux/bin as well as in /usr/local/bin. As the Makefile for 
RealPlayer seems to use the "native" one I did not attempt to change this. 
After all, why would they use it if it don't work? I thought that the rpm and 
the rpm2cpio ports were basically unrelated anyway? Error messages are below. 

When reinstalling rpm2cpio (hey, you never know :-) I noticed that I had to 
use NO_CHECKSUM=yes, as if its version number is not correct or something.

I'm confused! Can someone help me out?


Many thanks in advance, 

-- 
Danny Pansters
http://www.ricin.com


----
ERROR OUTPUT:
----

** kdeadmin install fail:

gmake[3]: Entering directory
/usr/ports/sysutils/kdeadmin/work/kdeadmin-2.1.1/kpackage'
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include
-I/usr/X11R6/include/qt2 -
I/usr/X11R6/include  -I/usr/local/include/rpm  -I/usr/include -D_GETOPT_H
-D_PTH
_H_ -D_PTH_PTHREAD_H_  -I/usr/local/include -I/usr/local/include
-I/usr/X11R6/in
clude/qt2  -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W
-Wpointer-arith
 -Wmissing-prototypes -Wwrite-strings -Wno-long-long -Wnon-virtual-dtor
-fno-bui
ltin -O -pipe -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST  -c
main.cpp
In file included from main.cpp:32: rpmInterface.h:16: syntax error before ;'
gmake[3]: *** [main.o] Error 1
gmake[3]: Leaving directory
/usr/ports/sysutils/kdeadmin/work/kdeadmin-2.1.1/kpackage'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
/usr/ports/sysutils/kdeadmin/work/kdeadmin-2.1.1/kpackage'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
/usr/ports/sysutils/kdeadmin/work/kdeadmin-2.1.1'
 
 
** /usr/ports/sysutils/work/kdeadmin-2.1.1/kpackage/rpmInterface.h:16:
 
[...]
#ifdef HAVE_RPM
#include <sys/types.h>
/* stupid RPM headers! */
typedef __off64_t off64_t;     <-- line 16
#include <rpm/rpmlib.h>
#else
  typedef struct  Header{
};
#endif
[...]
 
 
** linux-realplayer8 install fail:
 
ricin # make NO_CHECKSUM=yes install
===>  Extracting for linux-realplayer-8.cs1
===>   linux-realplayer-8.cs1 depends on executable: rpm2cpio - found
CPIO archive found!
gzip: stdin: unexpected end of file
cpio: premature end of file
*** Error code 1

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01041913220000.30352>