question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Undefined reference error while building on Centos 6.5

See original GitHub issue

I’m trying to build linux natives on centos 6.5, after using CMake to generate Makefile, I run make -j4. When linking libraries error occurs:

Linking CXX executable Release/jcef_helper
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_get_boolean'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_new'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `__fdelt_chk@GLIBC_2.15'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `memcpy@GLIBC_2.14'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `sendmmsg@GLIBC_2.14'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_schema_source_get_default'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_get_int'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_schema_source_lookup'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_get_string'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_get_strv'
../../third_party/cef/cef_binary_3.3396.1775.g5340bb0_linux64/Release/libcef.so: undefined reference to `g_settings_get_child'
collect2: error: ld returned 1 exit status
make[2]: *** [native/Release/jcef_helper] Error 1
make[1]: *** [native/CMakeFiles/jcef_helper.dir/all] Error 2
make: *** [all] Error 2

From some google result, these missing g_xxx comes from gtk library, however I already installed gtk+ 2.8, could you help me solve this problem? thanks in advanced.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Peng-YMcommented, Jul 31, 2018

Finally find the solution, this error occurs due to missing gtk-2.0 and GConf2 libraries.

yum groupinstall "Development Tools"
yum install gtk+-devel gtk2-devel
yum install GConf2
0reactions
dzikoyskcommented, Jul 30, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Undefined reference error while compiling - Stack Overflow
The message undefined reference to 'function_name' implies that of all the object files you're giving to the linker, none of them has a ......
Read more >
Undefined reference when compiling program, what to do
If you get an error about "undefined reference" when compiling a program of your own from source code, then you are probably missing...
Read more >
24.3 build on Centos 6.5: undefined ref to `g_settings_get_va
I'm trying to build emacs on my Centos 6.5 PC (Linux destgd0h411156 2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16 18:37:12 UTC 2013 x86_64 ...
Read more >
NodeJS 12.13.0 CentOS fail compile · Issue #30077 - GitHub
Version: 12.13.0 Platform: CentOS 6 inside Docker Subsystem: . ... Even in 13.6.0 does not compile. Error. undefined reference to ...
Read more >
C++ Errors: Undefined Reference, Unresolved External ...
An “Undefined Reference” error occurs when we have a reference to object name (class, function, variable, etc.) in our program and the linker ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found