Well, My environment is running a Director and Storage 9.4 version. I think
that is not recommendable to use a higher client version, isn't?
________________________________
De: Eric Bollengier via Bacula-users <[email protected]>
Enviado: terça-feira, 21 de março de 2023 04:39
Para: [email protected] <[email protected]>
Assunto: Re: [Bacula-users] Failed to create el9 rpm package
Hello Guilherme,
On 3/15/23 15:58, Guilherme Santos wrote:
> I'm having trouble creating the package. Below is the information about the
> environment and the error.
>
> Environment
>
> Operating System: Rocky Linux 9.1
> Source code to package: bacula-9.4.4.tar.gz
In general, compiling an old software (9.4.4 is 4 years old) on a new system
is a long and painful process.
I would recommend to compile the new version 13.0 instead.
Best Regards,
Eric
> Software to build the package: rpmdevtools rpmlint
>
> - bacula.spec.in
> # basic defines for every build
> %define _release 0
> %define _version 9.4.4
> %define product bacula
> %define depkgs_version 24Dec11
> tcpwrappers 0
> lzo 0
>
> Command executed to create the binary .rpm package
> $ rpmbuild -bb --define "build_rh9 1" --define "build_client_only 1" --define
> "build_mysql 1" ~/rpmbuild/SPECS/bacula.spec.in
>
> Compiling bsnapshot.c
> bsnapshot.c: In member function 'char* lvm::get_lv_from_dm(char*, POOLMEM**,
> u_int32_t*, u_int32_t*)':
> bsnapshot.c:1123:32: error: 'major' cannot be used as a function
> 1123 | if (maj == major(sp.st_rdev) &&
> | ~~~~~^~~~~~~~~~~~
> bsnapshot.c:1124:32: error: 'minor' cannot be used as a function
> 1124 | min == minor(sp.st_rdev))
> | ~~~~~^~~~~~~~~~~~
> make: *** [Makefile:155: bsnapshot.o] Error 1
> make: Leaving directory '/home/rpmbuild/BUILD/bacula-9.4.4/src/tools'
> error: Bad exit status from /var/tmp/rpm-tmp.zfjnRT (%install)
>
> RPM build errors:
> Macro expanded in comment on line 536: %{suse} && ! 0%{?opensuse_bs}
> Macro expanded in comment on line 537: %debug_package
> extra tokens at the end of %endif directive in line 715: %endif
> # suse
> extra tokens at the end of %endif directive in line 720: %endif
> # mdk
> extra tokens at the end of %endif directive in line 725: %endif
> # !suse && !mdk
> extra tokens at the end of %endif directive in line 727: %endif
> # ! usesystemd
> Bad exit status from /var/tmp/rpm-tmp.zfjnRT (%install)
>
> LOG: /var/tmp/rpm-tmp.zfjnRT
> # fix me - building enable-client-only installs files not included in
> bacula-client package
> # Program docs not installed on client
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bacula-dir.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bacula-sd.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bcopy.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bextract.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bls.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bscan.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/btape.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/dbcheck.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bregex.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bwild.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man1/bsmtp.1.gz
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula_config
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula-ctl-dir
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula-ctl-sd
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/disk-changer
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/dvd-handler
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/mtx-changer
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/startmysql
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/stopmysql
> rm -rf $RPM_BUILD_ROOT/opt/bacula/scripts/updatedb
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bconsole
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/mtx-changer.conf
> rm -f $RPM_BUILD_ROOT/opt/bacula/bin/bacula
>
> [ "%{buildarch}" = "noarch" ] || QA_CHECK_RPATHS=1 ;
> case "${QA_CHECK_RPATHS:-}" in [1yY]*) /usr/lib/rpm/check-rpaths ;; esac
> /usr/lib/rpm/check-buildroot
>
>
>
> _______________________________________________
> Bacula-users mailing list
> [email protected]
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fbacula-users&data=05%7C01%7C%7C28e9677c24ca4996f1bf08db29dfba21%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638149813114260082%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EfQIgCS%2Fus7DXrBGLZPRzdf4EmUy67lGroe9VC5bYA8%3D&reserved=0
_______________________________________________
Bacula-users mailing list
[email protected]
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fbacula-users&data=05%7C01%7C%7C28e9677c24ca4996f1bf08db29dfba21%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638149813114260082%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EfQIgCS%2Fus7DXrBGLZPRzdf4EmUy67lGroe9VC5bYA8%3D&reserved=0
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users