[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: Bug#1621: Compilation error in 1.1.2pre for target hppa1.1-hp-hpux10.20
From: Stefan.Becker () nmp ! nokia ! com
Date: 1999-07-28 7:17:01
[Download RAW message or body]
Package: kvt
Version: 1.1.2pre
1) HP-UX doesn't have seteuid(). Configure checks for this and undefines
HAVE_SETEUID in config.h, but the redefinitions are missing in kvt's code
:-)
2) One source files defines _TERMIOS_INCLUDED when compiled under HP-UX
and thus termios.h will not be included at all anymore, leading to a
compilation error.
Here are the needed patches to fix the problem:
--------------------------- CUT HERE ---------------------------------
--- kdebase/kvt/command.c~ Tue Jun 8 11:09:22 1999
+++ kdebase/kvt/command.c Fri Jul 23 16:59:53 1999
@@ -41,7 +41,7 @@
#include "debug.h"
#if defined (_HPUX_SOURCE)
-#define _TERMIOS_INCLUDED
+/* #define _TERMIOS_INCLUDED */
#include <bsdtty.h>
#endif
/* sgis have /dev/ptmx [bmg] */
@@ -95,6 +95,10 @@
#include "command.h"
#include "screen.h"
#include "xsetup.h"
+
+#if !defined(HAVE_SETEUID)
+#define seteuid(_eu) setresuid(-1, _eu, -1)
+#endif
#if defined(VDISCRD) && !defined(VDISCARD)
#define VDISCARD VDISCRD
--- kdebase/kvt/utmp.c~ Tue Jun 8 11:09:22 1999
+++ kdebase/kvt/utmp.c Fri Jul 23 17:00:12 1999
@@ -93,6 +93,10 @@
#include <stdio.h>
#include <memory.h>
+#if !defined(HAVE_SETEUID)
+#define seteuid(_eu) setresuid(-1, _eu, -1)
+#endif
+
#ifndef TTYTAB
#define TTYTAB "/etc/ttys"
#endif
--- kdebase/kvt/main.C~ Mon Jul 12 14:22:27 1999
+++ kdebase/kvt/main.C Fri Jul 23 17:00:48 1999
@@ -46,6 +46,10 @@
#include "main.h"
+#if !defined(HAVE_SETEUID)
+#define seteuid(_eu) setresuid(-1, _eu, -1)
+#endif
+
extern "C" {
extern void *safemalloc(int, const char *identifier);
extern void get_token();
--------------------------- CUT HERE ---------------------------------
Regards,
Stefan
---
Stefan Becker
E-Mail: Stefan.Becker@nmp.nokia.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic