Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg-x11-6.8.2-r2 won't compile (missing library?)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
bbal01
n00b
n00b


Joined: 23 Feb 2005
Posts: 20
Location: Suffolk, England

PostPosted: Fri Jul 15, 2005 6:52 am    Post subject: xorg-x11-6.8.2-r2 won't compile (missing library?) Reply with quote

I have just recently reinstalled my gentoo box so I don't have any older ebuilds than 6.8.2-r1, and that gives the same problem.

Code:

i686-pc-linux-gnu-gcc -o pswrap -O2 -march=i686 -fomit-frame-pointer -fno-strict-aliasing -ansi -pedantic -Wno-return-type -w     -L../../exports/lib   main.o pswparser.o lexer.o pswdict.o pswfile.o systemnames.o psw.o pswstring.o pswsemantics.o     -lfl  -Wl,-rpath-link,../../exports/lib

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lfl


As far as I can see, there is no 'fl' library on my system; so I assume it to be a typo...
I've had a look through these here forums, but I couldn't find anything relevant.

I'm running on a P Celeron D @ 2.260 GHz with kernel-2.6.12-gentoo-r5.

Any help would be appreciated. Thanks...
_________________
<wasteofspace>
Back to top
View user's profile Send private message
ellingsw
n00b
n00b


Joined: 31 May 2004
Posts: 40
Location: Kansas, USA

PostPosted: Fri Jul 15, 2005 7:38 am    Post subject: Verify You Have 'sys-devel/flex' Installed Reply with quote

Verify you have 'sys-devel/flex' installed.

Generally, when you see gcc run with '-l' you can determine the name of the library file it is looking for by taking the part after '-l' and appending lib to it. So in this case the library file it is looking for is 'libfl.a' or 'libfl.o'.

You can determin if you truely have the library installed by running the following as I did:

Code:
# locate libfl
/var/cache/edb/dep/usr/portage/media-libs/libflash-0.4.10-r1
/usr/lib/libfl.a
/usr/portage/metadata/cache/media-libs/libflash-0.4.10-r1
/usr/portage/media-libs/libflash
/usr/portage/media-libs/libflash/Manifest
/usr/portage/media-libs/libflash/files
/usr/portage/media-libs/libflash/files/libflash-0.4.10-sqrt.patch
/usr/portage/media-libs/libflash/files/digest-libflash-0.4.10-r1
/usr/portage/media-libs/libflash/ChangeLog
/usr/portage/media-libs/libflash/libflash-0.4.10-r1.ebuild


I my case I found '/usr/lib/libfl.a' so I know the library is installed.

The next part would be hard if you did not find something matching 'libfl' in /usr/lib, /usr/local/lib, /lib, etc. but google my be able to turn up some results.

Anyway, I ran epm and found out which package it belongs to.

Code:
# epm -qf /usr/lib/libfl.a
flex-2.5.4a-r5
Back to top
View user's profile Send private message
bbal01
n00b
n00b


Joined: 23 Feb 2005
Posts: 20
Location: Suffolk, England

PostPosted: Fri Jul 15, 2005 7:53 am    Post subject: Thanks. Reply with quote

I can't actually check right now (I am at school), but that is almost certainly what it is because if I did:
Code:
ld -lfl

it complained with the same error.
What surprises me is that it didn't check properly that flex was installed. Is this not the purpose of portage?
_________________
<wasteofspace>
Back to top
View user's profile Send private message
ellingsw
n00b
n00b


Joined: 31 May 2004
Posts: 40
Location: Kansas, USA

PostPosted: Fri Jul 15, 2005 8:05 am    Post subject: Reply with quote

Quote:
What surprises me is that it didn't check properly that flex was installed. Is this not the purpose of portage?


When it works correctly, yes.

As a matter of fact, /usr/portage/x11-base/xorg-x11/xorg-x11-6.8.2-r2.ebuild has '>=sys-devel/flex-2.5.4a-r5' listed in it as a runtime and compile time dependency on my system.

By the way, when was the last time you sync'ed? It might be possible the dependency was left out before it was corrected and you happened to sync the broken ebuild.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Fri Jul 22, 2005 5:24 pm    Post subject: Reply with quote

Moved from Desktop Environments to Duplicate Threads in favour of https://forums.gentoo.org/viewtopic-t-295915.html
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum