yabar icon indicating copy to clipboard operation
yabar copied to clipboard

Error 1 - Undefined reference to 'config_setting_lookup'

Open CarderpSmith opened this issue 9 years ago • 5 comments

make CPPFLAGS=-D_POSIX_C_SOURCE=199309L
cc -o yabar src/ya_draw.o src/ya_exec.o src/ya_main.o src/ya_parse.o src/intern_blks/ya_intern.o -lxcb -lpthread -lxcb-randr -lxcb-ewmh `pkg-config --libs pango pangocairo libconfig gdk-pixbuf-2.0`
src/ya_parse.o: In function `ya_config_parse':
ya_parse.c:(.text+0x4ae): undefined reference to `config_setting_lookup'
ya_parse.c:(.text+0xb2a): undefined reference to `config_setting_lookup'
collect2: error: ld returned 1 exit status
make: *** [yabar] Error 1

Same error is returned with regular >make command.

Running Ubuntu 14.04.

Installed dependencies.

CarderpSmith avatar Jun 08 '16 15:06 CarderpSmith

Same problem in Debian 8.4

~/github/yabar $ export CPPFLAGS=-DOLD_LIBCONFIG
~/github/yabar $ make
cc -o yabar src/ya_parse.o src/ya_exec.o src/ya_draw.o src/ya_main.o src/intern_blks/ya_intern.o -lxcb -lpthread -lxcb-randr -lxcb-ewmh `pkg-config --libs pango pangocairo libconfig`
src/ya_parse.o: dans la fonction « ya_config_parse »:
ya_parse.c:(.text+0x969): référence indéfinie vers « config_setting_lookup »
ya_parse.c:(.text+0xda6): référence indéfinie vers « config_setting_lookup »
collect2: error: ld returned 1 exit status
Makefile:18: recipe for target 'yabar' failed
make: *** [yabar] Error 1

privatemajory avatar Jun 12 '16 08:06 privatemajory

Hi @CarderpSmith and @privatemajory, this problem can be solved if you invoke export CPPFLAGS=-DOLD_LIBCONFIG before you use make.

geommer avatar Jun 13 '16 22:06 geommer

Hi @geommer. If you look my command, I did it but still got the error. Thank you :wink:

privatemajory avatar Jun 14 '16 15:06 privatemajory

Yeah, same here. I applied "export CPPFLAGS=-DOLD_LIBCONFIG" but I'm still getting the error..

eti0 avatar Jun 15 '16 22:06 eti0

Well, guys, this seems like an easy-to-solve problem but I can't figure out how to at the moment, so I will download Debian and run it on a virtual machine so I can understand what is happening here.

This problem may be the same issue as #80, so @androvix, you may be interested to see the updates of this thread in the upcoming days.

geommer avatar Jun 16 '16 03:06 geommer