bugGNU Octave - Bugs: bug #62416, Failure to build with SSL support...


bug #62416: Failure to build with SSL support (sha512.c:(.text+0x130): multiple definition of `sha512_read_ctx)

Submitter:  Sam James <thesamesam>
Submitted:  Thu 05 May 2022 02:06:03 AM UTC
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 7.1.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Mon 23 May 2022 06:30:05 AM UTC, comment #5: 

Thank you for checking.

Closing as fixed.

Markus Mützel <mmuetzel>
Group administrator
Sun 22 May 2022 10:18:33 PM UTC, comment #4: 

Built for me, thank you!

Sam James <thesamesam>
Sun 22 May 2022 09:48:43 PM UTC, comment #3: 

Thanks Markus. Let me give this a go. I didn't see the emails so just happened to check the bug!

Sam James <thesamesam>
Fri 06 May 2022 05:57:15 PM UTC, comment #2: 

Thank you for the report.

I can confirm that issue on Ubuntu 22.04.

Something must have changed in gnulib without us noticing.

I pushed the following change to the stable branch that fixes the issue for me:

It should be part of Octave 7.2.0 when it will be released.

Marking as ready for test.

Markus Mützel <mmuetzel>
Group administrator
Thu 05 May 2022 02:10:20 AM UTC, comment #1: 

Oh, and the build is fine with SSL disabled. There are symbols clashing when it statically links with gnulib but I don't know where this is coming from.

Maybe some logic in the build system is using gnulib's SHA512 and MD5 bits even when OpenSSL is enabled, when instead it should be one or the other? I didn't have time to look into it further (yet?).

Sam James <thesamesam>
Thu 05 May 2022 02:06:03 AM UTC, original submission:  

This seems to have started with 7.1.0 as 6.4.0 is fine with the same configuration otherwise.

Noticed in Gentoo originally (https://bugs.gentoo.org/842645) when packaging 7.1.0 but forwarding my own report upstream.

Error looks like:

sha512.c:(.text+0xe0): multiple definition of `sha512_process_block'; libgnu/.libs/libgnu.a(sha512-stream.o):sha512-stream.c:(.text+0x250): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: libgnu/.libs/libgnu.a(sha512.o): in function `sha512_finish_ctx':
sha512.c:(.text+0x100): multiple definition of `sha512_finish_ctx'; libgnu/.libs/libgnu.a(sha512-stream.o):sha512-stream.c:(.text+0x40): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: libgnu/.libs/libgnu.a(sha512.o): in function `sha512_buffer':
sha512.c:(.text+0x120): multiple definition of `sha512_buffer'; libgnu/.libs/libgnu.a(sha512-stream.o):sha512-stream.c:(.text+0x270): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: libgnu/.libs/libgnu.a(sha512.o): in function `sha512_read_ctx':
sha512.c:(.text+0x130): multiple definition of `sha512_read_ctx'; libgnu/.libs/libgnu.a(sha512-stream.o):sha512-stream.c:(.text+0x280): first defined here
collect2: error: ld returned 1 exit status
make[2]: * [Makefile:13986: liboctave/liboctave.la] Error 1
make[2]: Leaving directory '/var/tmp/portage/sci-mathematics/octave-7.1.0/work/octave-7.1.0'

I've attached the full build.log.xz (needed to be compressed due to size). Our ebuild (packaging) is available at https://gitweb.gentoo.org/repo/gentoo.git/tree/sci-mathematics/octave/octave-7.1.0.ebuild?id=510489d817fdc246fd73b7000886692ee27ff699.

Let me know if I can provide more information.

Sam James <thesamesam>


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

Attach Files:

Attached Files
file #53175:  build.log.xz added by thesamesam (98KiB - application/x-xz - build.log.xz)


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 thesamesam (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.


    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-05-23 mmuetzel StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2022-05-06 mmuetzel StatusNone Ready For Test
        Operating SystemGNU/Linux Any
    2022-05-05 thesamesam Attached File- Added build.log.xz, #53175

    Back to the top

    Powered by Savane 3.13-7c56.
    Corresponding source code