util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Build problem in 2.31
@ 2017-12-18  3:33 L A Walsh
  2017-12-18 12:38 ` Karel Zak
  0 siblings, 1 reply; 5+ messages in thread
From: L A Walsh @ 2017-12-18  3:33 UTC (permalink / raw)
  To: util-linux

In some of the utils in 2.31, I've had a problem where I build
and get an error like:

make AM_DEFAULT_VERBOSITY=1  swapon
/bin/sh ./libtool  --tag=CC   --mode=link /usr/bin/gcc -fsigned-char 
-fno-common -Wall -Werror=sequence-point -Wextra -Wmissing-declarations 
-Wmissing-parameter-type -Wmissing-prototypes 
-Wno-missing-field-initializers -Wredundant-decls -Wsign-compare 
-Wtype-limits -Wuninitialized -Wunused-but-set-parameter 
-Wunused-but-set-variable -Wunused-parameter -Wunused-result 
-Wunused-variable -Wnested-externs -Wpointer-arith -Wstrict-prototypes 
-Wimplicit-function-declaration -I./libblkid/src -I./libmount/src 
-I./libsmartcols/src -fpic -march=native -pipe -Og  -fpic -march=native 
-pipe -Og -Wl,--default-symver -Wl,--stats  -o swapon 
sys-utils/swapon-swapon.o sys-utils/swapon-swapon-common.o 
lib/swapon-swapprober.o  libblkid.la libcommon.la libmount.la 
libsmartcols.la
libtool: link: /usr/bin/gcc -fsigned-char -fno-common -Wall 
-Werror=sequence-point -Wextra -Wmissing-declarations 
-Wmissing-parameter-type -Wmissing-prototypes 
-Wno-missing-field-initializers -Wredundant-decls -Wsign-compare 
-Wtype-limits -Wuninitialized -Wunused-but-set-parameter 
-Wunused-but-set-variable -Wunused-parameter -Wunused-result 
-Wunused-variable -Wnested-externs -Wpointer-arith -Wstrict-prototypes 
-Wimplicit-function-declaration -I./libblkid/src -I./libmount/src 
-I./libsmartcols/src -fpic -march=native -pipe -Og -fpic -march=native 
-pipe -Og -Wl,--default-symver -Wl,--stats -o .libs/swapon 
sys-utils/swapon-swapon.o sys-utils/swapon-swapon-common.o 
lib/swapon-swapprober.o  ./.libs/libblkid.so ./.libs/libcommon.a 
./.libs/libmount.so 
/home/tools/util-linux/util-linux-2.31/.libs/libblkid.so 
/home/tools/util-linux/util-linux-2.31/.libs/libuuid.so -lrt 
./.libs/libsmartcols.so -Wl,-rpath -Wl,//lib64
/usr/lib64/gcc/x86_64-pc-linux-gnu/7/../../../../lib64/crt1.o:/home/abuild/rpmbuild/BUILD/glibc-2.19/csu/../sysdeps/x86_64/start.S:67: 
multiple definition of `swapon'
collect2: error: ld returned 1 exit status
Makefile:6756: recipe for target 'swapon' failed
make: *** [swapon] Error 1

----
Not all of the utils have these errors, but when the util may
also be the name of a system call, is my guess of when these
arise.

Any idea of what I might be doing wrong?

Appreciate pointers!
Tnx,
-linda



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-12-18 23:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-18  3:33 Build problem in 2.31 L A Walsh
2017-12-18 12:38 ` Karel Zak
2017-12-18 12:57   ` L A Walsh
2017-12-18 13:28     ` Karel Zak
2017-12-18 23:02       ` L A Walsh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).