Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100246 - x11-libs/qt-3.3.4-r3 fail to compile using uclibc-0.9.27
Summary: x11-libs/qt-3.3.4-r3 fail to compile using uclibc-0.9.27
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo KDE team
: 119473 (view as bug list)
Depends on:
Reported: 2005-07-25 09:11 UTC by eipi
Modified: 2011-03-11 00:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

Add detection of uclibc as well as just Linux to include fenv.h (qt-x11-free-3.3.4-uClibc-1.patch,729 bytes, patch)
2006-01-11 18:38 UTC, Brenden Conte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description eipi 2005-07-25 09:11:14 UTC
It seems that qt does not compile when using uclibc due to the fact that 
uclibc does not provide <fenv.h>. A patch from LFS does exist for qt: but I 
don't know how to include it in My Gentoo. 

Reproducible: Always
Steps to Reproduce:
1.emerge uclibc 
2.emerge qt 
Actual Results:  
fenv.h: No such file or director 

Expected Results:  
Complete the installation
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2005-09-19 06:49:36 UTC
I've sent the request to qt-bugs, we'll see what Trolltech proposes. 
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2005-09-19 19:40:28 UTC
Their response was that they aren't planning on supporting uclibc right now, since it's not even to a 1.0 

I'll mark the patch as a LATER, meaning we may support it in the future.  You can always use it in an 
overlay if needed.
Comment 3 Brenden Conte 2006-01-11 18:38:54 UTC
Created attachment 76874 [details, diff]
Add detection of uclibc as well as just Linux to include fenv.h

3-line patch to have qt correctly detect environment and compile with uclibc. (Patch is same as referenced webpage)
Comment 4 Brenden Conte 2006-01-11 18:39:56 UTC
I would like to second this patch being included in the default qt ebuild.  It is a very simple patch that only adds a detection of uclibc, instead of just "linux", to include fenv.h.  

I have successfully downloaded and built qt with this patch on a uclibc system.  I added the epatch statements after the gcc4 patches.  I have only tested this against 3.3.4-r8.  I could test with other versions, if it would get this patch committed.

I have attached the patch, just in case that page ever goes away.
Comment 5 SpanKY gentoo-dev 2006-01-18 13:50:41 UTC
*** Bug 119473 has been marked as a duplicate of this bug. ***
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2006-01-19 05:48:57 UTC
I just added this patch to portage.

Does Qt4 need this as well?  I've only added it to Qt3.