Skip to contentSkip to conversation

undefined reference to symbol 'blkid_probe_lookup_value@@BLKID_2.15'

DISCUSSION Benno Schulenberg 2 participants 3 messages Jul 24, 2014 – Aug 4, 2014 Util-Linux package

lore
Share & tools
lore
#0 lore raw

Compiling current git, I get this:

[...]

  CC       sys-utils/swapoff-swapoff.o
  CC       sys-utils/swapoff-swapon-common.o
  CCLD     swapoff

/usr/bin/ld: sys-utils/swapoff-swapon-common.o: undefined reference to symbol 'blkid_probe_lookup_value@@BLKID_2.15' /home/ben/ULIX/.libs/libblkid.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [swapoff] Fout 1
make[2]: Map '/home/ben/ULIX' wordt verlaten
make[1]: *** [all-recursive] Fout 1
make[1]: Map '/home/ben/ULIX' wordt verlaten
make: *** [all] Fout 2

Do I have stale stuff again somewhere?

Using 'make -k', a bit later it says this:

CC disk-utils/swaplabel-swaplabel.o
disk-utils/swaplabel.c: In function ‘main’:
disk-utils/swaplabel.c:175:2: warning: implicit declaration of function ‘get_swap_prober’ [-Wimplicit-function-declaration]
pr = get_swap_prober(devname);
^
disk-utils/swaplabel.c:175:2: warning: nested extern declaration of ‘get_swap_prober’ [-Wnested-externs] disk-utils/swaplabel.c:175:5: warning: assignment makes pointer from integer without a cast [enabled by default]

  pr = get_swap_prober(devname);
     ^

Benno

Signature · 2 lines
http://www.fastmail.fm - Accessible with your email software
                          or over the web
#1 lore raw

Am Donnerstag, 24. Juli 2014, 13:07:21 schrieb Benno Schulenberg:

Quoted 29 lines

Compiling current git, I get this:

[...]

  CC       sys-utils/swapoff-swapoff.o
  CC       sys-utils/swapoff-swapon-common.o
  CCLD     swapoff

/usr/bin/ld: sys-utils/swapoff-swapon-common.o: undefined reference to symbol 'blkid_probe_lookup_value@@BLKID_2.15' /home/ben/ULIX/.libs/libblkid.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [swapoff] Fout 1
make[2]: Map '/home/ben/ULIX' wordt verlaten
make[1]: *** [all-recursive] Fout 1
make[1]: Map '/home/ben/ULIX' wordt verlaten
make: *** [all] Fout 2

Do I have stale stuff again somewhere?

Using 'make -k', a bit later it says this:

CC disk-utils/swaplabel-swaplabel.o
disk-utils/swaplabel.c: In function ‘main’:
disk-utils/swaplabel.c:175:2: warning: implicit declaration of function ‘get_swap_prober’ [-Wimplicit-function-declaration] pr = get_swap_prober(devname);
^
disk-utils/swaplabel.c:175:2: warning: nested extern declaration of ‘get_swap_prober’ [-Wnested-externs] disk-utils/swaplabel.c:175:5: warning:
assignment makes pointer from integer without a cast [enabled by default]

Quoted 2 lines
pr = get_swap_prober(devname);
     ^

I can confirm this compiling a clean checkout with ./configure --with-slang with

merkaba:~> dpkg -l | grep blkid | cut -c1-70

ii  libblkid-dev:amd64                         2.25-6                 
ii  libblkid1:amd64                            2.25-6 

on Debian Sid.

Signature · 2 lines
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7
#2 lore raw
In reply to Benno Schulenberg

Am Donnerstag, 24. Juli 2014, 13:07:21 schrieb Benno Schulenberg:

Quoted 16 lines

Compiling current git, I get this:

[...]

  CC       sys-utils/swapoff-swapoff.o
  CC       sys-utils/swapoff-swapon-common.o
  CCLD     swapoff

/usr/bin/ld: sys-utils/swapoff-swapon-common.o: undefined reference to symbol 'blkid_probe_lookup_value@@BLKID_2.15' /home/ben/ULIX/.libs/libblkid.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [swapoff] Fout 1
make[2]: Map '/home/ben/ULIX' wordt verlaten
make[1]: *** [all-recursive] Fout 1
make[1]: Map '/home/ben/ULIX' wordt verlaten
make: *** [all] Fout 2

Quoted 1 line

Do I have stale stuff again somewhere?

Work-around is to configure with --disable-libblkid

Signature · 2 lines
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7