bugGNU Octave - Bugs: bug #60419, [octave forge] (zeromq) package...

 
 

bug #60419: [octave forge] (zeromq) package install fails with recent libzmq

Submitted by:  Alexander Wilms <alexanderw>
Submitted on:  Mon 19 Apr 2021 04:27:37 PM UTC  
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Ready For Test Assigned to:  John Donoghue <lostbard>
Originator Name:  Open/Closed:  Open
Release:  6.2.0 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

( Jump to the original submission)

Thu 22 Apr 2021 11:33:27 AM UTC, comment #10: 

PUshed a change to the repo

https://sourceforge.net/p/octave/zeromq/ci/e7bf40261dbaacb474a1b488cbec400c2987725c/

It will be part of the next release.

John Donoghue <lostbard>
Project MemberIn charge of this item.
Wed 21 Apr 2021 02:48:29 PM UTC, comment #9: 

You're right. I now ran autoconf before creating the archive and now it works fine.

Alexander Wilms <alexanderw>
Wed 21 Apr 2021 02:43:46 PM UTC, comment #8: 

Do you really get the same error as before?
I.e.:

checking for library containing zmq_version... no

In that case, I don't think the patch applied correctly.
Maybe you'd have to run `autoconf` after you applied the patch before creating the new tarball?

Markus M├╝tzel <mmuetzel>
Project Member
Wed 21 Apr 2021 01:47:01 PM UTC, comment #7: 

>> system('ldconfig -p | grep libsodium');
        libsodium.so.23 (libc6,x86-64) => /app/lib/libsodium.so.23
        libsodium.so (libc6,x86-64) => /app/lib/libsodium.so

Alexander Wilms <alexanderw>
Wed 21 Apr 2021 01:43:40 PM UTC, comment #6: 

What the output from running:

system('ldconfig -p | grep libsodium')

John Donoghue <lostbard>
Project MemberIn charge of this item.
Wed 21 Apr 2021 01:38:03 PM UTC, comment #5: 

It's located in the same direcory.

>> system('echo $PKG_CONFIG_PATH');
/app/lib/pkgconfig:/app/share/pkgconfig
>> system('echo $LDFLAGS');
-L/app/lib
>> cd /app/lib
>> system('ls | grep sodium');
libsodium.so
libsodium.so.23
libsodium.so.23.3.0

Alexander Wilms <alexanderw>
Wed 21 Apr 2021 01:12:44 PM UTC, comment #4: 

Just to verify, where is libsodium on your system? As I would have thought that given the added -L path and the fact it seems to know its not there that it should work

John Donoghue <lostbard>
Project MemberIn charge of this item.
Wed 21 Apr 2021 12:41:03 PM UTC, comment #3: 

The pkg-config output:

>> system('pkg-config --libs libzmq');
-L/app/lib -lzmq

The patch did not work for me, I got the same error as before.

Alexander Wilms <alexanderw>
Tue 20 Apr 2021 12:42:04 PM UTC, comment #2: 

perhaps something lke this

(file #51297)

John Donoghue <lostbard>
Project MemberIn charge of this item.
Tue 20 Apr 2021 11:54:32 AM UTC, comment #1: 

It should probably use pkg-config first to attempt to get the zmq libraries and then fall back on the more manual detection if it doesnt find it.

What does the following show?:

pkg-config --libs libzmq

John Donoghue <lostbard>
Project MemberIn charge of this item.
Mon 19 Apr 2021 04:27:37 PM UTC, original submission:  

This issue occurred when testing the Flatpak Octave package, using libzmq.so.5.2.4. Downstream bug report:

https://github.com/flathub/org.octave.Octave/issues/124

>> cd /app/lib
>> system('ls | grep zmq');
libzmq.so
libzmq.so.5
libzmq.so.5.2.4
>> system('nm -gDC libzmq.so | grep zmq_version');
00000000000aed90 T zmq_version
>> pkg install -forge zeromq
configure: error: octave zeromq package requires zeromq library
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for mkoctfile... /app/bin/mkoctfile-6.2.0
checking for octave-config... /app/bin/octave-config-6.2.0
checking how to run the C++ preprocessor... g++ -E
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking zmq.h usability... yes
checking zmq.h presence... yes
checking for zmq.h... yes
checking for library containing zmq_version... no

error: pkg: error running the configure script for zeromq.
error: called from
    configure_make at line 93 column 9
    install at line 196 column 7
    pkg at line 568 column 9

Error message in config.log:

warning: libsodium.so.23, needed by /app/lib/libzmq.so, not found (try using -rpath or -rpath-link)

Apparently, the configure script needs to set linker options in order to find libsodium.

Alexander Wilms <alexanderw>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #51297:  bug60419.patch added by lostbard (2KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by siko1056 (Updated the item)
  • -email is unavailable- added by alexanderw (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-04-22 lostbard StatusNone => Ready For Test
        Assigned toNone => lostbard
    2021-04-20 lostbard Attached File- => Added bug60419.patch, #51297
    2021-04-19 siko1056 SummaryInstalling zeromq package fails with recent libzmq => [octave forge] (zeromq) package install fails with recent libzmq

    Back to the top


    Powered by Savane 3.6