Bug 44049 - compilation of telepathy-qt 0.9.0 fails
Summary: compilation of telepathy-qt 0.9.0 fails
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-qt (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: Andre Moreira Magalhaes
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-22 04:30 UTC by Robby Engelmann
Modified: 2015-04-23 11:20 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Robby Engelmann 2011-12-22 04:30:25 UTC
compiling telepathy-qt 0.9.0 fails with error (cmake without any errors):
...
[ 89%] Building CXX object
tests/dbus/CMakeFiles/test-conn-addressing.dir/conn-addressing.cpp.o            
Linking CXX executable test-conn-addressing                                     
../lib/glib/future/conn-addressing/libfuture-example-conn-addressing.a(conn.c.o):
In function `tp_tests_addressing_connection_get_type':
/home/robby/Download/Prgs/telepathy/telepathy-qt4/tests/lib/glib/future/conn-addressing/conn.c:31:
undefined reference to `tp_tests_contacts_connection_get_type'
collect2: ld returned 1 exit status
make[2]: *** [tests/dbus/test-conn-addressing] Error 1
make[1]: *** [tests/dbus/CMakeFiles/test-conn-addressing.dir/all] Error 2
make: *** [all] Error 2

Reproducible: Always

Steps to Reproduce:
1. download sources from
"http://cgit.freedesktop.org/telepathy/telepathy-qt4/snapshot/telepathy-qt-0.9.0.tar.gz"
or download via
git clone git://anongit.freedesktop.org/telepathy/telepathy-qt4
2. mkdir build
3. cd build
4. cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
5. make -j 2

Actual Results:  
error message

Expected Results:  
sources compile

i am running kubuntu oneiric with kde 4.7.4.
Comment 1 Olli Salli 2011-12-29 07:27:49 UTC
Not nice at all. Sorry!

Andre, could this have something to do with the conditionally compiled in tests? Robby, which Qt version do you have?
Comment 2 Robby Engelmann 2011-12-29 07:35:55 UTC
I am using Qt version 4.7.4 under ubuntu oneiric.

Can I disable to comile these tests?
Comment 3 Olli Salli 2011-12-29 07:45:21 UTC
You can try commenting out (prefix with the '#' character) the line

> tpqt_add_dbus_unit_test(ConnectionAddressing conn-addressing tp-glib-tests tp-qt-tests-glib-helpers)

in telepathy-qt/tests/dbus/CMakeLists.txt

But there is something weird here: the tp-glib-tests static utility library which is mentioned as a dependency in that line should contain that symbol in all cases. Excerpt from nm(1) dump for me:

> <more:~/work/telepathy-qt/build> nm tests/lib/glib/libtp-glib-tests.so |
>                                       grep contacts_connection_get_type
> 000000000000daf0 T tp_tests_contacts_connection_get_type

Thus, you'll possibly hit a different compilation issue later on.
Comment 4 Robby Engelmann 2011-12-29 08:03:39 UTC
I just tried compilation after commenting out the mentioned line. All went without any errors.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.