LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-21-2012, 05:41 AM   #1
Karimo
Member
 
Registered: Aug 2007
Location: Valencia
Distribution: slackware64-current
Posts: 67

Rep: Reputation: 15
Compiling kdelibs with Avahi/ZeroConf support


Hello everybody!
In order to support ZeroConf I was trying to recompile kdelibs slackware package after slackbuilding Avahi as hinted by AlienBOB (http://connie.slackware.com/~alien/k...-optionals.txt).
I rsynced source/kde of slackware tree and I was ready to go.

# ./KDE.SlackBuild kdelibs

After a while this error was fired:

Click image for larger version

Name:	kdelibs_lq.jpg
Views:	53
Size:	164.2 KB
ID:	10733

Those symbols are obviously referenced in libXext. Maybe is not linked in?
Investigating the slackbuild I found that the linking command line for libkidletime.so is placed in /tmp/kde-build/kdelibs/kdelibs-4.8.5/build/kutils/CMakeFiles/kidletime.dir .
Here it is the command line:

Code:
root@genius:/tmp/kde-build/kdelibs/kdelibs-4.8.5/build/kutils/CMakeFiles/kidletime.dir# cat link.txt 
/usr/bin/c++  -lXext -fPIC -O2 -fPIC -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -lXext -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc  -lXext -shared -Wl,-soname,libkidletime.so.4 -o ../lib/libkidletime.so.4.8.0 CMakeFiles/kidletime.dir/kidletime_automoc.o CMakeFiles/kidletime.dir/kidletime/kidletime.o CMakeFiles/kidletime.dir/kidletime/abstractsystempoller.o CMakeFiles/kidletime.dir/kidletime/widgetbasedpoller.o CMakeFiles/kidletime.dir/kidletime/xscreensaverbasedpoller.o CMakeFiles/kidletime.dir/screensaver_interface.o CMakeFiles/kidletime.dir/kidletime/xsyncbasedpoller.o -L/tmp/kde-build/kdelibs/kdelibs-4.8.5/build/lib -L/usr/lib64/qt/lib -lXext ../lib/libkdeui.so.5.8.0 -lXss -lXext -lSM -lICE -lXext -lXext -lXft -lXau -lXdmcp -lXpm ../lib/libkdecore.so.5.8.0 /usr/lib64/qt/lib/libQtDBus.so /usr/lib64/qt/lib/libQtCore.so -lpthread -lXext /usr/lib64/qt/lib/libQtGui.so /usr/lib64/qt/lib/libQtSvg.so -lSM -lICE -lXext -lXft -lXau -lXdmcp -lXpm -Wl,-rpath,/tmp/kde-build/kdelibs/kdelibs-4.8.5/build/lib:/usr/lib64/qt/lib: 
root@genius:/tmp/kde-build/kdelibs/kdelibs-4.8.5/build/kutils/CMakeFiles/kidletime.dir#
(-lXext was already present, but I was pasting it at much places as I could)
libXext is linked in!
So why is this linking error fired?

Thanks to you All,
Best Regards,

Karimo
 
Old 09-29-2012, 05:34 PM   #2
Karimo
Member
 
Registered: Aug 2007
Location: Valencia
Distribution: slackware64-current
Posts: 67

Original Poster
Rep: Reputation: 15
Just rsynced with slackware64-14. The problem still exists...
Why is doing this?
Can you compile kdelibs?
 
Old 09-29-2012, 07:05 PM   #3
Karimo
Member
 
Registered: Aug 2007
Location: Valencia
Distribution: slackware64-current
Posts: 67

Original Poster
Rep: Reputation: 15
I would like to post the linking command line.

http://pastebin.com/hGp13fTM
 
Old 09-29-2012, 07:08 PM   #4
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
I've finally got around to trying this and I don't see the error kidletime links fine.

You've upgraded I assume?
Have you made sure that everything got upgraded?
 
Old 09-29-2012, 07:12 PM   #5
Karimo
Member
 
Registered: Aug 2007
Location: Valencia
Distribution: slackware64-current
Posts: 67

Original Poster
Rep: Reputation: 15
I've upgraded yes. I always stick with -current.
Everything up-to-date.

I've picked a random symbol that fires an error during the compile of kdelibs and done this:

Code:
karimo@genius:~/tmp$ cat link.c 
#include <X11/Xlib.h>
#include <X11/extensions/sync.h>

int main() {
  void (*ptr)() = &XSyncInitialize;
}
karimo@genius:~/tmp$ gcc -w link.c 
/tmp/ccvjfQzM.o: In function `main':
link.c:(.text+0x8): undefined reference to `XSyncInitialize'
collect2: error: ld returned 1 exit status
karimo@genius:~/tmp$ gcc -w link.c -lXext
karimo@genius:~/tmp$
Why the error is not fired within this context?
What a wierd wierd thing!
 
Old 10-01-2012, 02:17 PM   #6
Karimo
Member
 
Registered: Aug 2007
Location: Valencia
Distribution: slackware64-current
Posts: 67

Original Poster
Rep: Reputation: 15
Solved

Hi everbody!
It was sufficient reinstalling all the 'x' packages from a brand new slackware64-14 iso for the compile to work.
I could not figure out how Xlib was messed up, but whatever...
Enjoy 14
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] KDE has been build without Zeroconf support sjampoo Slackware 9 08-04-2010 04:27 AM
LXer: Avahi (Zeroconf) on Linux: What is it Good For? LXer Syndicated Linux News 0 08-24-2009 04:12 PM
Zeroconf/Avahi needed? johncc Linux - Networking 2 01-28-2009 08:18 AM
zeroconf support in KDE bl0tt0 Slackware 0 10-18-2006 01:23 PM
SMB conflict with Zeroconf / Avahi in Kubuntu 6.06 theGerbil Linux - Networking 0 09-02-2006 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration