<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>52753</bug_id>
          
          <creation_ts>2025-01-19 06:38:23 +0300</creation_ts>
          <short_desc>Слинкованные бинарники не находят dllcamlzip.so на i586</short_desc>
          <delta_ts>2025-01-20 00:58:10 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>ocaml-camlzip</component>
          <version>unstable</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Chikunov">vt</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>257644</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2025-01-19 06:38:23 +0300</bug_when>
    <thetext>Собранное с ocaml-camlzip-devel:

 + /usr/src/tmp/why3-buildroot/usr/bin/why3 --version
 Fatal error: cannot load shared library dllcamlzip
 Reason: dllcamlzip.so: cannot open shared object file: No such file or directory

strace:

 builder@i586:~/RPM/BUILD/why3-1.8.0$ strace -Zs888 /usr/src/tmp/why3-buildroot/usr/bin/why3
 access(&quot;/etc/ld.so.preload&quot;, R_OK)      = -1 ENOENT (No such file or directory)
 statx(AT_FDCWD, &quot;/usr/lib/ocaml/stublibs/dllcamlzip.so&quot;, AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT, STATX_BASIC_STATS, 0xffdfa46c) = -1 ENOENT (No such file or directory)
 statx(AT_FDCWD, &quot;/usr/lib/ocaml/dllcamlzip.so&quot;, AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT, STATX_BASIC_STATS, 0xffdfa46c) = -1 ENOENT (No such file or directory)
 openat(AT_FDCWD, &quot;/lib/dllcamlzip.so&quot;, O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
 openat(AT_FDCWD, &quot;/usr/lib/dllcamlzip.so&quot;, O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
 Fatal error: cannot load shared library dllcamlzip
 Reason: dllcamlzip.so: cannot open shared object file: No such file or directory
 --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=2083666, si_uid=502} ---
 +++ killed by SIGABRT (core dumped) +++
 Aborted (core dumped)

Наверное, потому что она лежит в /usr/lib64/ocaml/zip/, а не в /usr/lib/ocaml/stublibs.

На Fedora и Debian она лежит в stublibs, например:

  https://salsa.debian.org/ocaml-team/camlzip/-/blob/master/debian/rules?ref_type=heads

На x86_64 проблемы нет наверное из-за native arch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257668</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2025-01-19 19:52:24 +0300</bug_when>
    <thetext>Спасибо, поправлю.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257670</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-01-19 20:11:00 +0300</bug_when>
    <thetext>ocaml-camlzip-1.13-alt2 -&gt; sisyphus:

 Sun Jan 19 2025 Anton Farygin &lt;rider@altlinux.ru&gt; 1.13-alt2
 - fixed installation path for the stub library (closes: #52753)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257673</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2025-01-20 00:58:10 +0300</bug_when>
    <thetext>Спасибо.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>