<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<base href="http://tracker.crosswire.org">
<title>Message Title</title>
</head>
<body class="jira" style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.429">
<table id="background-table" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; background-color: #f5f5f5; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt" bgcolor="#f5f5f5">
<!-- header here -->
<tbody>
<tr>
<td id="header-pattern-container" style="padding: 0px; border-collapse: collapse; padding: 10px 20px">
<table id="header-pattern" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tbody>
<tr>
<td id="header-avatar-image-container" valign="top" style="padding: 0px; border-collapse: collapse; vertical-align: top; width: 32px; padding-right: 8px" width="32"> <img id="header-avatar-image" class="image_fix" src="cid:jira-generated-image-avatar-8d368499-fed5-48f3-8386-e85488db1ce9" height="32" width="32" border="0" style="border-radius: 3px; vertical-align: top"> </td>
<td id="header-text-container" valign="middle" style="padding: 0px; border-collapse: collapse; vertical-align: middle; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px"> <a class="user-hover" rel="andresmessina-SDG" id="email_andresmessina-SDG" href="http://tracker.crosswire.org/secure/ViewProfile.jspa?name=andresmessina-SDG" style="color:#000000;; color: #3b73af; text-decoration: none">Andres Messina</a> <strong>created</strong> an issue </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td id="email-content-container" style="padding: 0px; border-collapse: collapse; padding: 0 20px">
<table id="email-content-table" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-spacing: 0; border-collapse: separate">
<tbody>
<tr>
<!-- there needs to be content in the cell for it to render in some clients -->
<td class="email-content-rounded-top mobile-expand" style="padding: 0px; border-collapse: collapse; color: #ffffff; padding: 0 15px 0 16px; height: 15px; background-color: #ffffff; border-left: 1px solid #cccccc; border-top: 1px solid #cccccc; border-right: 1px solid #cccccc; border-bottom: 0; border-top-right-radius: 5px; border-top-left-radius: 5px; height: 10px; line-height: 10px; padding: 0 15px 0 16px; mso-line-height-rule: exactly" height="10" bgcolor="#ffffff"> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand " style="padding: 0px; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff" bgcolor="#ffffff">
<table class="page-title-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tbody>
<tr>
<td class="page-title-pattern-first-line " style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; padding-top: 10px"> <a href="http://tracker.crosswire.org/browse/API" style="color: #3b73af; text-decoration: none">SWORD</a> / <a href="http://tracker.crosswire.org/browse/API-263" style="color: #3b73af; text-decoration: none"><img src="cid:jira-generated-image-avatar-9fc584c4-171c-4739-bc16-a16efd603cfd" height="16" width="16" border="0" align="absmiddle" alt="Bug" style="vertical-align: text-bottom"></a> <a href="http://tracker.crosswire.org/browse/API-263" style="color: #3b73af; text-decoration: none">API-263</a> </td>
</tr>
<tr>
<td style="vertical-align: top;; padding: 0px; border-collapse: collapse; padding-right: 5px; font-size: 20px; line-height: 30px; mso-line-height-rule: exactly" class="page-title-pattern-header-container"> <span class="page-title-pattern-header" style="font-family: Arial, sans-serif; padding: 0; font-size: 20px; line-height: 30px; mso-text-raise: 2px; mso-line-height-rule: exactly; vertical-align: middle"> <a href="http://tracker.crosswire.org/browse/API-263" style="color: #3b73af; text-decoration: none">CMakeLists.txt uses deprecated singular CURL_LIBRARY, breaking libcurl linking on modern CMake</a> </span> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand wrapper-special-margin" style="padding: 0px; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff; padding-top: 10px; padding-bottom: 5px" bgcolor="#ffffff">
<table class="keyvalue-table" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tbody>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Issue Type:</th>
<td class="has-icon" style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <img src="cid:jira-generated-image-avatar-9fc584c4-171c-4739-bc16-a16efd603cfd" height="16" width="16" border="0" align="absmiddle" alt="Bug" style="vertical-align: text-bottom"> Bug </td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Affects Versions:</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> 1.9.0 </td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Assignee:</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> Unassigned </td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Attachments:</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> sword-curl-libraries.patch </td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Components:</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> CMake build system, Make build system </td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Created:</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> 28/May/26 3:47 PM </td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Environment:</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0; margin-top: 0">Linux (Fedora 44 host, building in GNOME 50 Flatpak SDK based on freedesktop-sdk 5.08)<br> CMake 3.28<br> GCC 14<br> curl 8.x (from SDK)</p> </td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Priority:</th>
<td class="has-icon" style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <img src="cid:jira-generated-image-static-major-3f221a7d-f94c-4a36-a481-30cc4b6e91fd" height="16" width="16" border="0" align="absmiddle" alt="Major" style="vertical-align: text-bottom"> Major </td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Reporter:</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <a class="user-hover" rel="andresmessina-SDG" id="email_andresmessina-SDG" href="http://tracker.crosswire.org/secure/ViewProfile.jspa?name=andresmessina-SDG" style="color:#000000;; color: #3b73af; text-decoration: none">Andres Messina</a> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand issue-description-container" style="padding: 0px; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff; padding-top: 5px; padding-bottom: 10px" bgcolor="#ffffff">
<table class="text-paragraph-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 2px">
<tbody>
<tr>
<td class="text-paragraph-pattern-container mobile-resize-text " style="padding: 0px; border-collapse: collapse; padding: 0 0 10px 0"> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0; margin-top: 0">Hello,</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">I ran into a build issue with SWORD 1.9.0 while packaging a SWORD-based<br> application for Flathub against a recent toolchain (CMake 3.28+,<br> freedesktop-sdk 25.08). I tracked it down to what I believe is a small<br> upstream bug, and wanted to report it in case you'd like to fix it for<br> the next release.</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">Symptom<br> -------<br> libsword.so builds successfully but has no NEEDED entry for libcurl<br> and ships with unresolved curl_easy_* symbols. Any downstream binary<br> that links against libsword (including SWORD's own buildtest) then<br> fails to link with:</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">undefined reference to `curl_easy_init'<br> undefined reference to `curl_easy_perform'<br> undefined reference to `curl_easy_setopt'<br> undefined reference to `curl_easy_cleanup'<br> undefined reference to `curl_global_init'<br> undefined reference to `curl_global_cleanup'</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">Despite CMake reporting curl as found:</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">– cURL: system and /usr/include</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">Note the empty space between "system" and "and" — that's where the<br> curl library path was supposed to print.</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">Root cause<br> ----------<br> In CMakeLists.txt around line 219:</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">SET(SWORD_LINK_LIBRARIES ${SWORD_LINK_LIBRARIES} ${CURL_LIBRARY})</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">This uses the singular ${CURL_LIBRARY}. Modern CMake's FindCURL.cmake<br> (since roughly 3.4) only sets CURL_LIBRARIES (plural) — the singular<br> form has been deprecated and is no longer set on current CMake<br> versions. The substitution therefore expands to an empty string, and<br> libcurl never makes it onto the link line.</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">The same pattern is used correctly elsewhere in the file (zlib, bzip2,<br> xz, icu all use the singular form, but those Find modules still set<br> the singular variable in modern CMake).</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">Suggested fix<br> -------------<br> A one-line change to CMakeLists.txt:</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">— a/CMakeLists.txt<br> +++ b/CMakeLists.txt<br> @@ -216,7 +216,7 @@ IF(WITH_CURL)<br> ENDIF(CURL_CONFIG_OUTPUT STREQUAL "1")<br> ENDIF(CURL_CONFIG)<br> INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIRS})</p>
<ul class="alternate" type="square">
<li>SET(SWORD_LINK_LIBRARIES ${SWORD_LINK_LIBRARIES} ${CURL_LIBRARY})<br> + SET(SWORD_LINK_LIBRARIES ${SWORD_LINK_LIBRARIES} ${CURL_LIBRARIES})<br> ENDIF(WITH_CURL)</li>
</ul> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">I verified this against SWORD 1.9.0 on CMake 3.28 with the GNOME 50<br> runtime — libsword.so now correctly carries libcurl.so.4 in its NEEDED<br> entries, and all downstream targets link cleanly.</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">Most distributions probably don't hit this because they carry their<br> own patches, or they use older CMake versions where the singular<br> variable is still set. It only becomes visible on a freshly-modern<br> toolchain.</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">Happy to send a proper merge request if a Git repo is the preferred<br> intake — otherwise feel free to apply the diff directly.</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">Thanks for SWORD — it's the backbone of a Bible study app I'm building<br> for the Linux desktop.</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">Best regards,<br> Andres Messina</p> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand " style="padding: 0px; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff" bgcolor="#ffffff">
<table id="actions-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px">
<tbody>
<tr>
<td id="actions-pattern-container" valign="middle" style="padding: 0px; border-collapse: collapse; padding: 10px 0 10px 24px; vertical-align: middle; padding-left: 0">
<table align="left" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tbody>
<tr>
<td class="actions-pattern-action-icon-container" style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 0; vertical-align: middle"> <a href="http://tracker.crosswire.org/browse/API-263#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none"> <img class="actions-pattern-action-icon-image" src="cid:jira-generated-image-static-comment-icon-f0c98ca0-372a-4a2d-8d38-66506513f13c" alt="Add Comment" title="Add Comment" height="16" width="16" border="0" style="vertical-align: middle"> </a> </td>
<td class="actions-pattern-action-text-container" style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 4px; padding-left: 5px"> <a href="http://tracker.crosswire.org/browse/API-263#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none">Add Comment</a> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table> </td>
</tr>
<!-- there needs to be content in the cell for it to render in some clients -->
<tr>
<td class="email-content-rounded-bottom mobile-expand" style="padding: 0px; border-collapse: collapse; color: #ffffff; padding: 0 15px 0 16px; height: 5px; line-height: 5px; background-color: #ffffff; border-top: 0; border-left: 1px solid #cccccc; border-bottom: 1px solid #cccccc; border-right: 1px solid #cccccc; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; mso-line-height-rule: exactly" height="5" bgcolor="#ffffff"> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td id="footer-pattern" style="padding: 0px; border-collapse: collapse; padding: 12px 20px">
<table id="footer-pattern-container" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tbody>
<tr>
<td id="footer-pattern-text" class="mobile-resize-text" width="100%" style="padding: 0px; border-collapse: collapse; color: #999999; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px"> This message was sent by Atlassian JIRA <span id="footer-build-information">(v7.7.0#77001-<span title="3be31511dfd860a9aedae108fbd5f079b4968c6a" data-commit-id="3be31511dfd860a9aedae108fbd5f079b4968c6a}">sha1:3be3151</span>)</span> </td>
<td id="footer-pattern-logo-desktop-container" valign="top" style="padding: 0px; border-collapse: collapse; padding-left: 20px; vertical-align: top">
<table style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tbody>
<tr>
<td id="footer-pattern-logo-desktop-padding" style="padding: 0px; border-collapse: collapse; padding-top: 3px"> <img id="footer-pattern-logo-desktop" src="cid:jira-generated-image-static-footer-desktop-logo-1535ee2c-973c-4df7-9a97-cc32ae41f5a7" alt="Atlassian logo" title="Atlassian logo" width="169" height="36" class="image_fix"> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table>
</body>
</html>