[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 76171] HP-UX 11.x portability fixes
From:       The Written Word <bugzilla-kde () thewrittenword ! com>
Date:       2004-03-22 16:25:55
Message-ID: 20040322162555.28053.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=76171      




------- Additional Comments From bugzilla-kde thewrittenword com  2004-03-22 17:25 \
------- Ok, I now have kdelibs-3.2.1 built on HP-UX 11.x, Tru64 UNIX 5.1, and IRIX \
6.5. So, updated patch attached: 1. [kio/kio/slaveinterface.h, kio/kio/observer.h, \
kio/misc/uiserver.h,  kio/kpasswdserver/kpasswdserver.h]
SGI C++ compiler wants <qstringlist.h>

2. [kjs/operations.cpp]
Fix for isinf() on HP-UX 11.x. isinf() isn't a function on HP-UX 11.x but a macro \
defined in <math.h>. Created a stub isinf() function in this case to make using it \
easier.

Ignore <sunmath.h>. Won't do any good unless you have the Sun C++ compiler which \
doesn't build KDE anyway.

3. [dcop/dcopidl2cpp/Makefile.am]
Don't assume a system has md5sum (maybe they have gmd5sum).

4. [kate/part/katehighlight.h, kate/part/katehighlight.cpp]
SGI C++ compiler wants <qpopmenu.h> for the QPopupMenu class definition and wants to \
see the class definition for EmbeddedHlInfo.

5. [kdecore/klargefile.h]
HP-UX has LFS but not readdir64().

6. [kdecore/netsupp.h]
Don't need forward declaration of struct addrinfo.

7. [kdecore/kextsock.cpp, kdecore/ksocks.cpp, kdesu/client.cpp,
kinit/kinit.cpp, kinit/wrapper.c]
On HP-UX 11i, we had to replace socklen_t with kde_socklen_t which is defined to \
socklen_t if it exists or some appropriate definition otherwise. The problem is that \
<sys/socket.h> defines socklen_t but _uses_ it only when _XOPEN_SOURCE_EXTENDED is \
defined: typedef size_t socklen_t;
So, the test fails, defining socklen_t to 'int' which generates a failure because of \
the 'typedef size_t socklen_t' entry in <sys/socket.h>. So, we work around this by \
coming up with a new name, kde_socklen_t.

8. [kdecore/kpty.cpp]
Port to HP-UX 11.x. This makes kconsole mostly work.

9. [kdesu/kdesu_pty.cpp]
IRIX 6.5 needs _XOPEN_SOURCE as well.

10. [kdeui/ktoolbar.cpp]
<config.h> should always come first.

11. [kdeui/kkeydialog.h]
There is an invalid ^M before the ";" in the promptForReassign definition. The Tru64 \
UNIX compiler fails because of this.

12. [kdeui/kdockwidget.cpp, khtml/xml/dom_textimpl.cpp,
    khtml/rendering/render_layer.cpp, kmdi/kmdimainfrm.cpp]
#warning is a GCC'ism so wrap it around #ifdef __GNUC__. This causes the SGI C++ \
compiler to fail.

13. [khtml/misc/Makefile.am]
JPEG library might be in $(USER_LDFLAGS).

14. [khtml/kmultipart/Makefile.am, kioslave/http/Makefile.am,
    kutils/Makefile.am]
Link order important on IRIX. Libraries with dependencies must go first.

15. [khtml/rendering/font.cpp]
Handle alloca correctly on AIX.

16. [kwallet/backend/blowfish.h]
Don't assume uint32_t is in <stdint.h>. On Tru64 UNIX, it is in <sys/bitypes.h>. Just \
to be sure, for those systems with <sys/bitypes.h> but no uint32_t defined therein, \
we create an autoconf test and define UINT32_T_IN_SYS_BITYPES_H accordingly.

17. [configure.in]
Add $LDFLAGS to $ac_link line when testing for CUPS as runtime path might be in \
LDFLAGS; need AC_CHECK_RES_QUERY, AC_CHECK_DN_SKIPNAME for HP-UX; better autoconf \
test for isinf(), finite() [#2]; check for path to md5sum [#3]; test for uint32_t in \
<sys/bitypes.h> [#16]; add new call to AC_CHECK_REVOKE for revoke() call in \
kdecore/kpty.cpp as Tru64 UNIX has function but lacks prototype.

18. [acinclude.m4]
IRIX wants to see the prototype for ${x_direct_test_function}; change link order for \
all_libraries so libraries we add are prepended to $all_libraries -- needed for IRIX; \
revoke() exists on Tru64 UNIX but contains no prototype so create AC_CHECK_REVOKE \
(revoke() called in kdecore/kpty.cpp); redo res_init() check using KDE_CHECK_FUNC_EXT \
macro; tests for AC_CHECK_RES_QUERY, AC_CHECK_DN_SKIPNAME needed for HP-UX 11.x; \
better socklen_t test (#8); better KDE_CHECK_LIBPTHREAD test on Tru64 UNIX (you \
cannot just check for pthread_create in -lpthread because Tru64 UNIX #defines this \
function to something else for backward compatilibity; don't add $CFLAGS to $CXXFLAGS \
as not all C/C++ compiler shared the same flags.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic