<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15114</bug_id>
          
          <creation_ts>2023-05-05 14:28:59 +0000</creation_ts>
          <short_desc>curl build fails when ssh is enable</short_desc>
          <delta_ts>2023-06-01 21:07:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>3.1.26</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.1.26</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>frederic.chanal</reporter>
          <assigned_to name="Steve Sakoman">steve</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>95502</commentid>
    <comment_count>0</comment_count>
    <who name="">frederic.chanal</who>
    <bug_when>2023-05-05 14:28:59 +0000</bug_when>
    <thetext>Hi, 

Following the introduction of a CVE-2023-27534 patch in curl for dunsfell (https://git.yoctoproject.org/poky/commit/meta/recipes-support/curl?h=dunfell&amp;id=00af542d30e27be23c927ad214ffbef368ab3215) the build now fails when curl is configured with `libssh2` (PACKAGECONFIG_append = &quot; libssh2&quot;)

Extract of the error:

| ../x86_64-linux-libtool  --tag=CC   --mode=compile gcc  -DHAVE_CONFIG_H   -I../../curl-7.69.1/include -I../lib -I../../curl-7.69.1/lib  -DBUILDING_LIBCURL  -DCURL_HIDDEN_SYMBOLS -isystem/cwd/build/tmp/work/x86_64-linux/curl-native/7.69.1-r0/recipe-sysroot-native/usr/include -I/cwd/build/tmp/work/x86_64-linux/curl-native/7.69.1-r0/recipe-sysroot-native/usr/lib/..//include -I/cwd/build/tmp/work/x86_64-linux/curl-native/7.69.1-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -I/cwd/build/tmp/work/x86_64-linux/curl-native/7.69.1-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include  -fvisibility=hidden -isystem/cwd/build/tmp/work/x86_64-linux/curl-native/7.69.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -Werror-implicit-function-declaration -Wno-system-headers  -c -o vauth/libcurl_la-krb5_sspi.lo `test -f &apos;vauth/krb5_sspi.c&apos; || echo &apos;../../curl-7.69.1/lib/&apos;`vauth/krb5_sspi.c
| ../../curl-7.69.1/lib/curl_path.c: In function ‘Curl_getworkingpath’:
| ../../curl-7.69.1/lib/curl_path.c:44:17: error: storage size of ‘npath’ isn’t known
|    44 |   struct dynbuf npath;
|       |                 ^~~~~
| ../../curl-7.69.1/lib/curl_path.c:52:3: error: implicit declaration of function ‘Curl_dyn_init’; did you mean ‘Curl_ssh_init’? [-Werror=implicit-function-declaration]
|    52 |   Curl_dyn_init(&amp;npath, MAX_SSHPATH_LEN);
|       |   ^~~~~~~~~~~~~
|       |   Curl_ssh_init
| ../../curl-7.69.1/lib/curl_path.c:58:8: error: implicit declaration of function ‘Curl_dyn_addn’ [-Werror=implicit-function-declaration]
|    58 |     if(Curl_dyn_addn(&amp;npath, &amp;working_path[3], working_path_len - 3)) {
|       |        ^~~~~~~~~~~~~


The patch depends on code that is not available on Curl 7.69.1 (namely `dynbufs.[ch]`)

When Curl is compiled without the `libssh2` PACKAGECONFIG option there&apos;s no error cause the patch act on code that is not compiled in this case.

Maybe a solution is to upgrade to curl &gt;= 7.71 where this https://github.com/curl/curl/pull/5300 has been added.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95515</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-05-11 14:34:08 +0000</bug_when>
    <thetext>3.1.25 is released but we don&apos;t have 3.1.26 in the menus yet so parked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95618</commentid>
    <comment_count>2</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2023-06-01 21:07:37 +0000</bug_when>
    <thetext>Fixed:

https://git.yoctoproject.org/poky/commit/?h=dunfell&amp;id=ed5cd048aec8c7dc417143ee569b57c83fc0d7cc</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>