Re: gnome issues with Tru64
- From: Aron Griffis <agriffis bigfoot com>
- To: George <jirka 5z com>, gnome-devel-list gnome org
- Subject: Re: gnome issues with Tru64
- Date: Tue, 1 Feb 2000 00:31:44 -0500
On Sat, Jan 29, 2000 at 12:43:07PM -0800, George wrote:
> Yes, send a mail again to gnome-devel with your report on the 1.1.2
> when it comes out. We're very interested in it working correctly on
> other platforms, and hopefully by 1.2, you'll be able to
> ./configure; make; make install :)
Here are the issues persistent with GNOME on Tru64 UNIX as of 1.1.2.
### gnome-core-1.1.2 ###
(1) Please upgrade to libtool-1.3.4, which supports shared libraries
on Tru64 UNIX 5.x.
ftp://ftp.gnu.org/gnu/libtool/libtool-1.3.4.tar.gz
The workaround is to install libtool-1.3.4 locally, and do
cp /usr/local/share/libtool/* .
before running configure.
(2) configure doesn't detect nm correctly. This is a problem in
autoconf. The workaround is to configure with
NM="/usr/bin/nm -B" ./configure
The problem is that configure executes nm on /dev/null, then greps
for "/dev/null" in the resulting error. In previous versions of
Digital UNIX, this worked because it would report
/usr/bin/nm: Error: /dev/null is not an object
In 5.x, nm says instead
/usr/bin/nm: Invalid file or object type
This is arguably inconsistent with the BSD version of nm (I don't
know why it has changed), but I might also argue that it's a
pretty weak test... :-)
### gnome-applets-1.1.2 ###
(1) Both issues present in gnome-core-1.1.2 are also problematic in
gnome-applets-1.1.2
(2) config.h requires the following patch after running ./configure.
Both int64_t and u_int64_t are present in
/usr/include/sys/bitypes.h, so the defines in config.h break
compilation.
--- config.h.old Mon Jan 31 17:09:51 2000
+++ config.h Mon Jan 31 17:22:50 2000
@@ -62,8 +62,8 @@
/* #undef HAVE_LIBGTOP_SMP */
/* Define if there is no `u_int64_t' and `int64_t'. */
-#define u_int64_t unsigned long long int
-#define int64_t signed long long int
+/* #define u_int64_t unsigned long long int */
+/* #define int64_t signed long long int */
/* LibGTop major, minor and micro version. */
#define LIBGTOP_MAJOR_VERSION 1
(3) It is still necessary to do the following prior to compilation:
find . -name Makefile \
| xargs perl -0777 -i -pe 's/^INTLLIBS =.*/INTLLIBS = -lintl/m'
(4) modemlights does not compile, due to problems with ifreq. I
started to investigate, but got distracted by work and ended up
just commenting it out from the Makefile for re-investigation at a
later date.
(5) There was a valiant effort made in gnotes to remove gcc
dependency, however the following patch is still required to make
it compile with an ANSI compiler. (Not even gcc will concatenate
a pointer and string literal... :-)
--- gnome-applets-1.1.2/gnotes/gnotes_applet.h.old Wed Jan 26 21:02:30 2000
+++ gnome-applets-1.1.2/gnotes/gnotes_applet.h Mon Jan 31 23:19:49 2000
@@ -25,6 +25,10 @@
/* uncomment this to turn on debugging */
/* #define GNOTE_DEBUG (1) */
+#include <gnome.h>
+#include <applet-widget.h>
+#include "config.h"
+
#ifdef __GNUC__
#ifdef GNOTE_DEBUG
# define g_debug(format, args...) \
@@ -39,14 +43,19 @@
#define g_info(format, args...) \
g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "GNotes: "format, ##args)
#else /* !__GNUC__ */
+#include <string.h>
+#include <stdarg.h>
static void
g_debug (const gchar *format,
...)
{
#ifdef GNOTE_DEBUG
va_list args;
+ gchar s[1024];
va_start (args, format);
- g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "GNotes: "format, args);
+ strcpy (s, "GNotes: ");
+ strncat (s, format, sizeof(s)-strlen(s)-1);
+ g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, s, args);
va_end (args);
#endif
}
@@ -55,8 +64,11 @@
...)
{
va_list args;
+ gchar s[1024];
va_start (args, format);
- g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL, "GNotes: "format, args);
+ strcpy (s, "GNotes: ");
+ strncat (s, format, sizeof(s)-strlen(s)-1);
+ g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL, s, args);
va_end (args);
}
static void
@@ -64,16 +76,15 @@
...)
{
va_list args;
+ gchar s[1024];
va_start (args, format);
- g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "GNotes: "format, args);
+ strcpy (s, "GNotes: ");
+ strncat (s, format, sizeof(s)-strlen(s)-1);
+ g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, s, args);
va_end (args);
}
#endif
-
-#include <gnome.h>
-#include <applet-widget.h>
-#include "config.h"
/* various actions */
#define GNOTES_SAVE "Save Notes"
Thanks for the good work on 1.1.2!
Aron
--
Aron Griffis Compaq Computer Corporation, ZKO3-3/T30
Tru64 Hardware Support 110 Spit Brook Rd, Nashua, NH 03062
603/884-1276 http://bigfoot.com/~agriffis/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]