Bug 2413541 - bacula-storage missing link to curl and xml2 shared libraries for cloud plugin
Summary: bacula-storage missing link to curl and xml2 shared libraries for cloud plugin
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: bacula
Version: epel10
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: ---
Assignee: Simone Caronni
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-11-08 13:40 UTC by Tom H
Modified: 2026-11-17 01:58 UTC (History)
5 users (show)

Fixed In Version: bacula-15.0.3-17.fc45 bacula-15.0.3-17.fc44 bacula-15.0.3-12.el10_4 bacula-15.0.3-12.el10_3 bacula-15.0.3-17.fc43
Clone Of:
Environment:
Last Closed: 2026-11-17 01:16:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tom H 2025-11-08 13:40:03 UTC
Description of problem:


Version-Release number of selected component (if applicable): 15.0.3-2.el10_0


How reproducible: Always


Steps to Reproduce:
1. Configure bacula-storage to use the s3 cloud plugin
2. Create a job that backs up some files

Actual results:

storage is unable to load the s3 cloud driver due to undefined symbols

```
08-Nov 01:37 bacula-sd JobId 0: Fatal error: cloud_dev.c:926 dlopen of SD driver=s3 at /usr/lib64/bacula/bacula-sd-cloud-s3-driver-15.0.3.so failed: ERR=/usr/lib64/bacula/bacula-sd-cloud-s3-driver-15.0.3.so: undefined symbol: curl_easy_perform
```

Expected results:

should have symbols linked

Additional info:

fix is to link the driver against the curl and xml2 libs:


bacula-stored-curl.1.patch:

```
diff -Naur  bacula-15.0.3/src/stored/Makefile.in bacula-15.0.3/src/stored/Makefile.in.patched
--- bacula-15.0.3/src/stored/Makefile.in        2025-11-08 05:32:35.020892357 +0000
+++ bacula-15.0.3/src/stored/Makefile.in.patched        2025-11-08 05:33:52.975761629 +0000
@@ -26,6 +26,8 @@

 S3_LIBS=@S3_LIBS@
 S3_INC=@S3_INC@
+CURL_LIBS=@CURL_LIBS@
+XML_LIBS=-lxml2

 DB_LIBS=@DB_LIBS@
 ACSLS_LIBDIR=@ACSLS_LIBDIR@

```

and


bacula-stored-curl.2.patch:

```
diff -Naur  bacula-15.0.3/src/stored/Makefile.in bacula-15.0.3/src/stored/Makefile.in.patched
--- bacula-15.0.3/src/stored/Makefile.in        2025-11-08 05:32:35.020892357 +0000
+++ bacula-15.0.3/src/stored/Makefile.in.patched        2025-11-08 05:33:52.975761629 +0000
@@ -229,7 +229,7 @@
	 $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared $(CLOUD_GENERIC_LOBJS) -o $@ -R $(libdir) -rpath $(libdir) -module -export-dynamic -release $(LIBBACSD_LT_RELEASE)
 
 bacula-sd-cloud-s3-driver.la: Makefile $(CLOUD_S3_LOBJS)
-	 $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared $(CLOUD_S3_LOBJS) -o $@ $(S3_LIBS) -R $(libdir) -rpath $(libdir) -module -export-dynamic -release $(LIBBACSD_LT_RELEASE)
+	 $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared $(CLOUD_S3_LOBJS) -o $@ $(S3_LIBS) $(XML_LIBS) $(CURL_LIBS) -R $(libdir) -rpath $(libdir) -module -export-dynamic -release $(LIBBACSD_LT_RELEASE)
 
 bacula-sd-cloud-glacier-s3-driver.la: Makefile $(CLOUD_S3_GLACIER_LOBJS)
 	 $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared $(CLOUD_S3_GLACIER_LOBJS) -o $@ $(S3_LIBS) -R $(libdir) -rpath $(libdir) -module -export-dynamic -release $(LIBBACSD_LT_RELEASE)

```


and add those to the spec file:

```
Patch1:             %{name}-openssl.patch
Patch2:             %{name}-seg-fault.patch
Patch3:             %{name}-non-free-code.patch
Patch4:             %{name}-traceback-man.patch
Patch5:             %{name}-compile-options.patch
Patch6:             %{name}-install.patch
Patch7:             %{name}-desktop.patch
Patch8:             %{name}-docker-plugin.patch
# Original patch removed by mistake, upstream is not willing to add it again:
# http://www.bacula.org/git/cgit.cgi/bacula/commit/?h=Branch-7.0&id=51b3b98fb77ab3c0decee455cc6c4d2eb3c5303a
# Without this, there is no library providing the correct shared object name
# required by the daemons.
# http://bugs.bacula.org/view.php?id=2084
Patch9:             %{name}-autoconf.patch
Patch10:            %{name}-scripts.patch
Patch11:            %{name}-stored-curl.1.patch
Patch12:            %{name}-stored-curl.2.patch

```

after, is linked against curl and xml 

```
[root@bacula-rocky-10 bacula]# ldd /usr/lib64/bacula/bacula-sd-cloud-s3-driver-15.0.3.so
        linux-vdso.so.1 (0x00007c22dac1b000)
        libxml2.so.2 => /lib64/libxml2.so.2 (0x00007c22daa8d000)
        libcurl.so.4 => /lib64/libcurl.so.4 (0x00007c22da9c6000)
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007c22da600000)
        libm.so.6 => /lib64/libm.so.6 (0x00007c22da918000)
        libc.so.6 => /lib64/libc.so.6 (0x00007c22da428000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007c22da8eb000)
        libz.so.1 => /lib64/libz.so.1 (0x00007c22da8c6000)
        liblzma.so.5 => /lib64/liblzma.so.5 (0x00007c22da892000)
        libnghttp2.so.14 => /lib64/libnghttp2.so.14 (0x00007c22da3f
```

and jobs are successful

```
08-Nov 13:30 bacula-sd JobId 33: Cloud Upload transfers:
08-Nov 13:30 bacula-sd JobId 33: Obj-0003/part.11    state=done     size=623 B duration=0s
08-Nov 13:30 bacula-sd JobId 33: Sending spooled attrs to the Director. Despooling 214 bytes ...
08-Nov 13:35 bacula-sd JobId 34: Volume "Obj-0003" previously written, moving to end of data.
08-Nov 13:35 bacula-sd JobId 34: Using S3 cloud driver Host=localhost:9000 Bucket=bacula
08-Nov 13:35 bacula-sd JobId 34: Elapsed time=00:00:01, Transfer rate=123  Bytes/second
08-Nov 13:35 bacula-sd JobId 34: Cloud Upload transfers:
08-Nov 13:35 bacula-sd JobId 34: Obj-0003/part.12    state=done     size=623 B duration=0s
08-Nov 13:35 bacula-sd JobId 34: Sending spooled attrs to the Director. Despooling 214 bytes ...
```

Comment 1 Tom H 2025-12-01 21:52:14 UTC
I'm not able to push to the fork I made on src.fedoraproject.org

```
[bacula] $ git push --set-upstream origin tolland-2413541
Username for 'https://src.fedoraproject.org/forks/tolland/rpms/bacula.git': tolland
Password for 'https://tolland@src.fedoraproject.org/forks/tolland/rpms/bacula.git': 
fatal: Authentication failed for 'https://src.fedoraproject.org/forks/tolland/rpms/bacula.git/'
[bacula]
```

I've tried various tokens such as creating one here: https://forge.fedoraproject.org/user/settings/applications and also here: https://src.fedoraproject.org/settings#nav-api-tab and also using my password. None of which is working.


however here is the branch on github:
https://github.com/tolland/fedoraproject-rpms-bacula

Comment 2 Fedora Update System 2026-11-08 18:35:01 UTC
FEDORA-EPEL-2026-76fce75e0f (bacula-15.0.3-12.el10_4) has been submitted as an update to Fedora EPEL 10.4.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-76fce75e0f

Comment 3 Fedora Update System 2026-11-08 18:35:02 UTC
FEDORA-2026-c75935247e (bacula-15.0.3-17.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-c75935247e

Comment 4 Fedora Update System 2026-11-08 18:35:03 UTC
FEDORA-EPEL-2026-7fe1a99c69 (bacula-15.0.3-12.el10_2) has been submitted as an update to Fedora EPEL 10.2.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-7fe1a99c69

Comment 5 Fedora Update System 2026-11-08 18:35:04 UTC
FEDORA-EPEL-2026-8d00fe0ea7 (bacula-15.0.3-12.el10_3) has been submitted as an update to Fedora EPEL 10.3.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-8d00fe0ea7

Comment 6 Fedora Update System 2026-11-09 02:01:45 UTC
FEDORA-EPEL-2026-76fce75e0f has been pushed to the Fedora EPEL 10.4 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-76fce75e0f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2026-11-09 02:10:12 UTC
FEDORA-EPEL-2026-8d00fe0ea7 has been pushed to the Fedora EPEL 10.3 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-8d00fe0ea7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2026-11-09 02:25:26 UTC
FEDORA-2026-17c4e75f90 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-17c4e75f90`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-17c4e75f90

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2026-11-09 02:26:00 UTC
FEDORA-EPEL-2026-7fe1a99c69 has been pushed to the Fedora EPEL 10.2 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-7fe1a99c69

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2026-11-09 02:41:23 UTC
FEDORA-2026-c75935247e has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-c75935247e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-c75935247e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2026-11-09 05:23:04 UTC
FEDORA-2026-d8721a9f36 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-d8721a9f36`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-d8721a9f36

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2026-11-17 01:16:12 UTC
FEDORA-2026-d8721a9f36 (bacula-15.0.3-17.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2026-11-17 01:30:14 UTC
FEDORA-2026-17c4e75f90 (bacula-15.0.3-17.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2026-11-17 01:44:17 UTC
FEDORA-EPEL-2026-76fce75e0f (bacula-15.0.3-12.el10_4) has been pushed to the Fedora EPEL 10.4 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2026-11-17 01:53:19 UTC
FEDORA-EPEL-2026-8d00fe0ea7 (bacula-15.0.3-12.el10_3) has been pushed to the Fedora EPEL 10.3 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2026-11-17 01:58:26 UTC
FEDORA-2026-c75935247e (bacula-15.0.3-17.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.