rpm source package from cosmic does not build on xenial
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rpm (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
I am trying to backport the rpm package with backportpackage, but the source package does not build; it fails with
rpmio.c:1059:5: error: unknown type name ‘ZSTD_inBuffer’
ZSTD_inBuffer zib; /*!< ZSTD_inBuffer */
^
rpmio.c:1060:5: error: unknown type name ‘ZSTD_outBuffer’
ZSTD_outBuffer zob; /*!< ZSTD_outBuffer */
^
rpmio.c: In function ‘rpmzstdNew’:
rpmio.c:1128:26: warning: implicit declaration of function ‘ZSTD_createDSt
if ((_stream = (void *) ZSTD_createDStr
rpmio.c:1128:17: warning: cast to pointer from integer of different size [-Wint-
if ((_stream = (void *) ZSTD_createDStr
^
rpmio.c:1129:19: warning: implicit declaration of function ‘ZSTD_initDStream’ [-Wimplicit-
|| ZSTD_isError(
rpmio.c:1132:7: warning: implicit declaration of function ‘ZSTD_DStreamIn
nb = ZSTD_DStreamInS
^
rpmio.c:1134:26: warning: implicit declaration of function ‘ZSTD_createCSt
if ((_stream = (void *) ZSTD_createCStr
rpmio.c:1134:17: warning: cast to pointer from integer of different size [-Wint-
if ((_stream = (void *) ZSTD_createCStr
^
rpmio.c:1135:19: warning: implicit declaration of function ‘ZSTD_initCStream’ [-Wimplicit-
|| ZSTD_isError(
rpmio.c:1138:7: warning: implicit declaration of function ‘ZSTD_CStreamOu
nb = ZSTD_CStreamOut
^
rpmio.c: In function ‘zstdFlush’:
rpmio.c:1175:11: error: request for member ‘dst’ in something not a structure or union
zstd->zob.dst = zstd->b;
^
rpmio.c:1176:11: error: request for member ‘size’ in something not a structure or union
zstd->zob.size = zstd->nb;
^
rpmio.c:1177:11: error: request for member ‘pos’ in something not a structure or union
zstd->zob.pos = 0;
^
rpmio.c:1178:11: warning: implicit declaration of function ‘ZSTD_flushStream’ [-Wimplicit-
int xx = ZSTD_flushStrea
^
rpmio.c:1181:20: error: request for member ‘pos’ in something not a structure or union
else if (zstd->zob.pos != fwrite(zstd->b, 1, zstd->zob.pos, zstd->fp))
rpmio.c:1181:56: error: request for member ‘pos’ in something not a structure or union
else if (zstd->zob.pos != fwrite(zstd->b, 1, zstd->zob.pos, zstd->fp))
rpmio.c: In function ‘zstdRead’:
rpmio.c:1193:5: error: unknown type name ‘ZSTD_outBuffer’
ZSTD_outBuffer zob = { buf, count, 0 };
^
rpmio.c:1193:28: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
ZSTD_outBuffer zob = { buf, count, 0 };
rpmio.c:1193:28: note: (near initialization for ‘zob’)
rpmio.c:1193:33: warning: excess elements in scalar initializer
ZSTD_outBuffer zob = { buf, count, 0 };
rpmio.c:1193:33: note: (near initialization for ‘zob’)
rpmio.c:1193:40: warning: excess elements in scalar initializer
ZSTD_outBuffer zob = { buf, count, 0 };
rpmio.c:1193:40: note: (near initialization for ‘zob’)
rpmio.c:1195:15: error: request for member ‘pos’ in something not a structure or union
while (zob.pos < zob.size) {
^
rpmio.c:1195:25: error: request for member ‘size’ in something not a structure or union
while (zob.pos < zob.size) {
rpmio.c:1197:15: error: request for member ‘pos’ in something not a structure or union
if (zstd->zib.pos >= zstd->zib.size) {
^
rpmio.c:1197:32: error: request for member ‘size’ in something not a structure or union
if (zstd->zib.pos >= zstd->zib.size) {
rpmio.c:1198:15: error: request for member ‘size’ in something not a structure or union
zstd-
^
rpmio.c:1199:19: error: request for member ‘size’ in something not a structure or union
if (zstd->zib.size == 0)
rpmio.c:1201:15: error: request for member ‘src’ in something not a structure or union
zstd->zib.src = zstd->b;
^
rpmio.c:1202:15: error: request for member ‘pos’ in something not a structure or union
zstd->zib.pos = 0;
^
rpmio.c:1206:11: warning: implicit declaration of function ‘ZSTD_decompres
int xx = ZSTD_decompress
^
rpmio.c:1212:15: error: request for member ‘pos’ in something not a structure or union
return zob.pos;
^
rpmio.c: In function ‘zstdWrite’:
rpmio.c:1219:5: error: unknown type name ‘ZSTD_inBuffer’
ZSTD_inBuffer zib = { buf, count, 0 };
^
rpmio.c:1219:27: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
ZSTD_inBuffer zib = { buf, count, 0 };
rpmio.c:1219:27: note: (near initialization for ‘zib’)
rpmio.c:1219:32: warning: excess elements in scalar initializer
ZSTD_inBuffer zib = { buf, count, 0 };
rpmio.c:1219:32: note: (near initialization for ‘zib’)
rpmio.c:1219:39: warning: excess elements in scalar initializer
ZSTD_inBuffer zib = { buf, count, 0 };
rpmio.c:1219:39: note: (near initialization for ‘zib’)
rpmio.c:1221:15: error: request for member ‘pos’ in something not a structure or union
while (zib.pos < zib.size) {
^
rpmio.c:1221:25: error: request for member ‘size’ in something not a structure or union
while (zib.pos < zib.size) {
rpmio.c:1224:11: error: request for member ‘dst’ in something not a structure or union
zstd->zob.dst = zstd->b;
^
rpmio.c:1225:11: error: request for member ‘size’ in something not a structure or union
zstd->zob.size = zstd->nb;
^
rpmio.c:1226:11: error: request for member ‘pos’ in something not a structure or union
zstd->zob.pos = 0;
^
rpmio.c:1229:18: warning: implicit declaration of function ‘ZSTD_compressS
int xx = ZSTD_compressSt
^
rpmio.c:1236:22: error: request for member ‘pos’ in something not a structure or union
if (zstd->zob.pos > 0) {
rpmio.c:1237:46: error: request for member ‘pos’ in something not a structure or union
size_t nw = fwrite(zstd->b, 1, zstd->zob.pos, zstd->fp);
rpmio.c:1238:25: error: request for member ‘pos’ in something not a structure or union
if (nw != zstd->zob.pos) {
rpmio.c:1244:15: error: request for member ‘pos’ in something not a structure or union
return zib.pos;
^
rpmio.c: In function ‘zstdClose’:
rpmio.c:1255:2: warning: implicit declaration of function ‘ZSTD_freeDStream’ [-Wimplicit-
ZSTD_
^
rpmio.c:1258:11: error: request for member ‘dst’ in something not a structure or union
zstd->zob.dst = zstd->b;
^
rpmio.c:1259:11: error: request for member ‘size’ in something not a structure or union
zstd->zob.size = zstd->nb;
^
rpmio.c:1260:11: error: request for member ‘pos’ in something not a structure or union
zstd->zob.pos = 0;
^
rpmio.c:1261:11: warning: implicit declaration of function ‘ZSTD_endStream’ [-Wimplicit-
int xx = ZSTD_endStream(
^
rpmio.c:1264:20: error: request for member ‘pos’ in something not a structure or union
else if (zstd->zob.pos != fwrite(zstd->b, 1, zstd->zob.pos, zstd->fp))
rpmio.c:1264:56: error: request for member ‘pos’ in something not a structure or union
else if (zstd->zob.pos != fwrite(zstd->b, 1, zstd->zob.pos, zstd->fp))
rpmio.c:1268:2: warning: implicit declaration of function ‘ZSTD_freeCStream’ [-Wimplicit-
ZSTD_
^
rpmio.c: In function ‘zstdWrite’:
rpmio.c:1245:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
rpmio.c: In function ‘zstdRead’:
rpmio.c:1213:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Makefile:659: recipe for target 'rpmio.lo' failed
make[4]: *** [rpmio.lo] Error 1
make[4]: Leaving directory '/<<BUILDDIR>
Makefile:1333: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/<<BUILDDIR>
Makefile:768: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/<<BUILDDIR>
dh_auto_build: make -j1 returned exit code 2
debian/rules:30: recipe for target 'override_
make[1]: *** [override_
make[1]: Leaving directory '/<<BUILDDIR>
debian/rules:51: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
See https:/
I created this package via
backportpackage -y -u ppa:jgross-
summary: |
- rpm source package does not build + rpm source package from cosmic does not build on xenial |
And on Trusty, with a slightly modified package (editing out the debhelper version dependency by hand), I get
Writing /<<BUILDDIR> >/rpm-4. 14.1+dfsg1/ python/ debian/ tmp/usr/ lib/python3. 4/dist- packages/ rpm-4.14. 1.egg-info tmp/usr/ lib/rpm/ config. guess \ tmp/usr/ lib/rpm/ config. sub \ tmp/usr/ lib/*/* .la \ tmp/usr/ lib/*/rpm- plugins/ *.la \ tmp/usr/ lib/rpm/ rpm.log tmp/usr/ lib/rpm/ rpm.daily >/rpm-4. 14.1+dfsg1' tmp/usr/ lib/rpm/ debugedit’ : No such file or directory tmp/usr/ lib/rpm/ debugedit debian/ debugedit/ /usr/lib/ rpm/ returned exit code 1
# Kill all the junk this installs.
rm -f debian/
debian/
debian/
debian/
debian/
# Fix permissions
chmod +x debian/
make[1]: Leaving directory `/<<BUILDDIR>
dh_install -a -O--fail-missing
cp: cannot stat ‘debian/
dh_install: cp -a debian/
make: *** [binary-arch] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2
See https:/ /launchpadlibra rian.net/ 395167969/ buildlog_ ubuntu- trusty- amd64.rpm_ 4.14.1+ dfsg1-4. 1~trusty~ ppa5_BUILDING. txt.gz for the full log