globalplatform fails to build from source

Bug #2060262 reported by Vladimir Petko
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
globalplatform (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

---
lto1: note: destination object is likely at address zero
/usr/bin/ld: /tmp/ccBkSuW8.ltrans0.ltrans.o: in function `mutual_authentication.constprop.0':
/usr/src/globalplatform-2.4.0+dfsg-1build1/globalplatform/src/crypto.c:2270:(.text+0x5978): undefined reference to `__wrap_RAND_bytes'
collect2: error: ld returned 1 exit status
make[3]: *** [globalplatform/src/CMakeFiles/scp03Test.dir/build.make:264: globalplatform/src/scp03Test] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [CMakeFiles/Makefile2:1075: globalplatform/src/CMakeFiles/scp03Test.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
---
[1]

[1] https://launchpadlibrarian.net/723251459/buildlog_ubuntu-noble-amd64.globalplatform_2.4.0+dfsg-1build1_BUILDING.txt.gz

Vladimir Petko (vpa1977)
tags: added: ftbfs update-excuse
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

The attached debdiff is a quick fix for Noble. No need to add to lto-disabled-list, as only the test is building linking with --wrap=RAND_bytes. But I have not forwarded the bug upstream as I am not sure if this should be a gcc bug or a bug in globalplatform.

A build with this change can be seen at https://launchpad.net/~sudipmuk/+archive/ubuntu/test-ppa/+build/28027720

Changed in globalplatform (Ubuntu):
status: New → Confirmed
Revision history for this message
Benjamin Drung (bdrung) wrote :

Sponsored upload.

Changed in globalplatform (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package globalplatform - 2.4.0+dfsg-1ubuntu1

---------------
globalplatform (2.4.0+dfsg-1ubuntu1) noble; urgency=medium

  * d/p/fix-ftbfs.patch: Disable LTO in unittests. (LP: #2060262)

 -- Sudip Mukherjee <email address hidden> Fri, 05 Apr 2024 20:31:05 +0200

Changed in globalplatform (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.