Hi,

if I try to build parted-3.2 with the gold linker I get the following
error. The attached patch fixes that for me.

libs/libparted.so
libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -march=native -pipe
-O2 -floop-block -floop-
interchange -floop-strip-mine -Wl,-O1 -rdynamic -o .libs/dup-clobber
dup-clobber.o  ../libpart
ed/.libs/libparted.so
libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -march=native -pipe
-O2 -floop-block -floop-
interchange -floop-strip-mine -Wl,-O1 -rdynamic -o .libs/fs-resize
fs-resize.o  ../libparted/f
s/.libs/libparted-fs-resize.so ../libparted/.libs/libparted.so
../libparted/fs/.libs/libparted-fs-resize.so: error: undefined reference
to 'uuid_generate'
collect2: error: ld returned 1 exit status
Makefile:1491: recipe for target 'fs-resize' failed
make[4]: *** [fs-resize] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory
'/var/tmp/paludis/build/sys-fs-parted-3.2/work/parted-3.2/tests'
Makefile:1783: recipe for target 'check-am' failed
make[3]: *** [check-am] Error 2
make[3]: Leaving directory
'/var/tmp/paludis/build/sys-fs-parted-3.2/work/parted-3.2/tests'
Makefile:1265: recipe for target 'check-recursive' failed
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory
'/var/tmp/paludis/build/sys-fs-parted-3.2/work/parted-3.2'
Makefile:1738: recipe for target 'ss-1024' failed
make[1]: Leaving directory
'/var/tmp/paludis/build/sys-fs-parted-3.2/work/parted-3.2'
make[1]: *** [ss-1024] Error 2
Makefile:1744: recipe for target 'check-other-sector_sizes' failed
make: *** [check-other-sector_sizes] Error 2

-- 
Best Regards,
Heiko Becker
>From 1f8d32e79f6356ccde7da898a21ba1674478f7a4 Mon Sep 17 00:00:00 2001
From: Heiko Becker <heire...@exherbo.org>
Date: Fri, 19 Sep 2014 16:51:34 +0200
Subject: [PATCH] libparted: also link to UUID_LIBS

This fixes building parted with the gold linker.
---
 libparted/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libparted/Makefile.am b/libparted/Makefile.am
index edc5f2e..cb58648 100644
--- a/libparted/Makefile.am
+++ b/libparted/Makefile.am
@@ -58,6 +58,7 @@ libparted_la_LIBADD =	\
   $(DM_LIBS)		\
   $(SELINUX_LIBS)	\
   $(LIB_BLKID)		\
+  $(UUID_LIBS)		\
   $(INTLLIBS)
 
 EXTRA_DIST	      = mbr.s
-- 
2.1.0

Reply via email to