[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#380097: qt4-x11: FTBFS on hurd-i386: missing GNU detection + POSIX incompatibilities



reopen 380097
thanks

Hi,

qt4-x11 still FTBFS on GNU/Hurd:

> g++  -c -o qfsfileengine_unix.o -pipe   -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/build/buildd/qt4-x11-4.2.1/src/corelib/arch/generic -I/build/buildd/qt4-x11-4.2.1/include -I/build/buildd/qt4-x11-4.2.1/include/QtCore -I/build/buildd/qt4-x11-4.2.1/include -I/build/buildd/qt4-x11-4.2.1/include/QtCore -I/build/buildd/qt4-x11-4.2.1/src/corelib/global -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -I/build/buildd/qt4-x11-4.2.1/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT  /build/buildd/qt4-x11-4.2.1/src/corelib/io/qfsfileengine_unix.cpp
> /build/buildd/qt4-x11-4.2.1/src/corelib/io/qfsfileengine_unix.cpp: In static member function 'static QString QFSFileEngine::currentPath(const QString&)':
> /build/buildd/qt4-x11-4.2.1/src/corelib/io/qfsfileengine_unix.cpp:266: error: 'PATH_MAX' was not declared in this scope
> /build/buildd/qt4-x11-4.2.1/src/corelib/io/qfsfileengine_unix.cpp:267: error: 'currentName' was not declared in this scope
> /build/buildd/qt4-x11-4.2.1/src/corelib/io/qfsfileengine_unix.cpp: In member function 'virtual QString QFSFileEngine::fileName(QAbstractFileEngine::FileName) const':
> /build/buildd/qt4-x11-4.2.1/src/corelib/io/qfsfileengine_unix.cpp:477: error: 'PATH_MAX' was not declared in this scope
> /build/buildd/qt4-x11-4.2.1/src/corelib/io/qfsfileengine_unix.cpp:478: error: 'cur' was not declared in this scope
> /build/buildd/qt4-x11-4.2.1/src/corelib/io/qfsfileengine_unix.cpp:483: error: 'real' was not declared in this scope
> /build/buildd/qt4-x11-4.2.1/src/corelib/io/qfsfileengine_unix.cpp:505: error: 'PATH_MAX' was not declared in this scope
> /build/buildd/qt4-x11-4.2.1/src/corelib/io/qfsfileengine_unix.cpp:506: error: 's' was not declared in this scope
> make[1]: *** [qfsfileengine_unix.o] Error 1
> make[1]: Leaving directory `/build/buildd/qt4-x11-4.2.1/qmake'
> make: *** [common-configure-arch] Error 2

It seems only 21_hurd_detection.dpatch got applied, while
21_hurd_path_max.dpatch has not.  If there are no issues with it, please
apply it as well, I'm attaching it again for reference.


cheers,

Michael
#! /bin/sh /usr/share/dpatch/dpatch-run
## 20_hurd_detection.dpatch by Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix (workaround) POSIX incompatibility: unconditional use of PATH_MAX

@DPATCH@
diff -Nur qt4-x11-4.1.3~/src/3rdparty/dlcompat/dlfcn.h qt4-x11-4.1.3/src/3rdparty/dlcompat/dlfcn.h
--- qt4-x11-4.1.3~/src/3rdparty/dlcompat/dlfcn.h	2006-07-21 11:50:39.000000000 +0000
+++ qt4-x11-4.1.3/src/3rdparty/dlcompat/dlfcn.h	2006-07-21 11:59:52.000000000 +0000
@@ -99,4 +99,8 @@
 }
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 #endif /* _DLFCN_H_ */
diff -Nur qt4-x11-4.1.3~/src/corelib/io/qfsfileengine_unix.cpp qt4-x11-4.1.3/src/corelib/io/qfsfileengine_unix.cpp
--- qt4-x11-4.1.3~/src/corelib/io/qfsfileengine_unix.cpp	2006-07-21 11:50:38.000000000 +0000
+++ qt4-x11-4.1.3/src/corelib/io/qfsfileengine_unix.cpp	2006-07-21 11:59:52.000000000 +0000
@@ -40,6 +40,10 @@
 # include <private/qcore_mac_p.h>
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 void QFSFileEnginePrivate::init()
 {
 }

Reply to: