Bug 126835 - ld cannot find -lselinux when compiling KDE apps
Summary: ld cannot find -lselinux when compiling KDE apps
Status: CLOSED DUPLICATE of bug 121764
Alias: None
Product: Fedora
Classification: Fedora
Component: kdemultimedia   
(Show other bugs)
Version: 2
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Ngo Than
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2004-06-28 03:46 UTC by Stephen So
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-21 19:04:14 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Stephen So 2004-06-28 03:46:39 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7)
Gecko/20040615 Firefox/0.9

Description of problem:
I seem to have a problem compiling certain KDE programs in FC2.  Just
now I've tried to compile amarok and during the make, I get this error
message:  /usr/bin/ld: cannot find -lselinux

I get this exact same error when I tried to compile komba2 before too. 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Download amarok 1.0 source code
2. Run configure as shown in the README

Actual Results:  You get the obscure error:  /usr/bin/ld: cannot find

Expected Results:  Should be no error since this app has nothing to do
with selinux

Additional info:

A friend of mine compiled amarok in Mandrake 10 and had no problems. 
So how come there are reference to selinux?  selinux is disabled on my
system (as per default).

I dunno which component to put this in but I think it is serious
enough to warrant some attention.

Comment 1 Stephen So 2004-06-28 03:47:32 UTC
This is the make message below.  Notice there is no -lselinux anywhere
in the command but I still get this error message

/bin/sh ../../libtool --silent --mode=link --tag=CXX g++ 
-Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W
-Wpointer-arith -Wwrite-strings -O2 -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
-DQT_NO_TRANSLATION    -o amarokapp -L/usr/X11R6/lib
-L/usr/lib/qt-3.3/lib -L/usr/lib  -R /usr/lib -R /usr/lib/qt-3.3/lib
-R /usr/X11R6/lib actionclasses.o amarokfilelist.o app.o browserbar.o
collectionbrowser.o collectiondb.o configdialog.o contextbrowser.o
coverfetcher.o directorylist.o effectwidget.o enginecontroller.o
engineobserver.o fht.o filebrowser.o kbookmarkhandler.o metabundle.o
osd.o playerwindow.o playlist.o playlistbrowser.o playlistitem.o
playlistloader.o playlistwindow.o pluginmanager.o searchbrowser.o
sliderwidget.o socketserver.o statusbar.o streambrowser.o systray.o
threadweaver.o tracktooltip.o welcomebrowser.o Options1.o Options2.o
Options3.o Options4.o Options5.o amazonsetup.o directorylistbase.o
../../amarok/src/titleproxy/libtitleproxy.la -lkutils -lkio -lkdeui
-lkdecore -lkhtml -L/usr/lib -ltag -lGL
/usr/bin/ld: cannot find -lselinux
collect2: ld returned 1 exit status
make[4]: *** [amarokapp] Error 1

Comment 2 Stephen So 2004-06-28 05:42:04 UTC

*** This bug has been marked as a duplicate of 121764 ***

Comment 3 Ngo Than 2004-06-28 10:38:50 UTC
The problem is that kdelibs was built with fam support. The fam
library has built with libselinux also. If you take a look a .la files
(for example /usr/lib/libkdio.la) you will see libselinux is needed by

Comment 4 Red Hat Bugzilla 2006-02-21 19:04:14 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.