View Issue Details

IDProjectCategoryView StatusLast Update
0001058bareos-core[All Projects] Generalpublic2019-07-13 10:36
ReportertuxmasterAssigned To 
Status newResolutionopen 
PlatformLinuxOSRHELOS Version7
Product Version18.2.5 
Target VersionFixed in Version 
Summary0001058: 18.2.6 build error while cmake don't build the correct dependency's
DescriptionIt looks like, cmake produce an make file in which try to build before rpcgen was running for all files.
So the build will fails with:
[ 28%] Generating ndmp9.h, ndmp9_xdr.c
cd /builddir/build/BUILD/bareos-Release-18.2.6/core/src/ndmp && /usr/bin/rpcgen -CM /builddir/build/BUILD/bareos-Release-18.2.6/cor
BUILDSTDERR: In file included from /builddir/build/BUILD/bareos-Release-18.2.6/core/src/ndmp/ndmlib.h:43:0,
BUILDSTDERR: from /builddir/build/BUILD/bareos-Release-18.2.6/core/src/ndmp/ndmagents.h:100,
BUILDSTDERR: from /builddir/build/BUILD/bareos-Release-18.2.6/core/src/stored/
BUILDSTDERR: /builddir/build/BUILD/bareos-Release-18.2.6/core/src/ndmp/ndmprotocol.h:102:19: fatal error: ndmp0.h: No such file or
BUILDSTDERR: #include "ndmp0.h"
BUILDSTDERR: compilation terminated.
[ 29%] Generating ndmp0.h, ndmp0_xdr.c
cd /builddir/build/BUILD/bareos-Release-18.2.6/core/src/ndmp && /usr/bin/rpcgen -CM /builddir/build/BUILD/bareos-Release-18.2.6/core/src/ndmp/ndmp0.x
Additional InformationSee the build.log for the complete build.
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action




2019-02-16 11:58


build.log (226,170 bytes)


2019-03-31 13:59

reporter   ~0003307

Work around before the build:
for X in 0 2 3 4 9;do
rpcgen -CM ../core/src/ndmp/ndmp${X}.x


2019-07-10 17:39

developer   ~0003434

This has never happened to me.
What version of cmake are you using?
What is your cmake and make commandline?

In short: how can I reproduce this?


2019-07-13 10:36

reporter   ~0003458

cmake version 3.13.5 will used.
To reproduce it, simple use an fedora/redhat or centos system and try to build it using the default way on this platforms.
1. call rpmbuild -bs to create the srpm file
2. build the package via mock -r centos-7-x86_64 PATH_TO_SRPM
Then the build fails, because the files are not generated.

And to build it with my fix:
 mock -r centos-7-x86_64 PATH_TO_SRPM

Because the ticket system here is limit to 2MB I have uploaded all needed files to my nextcloud instance:

Issue History

Date Modified Username Field Change
2019-02-16 11:58 tuxmaster New Issue
2019-02-16 11:58 tuxmaster File Added: build.log
2019-03-31 13:59 tuxmaster Note Added: 0003307
2019-07-10 17:39 arogge Status new => feedback
2019-07-10 17:39 arogge Note Added: 0003434
2019-07-13 10:36 tuxmaster Note Added: 0003458
2019-07-13 10:36 tuxmaster Status feedback => new