Bug 193258 - qt4: /usr/bin/ld: cannot find -lXi
qt4: /usr/bin/ld: cannot find -lXi
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: qt4 (Show other bugs)
4
All Linux
medium Severity urgent
: ---
: ---
Assigned To: Rex Dieter
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-26 13:06 EDT by Frank Büttner
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-05-26 16:35:57 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Frank Büttner 2006-05-26 13:06:18 EDT
You have create package where it is not possible to build apps using Qt4.
When I use the orginal packe from TT all works fine. When using your package it
is not posible to compile apps. Because you have modifed the linker paramter.
And so linking fails at FC4 with /usr/bin/ld: cannot find -lXi
Comment 1 Rex Dieter 2006-05-26 13:23:57 EDT
Looks like -lXi needs to be stripped from the output of
pkgconfig --libs QtGui
Comment 2 Frank Büttner 2006-05-26 13:33:02 EDT
No that is not the problem. You Qt packe search in the wrong place for the lib.
When I use my own QT build the lib Xi will be linked correct.
Comment 3 Rex Dieter 2006-05-26 13:44:48 EDT
Either solution works, but I prefer stripping the extra lib baggage.

Try (as root),
sed -i -e "s|-lXi ||g" /usr/lib/qt4/lib/*.pc 
and you should be fine.
Comment 4 Frank Büttner 2006-05-26 13:47:20 EDT
So I have found that the error you must include the libdir for the X11R6 libs.
-L/usr/X11R6/lib is missing in your qt compiler profile
Comment 5 Rex Dieter 2006-05-26 13:55:55 EDT
I'm planning on putting -L/usr/X11R6/lib back (to be safe(r)), and remove -lXi.
Comment 6 Frank Büttner 2006-05-26 14:04:59 EDT
no that will be wrong -lXi and -L/usr/X11R6/lib is needed.
Comment 7 Rex Dieter 2006-05-26 16:35:57 EDT
new build queue'd, to appear soon in a repo near you...

* Fri May 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.1.3-5
- strip -lXi from .pc files (#193258)
- simplify sql plugin builds via %buildSQL macro
- -libdir %qt_libdir 


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