Re: HP-UX and AIX buiild problems and patches



The problem here is that app_text was declared as

extern const char app_text [];

in header file, and then it was defined in c file as

static const char app_text [] = ....

which is not consistent, so the compiler complained about this.

Alex


From: "Andrew V. Samoilov" <sav bcs zp ua>
To: Alexander Varakin <avarakin00 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 19:17:23 +0200

Alexander Varakin wrote:
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.

Attached hunk of your AIX patch is not clear for me:

--
Regards,
Andrew V. Samoilov
*** mc-4.6.0-pre3/src/util.c	Wed Jan 22 01:12:16 2003
--- mc-4.6.0-pre3.org/src/util.c	Fri Jan 24 10:28:17 2003
***************
*** 47,53 ****
  #include "charsets.h"
  #endif

! static const char app_text [] = "Midnight-Commander";
  int easy_patterns = 1;

  static inline int
--- 47,54 ----
  #include "charsets.h"
  #endif

!
! const char app_text [] = "Midnight-Commander";
  int easy_patterns = 1;

  static inline int


_________________________________________________________________
Help STOP 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]