By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 1242

Summary: Build issue: kdenetwork 3.5.13.1 does not detect wireless-tools 30
Product: TDE Reporter: Francois Andriot <albator78>
Component: tdenetworkAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: major CC: albator78, bugwatch, darrella, slavek.banko
Priority: P5    
Version: 3.5.13 [Trinity]   
Hardware: All   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Attachments: Fix FTBFS in protocols/msn/webcam/libmimic
Fix linker flags for wireless-tools cmake check

Description Francois Andriot 2012-09-30 04:56:47 CDT
Building on opensuse 12.2, using wireless-tools and libiw 30 , I have the following result:

-- Looking for iw_get_stats in iw
-- Looking for iw_get_stats in iw - not found
CMake Error at cmake/modules/TDEMacros.cmake:20 (message):
  #################################################

   wifi support needs wireless tools >= 27, but was not found on your system

  #################################################
Call Stack (most recent call first):
  wifi/ConfigureChecks.cmake:33 (tde_message_fatal)
  wifi/CMakeLists.txt:12 (include)


-- Configuring incomplete, errors occurred!



Extract from CMakeError.log :

Determining if the function iw_get_stats exists in the iw failed with the following output:
Change Dir: /home/albator/rpmbuild/BUILD/BUILD.i386/kdenetwork-3.5.13.1/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3187307642/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3187307642.dir/build.make CMakeFiles/cmTryCompileExec3187307642.dir/build
gmake[1]: Entering directory `/home/albator/rpmbuild/BUILD/BUILD.i386/kdenetwork-3.5.13.1/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/albator/rpmbuild/BUILD/BUILD.i386/kdenetwork-3.5.13.1/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3187307642.dir/CheckFunctionExists.c.o
/home/albator/bin/gcc   -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables   -DCHECK_FUNCTION_EXISTS=iw_get_stats   -o CMakeFiles/cmTryCompileExec3187307642.dir/CheckFunctionExists.c.o   -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec3187307642
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3187307642.dir/link.txt --verbose=1
/home/albator/bin/gcc   -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables   -DCHECK_FUNCTION_EXISTS=iw_get_stats    CMakeFiles/cmTryCompileExec3187307642.dir/CheckFunctionExists.c.o  -o cmTryCompileExec3187307642 -rdynamic -liw
/usr/lib/gcc/i586-suse-linux/4.7/../../../libiw.so: undefined reference to `ceil'
/usr/lib/gcc/i586-suse-linux/4.7/../../../libiw.so: undefined reference to `pow'
/usr/lib/gcc/i586-suse-linux/4.7/../../../libiw.so: undefined reference to `log10'
/usr/lib/gcc/i586-suse-linux/4.7/../../../libiw.so: undefined reference to `floor'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTryCompileExec3187307642] Error 1
gmake[1]: Leaving directory `/home/albator/rpmbuild/BUILD/BUILD.i386/kdenetwork-3.5.13.1/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec3187307642/fast] Error 2

No problem with other distro, using wireless tools 28 or 29.
Comment 1 Slávek Banko 2012-09-30 05:07:41 CDT
I am not sure to what extent it is ready for kdenetwork building using cmake. On Precise are also wireless-tools 30 and building was successful - using autotools.
Comment 2 Francois Andriot 2012-09-30 05:09:09 CDT
(bad) workaround with:

export LDFLAGS="${LDFLAGS} -lm"
Comment 3 Francois Andriot 2012-09-30 05:11:10 CDT
I'm building kdenetwork with cmake since 3.5.13 . It needed a lot of patch then, but now they are all integrated in 3.5.13.1 .

FYI, I'm using:

cmake \
  -DBIN_INSTALL_DIR=/opt/trinity/bin \
  -DINCLUDE_INSTALL_DIR=/opt/trinity/include/tde \
  -DLIB_INSTALL_DIR=/opt/trinity/lib \
  -DSHARE_INSTALL_PREFIX=/opt/trinity/share \
  -DWITH_JINGLE=ON \
  -DWITH_SPEEX=ON \
  -DWITH_WEBCAM=ON \
  -DWITH_GSM=OFF \
  -DWITH_ARTS=ON \
  -DBUILD_ALL=ON \
  -DBUILD_KOPETE_PROTOCOL_ALL=ON \
  -DBUILD_KOPETE_PLUGIN_ALL=ON \
  ..
Comment 4 Darrell 2012-09-30 12:11:38 CDT
This sounds the same as reported in bug report 598. Try the patch proposed there.
Comment 5 Slávek Banko 2012-10-20 20:07:12 CDT
Created attachment 922 [details]
Fix FTBFS in protocols/msn/webcam/libmimic

I try to build kdenetwork using cmake, but instead a problem with detection wireless-tools 30, for me causing FTBFS in protocols/msn with WITH_WEBCAM=ON - in webcam/libmimic. Apparently there is missing linking with glib2.

Please, can you try attached patch?
Comment 6 Darrell 2012-10-20 20:33:15 CDT
I have had no failures building tdenetwork R14 with WITH_WEBCAM=ON in cmake, but I have wireless tools 29 installed on all of my build systems, even the latest Slackware 14.0.

Nonetheless I tested the patch using cmake and experienced no build failures. That does not help you know whether the patch works against wireless tools 30, but my test at least reveals no backwards compatibility issues.
Comment 7 Slávek Banko 2012-10-20 21:32:54 CDT
Sorry, patch (attachment 922 [details]) is not for problem with the wireless-tools 30, but only for kdenetworks with cmake build.

However, I was trying cmake build on Ubuntu Quantal == libiw 30~pre9-8ubuntu1. And problem with wireless-tools was not occurred.
Comment 8 Slávek Banko 2012-10-22 11:38:17 CDT
Created attachment 925 [details]
Fix linker flags for wireless-tools cmake check

François, I tried to study the use CMake and prepare a patch to make it work in CMake manner. Can you test this attached patch?

Note, is needed patch for common cmake module (for tde_save_and_set):
http://git.trinitydesktop.org/cgit/cmake/commit/?id=caedf8323c45b376c824de343f31de78664b2511
Comment 9 Francois Andriot 2012-10-22 15:16:31 CDT
It's building correctly with your patches.
Comment 10 Slávek Banko 2012-10-26 08:13:09 CDT
Fixed in GIT hash 93dc8723