compiz fails to build with GNU gold linker

Bug #1058149 reported by Stephen M. Webb on 2012-09-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
Medium
Sam Spilsbury
compiz (Ubuntu)
Medium
Sam Spilsbury

Bug Description

Some test executables are failing to link because they have undefined symbols. In particular, build errors are as follows.

Linking CXX executable compiz_plugin_test
/home/.../compiz/src/plugin.cpp:150: error: undefined reference to 'dlopen'
/home/.../compiz/src/plugin.cpp:159: error: undefined reference to 'dlerror'
/home/.../compiz/src/plugin.cpp:162: error: undefined reference to 'dlsym'
/home/.../compiz/src/plugin.cpp:164: error: undefined reference to 'dlerror'
/home/.../compiz/src/plugin.cpp:194: error: undefined reference to 'dlerror'
/home/.../compiz/src/plugin.cpp:198: error: undefined reference to 'dlclose'
/home/.../compiz/src/plugin.cpp:211: error: undefined reference to 'dlclose'
collect2: error: ld returned 1 exit status

and

Linking CXX executable compizconfig_test_gsettings
/home/.../compiz/compizconfig/gsettings/tests/test_gsettings_tests.cpp:131: error: undefined reference to 'g_str_equal'
/home/.../compiz/compizconfig/gsettings/tests/test_gsettings_tests.cpp:156: error: undefined reference to 'g_variant_type_checked_'
/home/.../compiz/compizconfig/gsettings/tests/test_gsettings_tests.cpp:156: error: undefined reference to 'g_variant_builder_init'
/home/.../compiz/compizconfig/gsettings/tests/test_gsettings_tests.cpp:157: error: undefined reference to 'g_variant_builder_add'
/home/.../compiz/compizconfig/gsettings/tests/test_gsettings_tests.cpp:159: error: undefined reference to 'g_variant_builder_end'
/home/.../compiz/compizconfig/gsettings/tests/test_gsettings_tests.cpp:166: error: undefined reference to 'g_variant_unref'
/home/.../compiz/compizconfig/gsettings/tests/test_gsettings_tests.cpp:210: error: undefined reference to 'g_variant_type_checked_'
/home/.../compiz/compizconfig/gsettings/tests/test_gsettings_tests.cpp:210: error: undefined reference to 'g_variant_builder_init'
/home/.../compiz/compizconfig/gsettings/tests/test_gsettings_tests.cpp:211: error: undefined reference to 'g_variant_builder_add'
/home/.../compiz/compizconfig/gsettings/tests/test_gsettings_tests.cpp:212: error: undefined reference to 'g_variant_builder_add'
/home/.../compiz/compizconfig/gsettings/tests/test_gsettings_tests.cpp:214: error: undefined reference to 'g_variant_builder_end'
/home/.../compiz/compizconfig/gsettings/tests/test_gsettings_tests.cpp:229: error: undefined reference to 'g_variant_unref'
/home/.../compiz/compizconfig/gsettings/tests/test_gsettings_tests.cpp:247: error: undefined reference to 'g_free'
/home/.../compiz/compizconfig/gsettings/tests/test_gsettings_tests.cpp:265: error: undefined reference to 'g_free'
....

Steps To Reproduce:

(1) apt-get install binutils-gold
(2) try a clean build of compiz

Related branches

Changed in compiz:
status: New → Confirmed
assignee: nobody → Sam Spilsbury (smspillaz)
milestone: none → 0.9.9.0
Changed in compiz (Ubuntu):
status: New → Confirmed
Changed in compiz:
status: Confirmed → In Progress
Changed in compiz:
status: In Progress → Fix Committed
Changed in compiz (Ubuntu):
assignee: nobody → Sam Spilsbury (smspillaz)
status: Confirmed → Fix Committed
Changed in compiz:
importance: Undecided → Medium
Changed in compiz (Ubuntu):
importance: Undecided → Medium
Changed in compiz:
status: Fix Committed → Fix Released
Changed in compiz (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers