Re: HP-UX and AIX buiild problems and patches
- From: "Alexander Varakin" <avarakin00 hotmail com>
- To: sav bcs zp ua
- Cc: mc-devel gnome org, kil systema ru
- Subject: Re: HP-UX and AIX buiild problems and patches
- Date: Mon, 27 Jan 2003 16:39:32 +0000
Hi Andrew,
I don't have access to AIX box right now, but I am sure that the build 
problems in util.c are not warnings. The AIX xlc_r compiler is very strict, 
so it produced errors there.
Alex
From: "Andrew V. Samoilov" <sav bcs zp ua>
To: Alexander Varakin <avarakin hotmail com>
CC: mc-devel gnome org, kil systema ru
Subject: Re: HP-UX and AIX buiild problems and patches
Date: Mon, 27 Jan 2003 17:56:09 +0200
Hello!
Alexander Varakin wrote:
Hi,
I tried to build mc-4.6.0-pre3 on HP-UX and AIX and ran into some 
problems,
which I fixed, patches are attached.
I was using native c compilers  on both (xlc_r from Visual  Age 5.0 on 
AIX,
and  aCC 3.31 on HP-UX) , which are more picky than gcc, so some fixes 
were
required to make them happy.
Well, I commited changed version of your HP patch to CVS.
BTW, can you send me compiler output for src/util.c.  I want to know, are 
there warnings or errors.
--
Regards,
Andrew V. Samoilov
Index: mc/edit/ChangeLog
diff -u mc/edit/ChangeLog:1.147 mc/edit/ChangeLog:1.148
--- mc/edit/ChangeLog:1.147	Wed Dec 25 17:53:07 2002
+++ mc/edit/ChangeLog	Mon Jan 27 10:46:40 2003
@@ -1,3 +1,8 @@
+2003-01-27  Andrew V. Samoilov  <sav bcs zp ua>
+
+	* edit-widget.h (struct macro): Move definition ...
+	* edit.h: ... here to fix compilation on HP-UX.
+
 2002-12-25  Pavel Roskin  <proski gnu org>
 	* editkeys.c: Move key maps to the file scope.  Put common keys
Index: mc/edit/edit.h
diff -u mc/edit/edit.h:1.60 mc/edit/edit.h:1.61
--- mc/edit/edit.h:1.60	Wed Dec 25 17:53:07 2002
+++ mc/edit/edit.h	Mon Jan 27 10:46:40 2003
@@ -102,10 +102,15 @@
 #define MARK_2 700000000
 #define KEY_PRESS 1400000000
-/*Tabs spaces: (sofar only HALF_TAB_SIZE is used: */
+/* Tabs spaces: (sofar only HALF_TAB_SIZE is used: */
 #define TAB_SIZE		option_tab_spacing
 #define HALF_TAB_SIZE		((int) option_tab_spacing / 2)
+struct macro {
+    short command;
+    short ch;
+};
+
 struct selection {
    unsigned char * text;
    int len;
@@ -221,7 +226,6 @@
 void edit_right_word_move (WEdit * edit, int s);
 void edit_get_selection (WEdit * edit);
-struct macro;
 int edit_save_macro_cmd (WEdit * edit, struct macro macro[], int n);
 int edit_load_macro_cmd (WEdit * edit, struct macro macro[], int *n, int 
k);
 void edit_delete_macro_cmd (WEdit * edit);
Index: mc/edit/edit-widget.h
diff -u mc/edit/edit-widget.h:1.13 mc/edit/edit-widget.h:1.14
--- mc/edit/edit-widget.h:1.13	Mon Dec 16 00:21:42 2002
+++ mc/edit/edit-widget.h	Mon Jan 27 10:46:40 2003
@@ -7,11 +7,6 @@
 #define MAX_MACRO_LENGTH 1024
 #define N_LINE_CACHES 32
-struct macro {
-    short command;
-    short ch;
-};
-
 #define BOOK_MARK_COLOR ((25 << 8) | 5)
 #define BOOK_MARK_FOUND_COLOR ((26 << 8) | 4)
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]