Qt/E 3.3.4

Patrick Noffke pnoffke at bigpond.com
Tue May 23 02:28:20 UTC 2006

yan seiner wrote:
> I am trying to compile Qt/E 3.3.4 with uClib.  The compile works fine - 
> libqte-mt is built with no errors - but if I try to link against it I get:
> /usr/local/trunk/openwrt/staging_dir_mipsel/usr/lib/libqte-mt.so: 
> undefined reference to `fesetenv'
> /usr/local/trunk/openwrt/staging_dir_mipsel/usr/lib/libqte-mt.so: 
> undefined reference to `feholdexcept'
> Both of these functions are defined in fenv.h as extern int ().
> I found a reference in the archives from a year ago about this issue, 
> along with a mention of a  patch, but alas, no patch was attached...
> Is there a cure for this?

Here is the patch that I referenced way back when:


And in case the above link should go away, here are the contents of the 

Submitted By: Robert Connolly <robert at linuxfromscratch dot org> (ashes)
Date: 2005-02-18
Initial Package Version: 3.3.4
Upstream Status: Not submitted
Origin: http://svn.exactcode.de/t2/trunk/package/base/uclibc/patches/\
Description: fenv.h does not exist in uClibc.

diff -Naur qt-x11-free-3.3.4.orig/src/tools/qlocale.cpp 
--- qt-x11-free-3.3.4.orig/src/tools/qlocale.cpp2005-01-21 
17:16:05.000000000 +0000
+++ qt-x11-free-3.3.4/src/tools/qlocale.cpp2005-02-18 13:36:59.000000000 
@@ -55,6 +55,10 @@
  #   undef INFINITY

+#if defined(Q_OS_LINUX) && defined(__UCLIBC__)
+#   undef Q_OS_LINUX
  #ifdef Q_OS_LINUX
  #    include <fenv.h>

More information about the uClibc mailing list