GNU bug report logs - #64034
[PATCH] libparted: link libparted-fs-resize.so to libuuid

Previous Next

Package: parted;

Reported by: Khem Raj <raj.khem <at> gmail.com>

Date: Tue, 13 Jun 2023 06:33:02 UTC

Severity: normal

Tags: patch

Done: "Brian C. Lane" <bcl <at> redhat.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 64034 in the body.
You can then email your comments to 64034 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-parted <at> gnu.org:
bug#64034; Package parted. (Tue, 13 Jun 2023 06:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Khem Raj <raj.khem <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Tue, 13 Jun 2023 06:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Khem Raj <raj.khem <at> gmail.com>
To: bug-parted <at> gnu.org
Cc: Khem Raj <raj.khem <at> gmail.com>
Subject: [PATCH] libparted: link libparted-fs-resize.so to libuuid
Date: Mon, 12 Jun 2023 10:55:19 -0700
uuid_generate() is used in this library
Hence, add UUID_LIBS to libparted_fs_resize_la_LIBADD to avoid

"ld.lld: error: undefined reference due to --no-allow-shlib-undefined: uuid_generate"

This is uncovered by lld linker linking fatresize package
due to this linker defaulting to --no-allow-shlib-undefined.

Signed-off-by: Khem Raj <raj.khem <at> gmail.com>
---
 libparted/fs/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libparted/fs/Makefile.am b/libparted/fs/Makefile.am
index 41a60d9..7fa8d14 100644
--- a/libparted/fs/Makefile.am
+++ b/libparted/fs/Makefile.am
@@ -75,6 +75,7 @@ libparted_fs_resize_la_LDFLAGS =		\
 EXTRA_DIST += fsresize.sym
 libparted_fs_resize_la_DEPENDENCIES = $(sym_file)
 
+libparted_fs_resize_la_LIBADD  = $(UUID_LIBS)
 libparted_fs_resize_la_SOURCES = \
   r/filesys.c			\
   r/fat/bootsector.c		\
-- 
2.41.0





Reply sent to "Brian C. Lane" <bcl <at> redhat.com>:
You have taken responsibility. (Tue, 13 Jun 2023 20:01:02 GMT) Full text and rfc822 format available.

Notification sent to Khem Raj <raj.khem <at> gmail.com>:
bug acknowledged by developer. (Tue, 13 Jun 2023 20:01:02 GMT) Full text and rfc822 format available.

Message #10 received at 64034-done <at> debbugs.gnu.org (full text, mbox):

From: "Brian C. Lane" <bcl <at> redhat.com>
To: Khem Raj <raj.khem <at> gmail.com>
Cc: 64034-done <at> debbugs.gnu.org
Subject: Re: bug#64034: [PATCH] libparted: link libparted-fs-resize.so to
 libuuid
Date: Tue, 13 Jun 2023 13:00:08 -0700
On Mon, Jun 12, 2023 at 10:55:19AM -0700, Khem Raj wrote:
> uuid_generate() is used in this library
> Hence, add UUID_LIBS to libparted_fs_resize_la_LIBADD to avoid
> 
> "ld.lld: error: undefined reference due to --no-allow-shlib-undefined: uuid_generate"
> 
> This is uncovered by lld linker linking fatresize package
> due to this linker defaulting to --no-allow-shlib-undefined.

Thanks! Merged into master.

Brian

-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 12 Jul 2023 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 39 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.