You are not logged in.

#1 2021-09-29 15:54:28

GlitchedCode
Member
From: Italy, Sicily
Registered: 2019-05-25
Posts: 10

[SOLVED] pkg-config stopped working, symbol lookup error

Hello,

I've been running a fairly old and battered arch install, today I learned I'm unable to compile programs that use pkg-config during configuration. Running any variation of the command returns the following error:

pkg-config: symbol lookup error: pkg-config: undefined symbol: pkgconf_cross_personality_deinit

At this point I have no idea why this program should fail like this. I reinstalled the relevant package multiple, times, and I also tried compiling it from source and tinkering with the Makefile, to no avail because I don't really get Makefiles.

Thanks in advance for your help.

UPDATE: I solved it by recompiling the lastest version, if you have this error I advise you to scroll down to the bottom of the pkgconf github instead of using the in-site release links. (try it if needed but it gets complicated)

UPDATE 2: removing /usr/lib/libpkgconf.so.3 and reinstalling the pkg-config package solved the issue

Last edited by GlitchedCode (2021-09-29 17:01:29)


Wryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
my very cool dwm build

Offline

#2 2021-09-29 16:11:46

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] pkg-config stopped working, symbol lookup error

Or better yet, just use the latest version in the repos and everything would be fine.

Offline

#3 2021-09-29 16:19:16

GlitchedCode
Member
From: Italy, Sicily
Registered: 2019-05-25
Posts: 10

Re: [SOLVED] pkg-config stopped working, symbol lookup error

Scimmia wrote:

Or better yet, just use the latest version in the repos and everything would be fine.

But I did. Asking pacman for pkg-config installs pkgconf, which undoes me doing it by hand when compiling it from source and the command outputs the error in the original post. For some reason on my system I have to compile it from source to make it work.


Wryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
my very cool dwm build

Offline

#4 2021-09-29 16:32:09

loqs
Member
Registered: 2014-03-06
Posts: 18,996

Re: [SOLVED] pkg-config stopped working, symbol lookup error

What is the output of:

pacman -Si pkgconf
pacman -Qi pkgconf

The symbol is provided by pkgconf 1.8.0-1

objdump -T /usr/lib/libpkgconf.so.3.0.0 | grep cross
0000000000006ad0 g    DF .text	0000000000000023  Base        pkgconf_cross_personality_deinit
0000000000006a50 g    DF .text	0000000000000074  Base        pkgconf_cross_personality_default
0000000000006b00 g    DF .text	0000000000000125  Base        pkgconf_cross_personality_find

Offline

#5 2021-09-29 16:36:58

GlitchedCode
Member
From: Italy, Sicily
Registered: 2019-05-25
Posts: 10

Re: [SOLVED] pkg-config stopped working, symbol lookup error

loqs wrote:

What is the output of:

pacman -Si pkgconf
pacman -Qi pkgconf

The symbol is provided by pkgconf 1.8.0-1

objdump -T /usr/lib/libpkgconf.so.3.0.0 | grep cross
0000000000006ad0 g    DF .text	0000000000000023  Base        pkgconf_cross_personality_deinit
0000000000006a50 g    DF .text	0000000000000074  Base        pkgconf_cross_personality_default
0000000000006b00 g    DF .text	0000000000000125  Base        pkgconf_cross_personality_find
$ pacman -Si pkgconf

Repository                : core
Nome                      : pkgconf
Versione                  : 1.8.0-1
Descrizione               : Package compiler and linker metadata toolkit
Architettura              : x86_64
URL                       : https://github.com/pkgconf/pkgconf
Licenze                   : custom:ISC
Gruppi                    : base-devel
Fornisce                  : pkg-config  pkgconfig  libpkgconf.so=3-64
Dipenda da                : glibc  sh
Dipendenze opzionali      : Nessuno
Conflitti con             : pkg-config
Sostituisce               : pkg-config
Dimensione del download   : 57,59 KiB
Spazio richiesto          : 161,65 KiB
Pacchettizzatore          : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Data di creazione         : gio 9 set 2021, 13:50:13
Convalidato da            : Somma MD5  Somma SHA-256  Firma

$pacman -Qi pkgconf

Nome                      : pkgconf
Versione                  : 1.8.0-1
Descrizione               : Package compiler and linker metadata toolkit
Architettura              : x86_64
URL                       : https://github.com/pkgconf/pkgconf
Licenze                   : custom:ISC
Gruppi                    : base-devel
Fornisce                  : pkg-config  pkgconfig  libpkgconf.so=3-64
Dipenda da                : glibc  sh
Dipendenze opzionali      : Nessuno
Richiesto da              : perl-pkgconfig-libpkgconf  vala
Opzionale per             : Nessuno
Conflitti con             : pkg-config
Sostituisce               : pkg-config
Spazio richiesto          : 161,65 KiB
Pacchettizzatore          : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Data di creazione         : gio 9 set 2021, 13:50:13
Data di installazione     : mer 29 set 2021, 18:15:22
Motivo dell'installazione : Installato come dipendenza di un altro pacchetto
Script di install         : No
Convalidato da            : Firma

Wryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
my very cool dwm build

Offline

#6 2021-09-29 16:45:12

loqs
Member
Registered: 2014-03-06
Posts: 18,996

Re: [SOLVED] pkg-config stopped working, symbol lookup error

lddtree is provided by pax-utils

lddtree `which pkg-config`

Offline

#7 2021-09-29 16:58:44

GlitchedCode
Member
From: Italy, Sicily
Registered: 2019-05-25
Posts: 10

Re: [SOLVED] pkg-config stopped working, symbol lookup error

loqs wrote:

lddtree is provided by pax-utils

lddtree `which pkg-config`

I tried on both builds

From the binary package:

/usr/bin/pkg-config (interpreter => /lib64/ld-linux-x86-64.so.2)
    libpkgconf.so.3 => /usr/lib/libpkgconf.so.3
    libc.so.6 => /usr/lib/libc.so.6

Build from source:

/usr/bin/pkg-config (interpreter => /lib64/ld-linux-x86-64.so.2)
    libpkgconf.so.3 => /usr/local/lib/libpkgconf.so.3
    libc.so.6 => /usr/lib/libc.so.6

removing /usr/lib/libpkgconf.so.3 and reinstalling pkg-config seems to have resolved the issue for good, thank you!

Last edited by GlitchedCode (2021-09-29 16:59:10)


Wryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
my very cool dwm build

Offline

Board footer

Powered by FluxBB