HP-UX and AIX buiild problems and patches
Andrew V. Samoilov
sav at bcs.zp.ua
Mon Jan 27 18:06:36 UTC 2003
Alexander Varakin пишет:
> 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 at bcs.zp.ua>
>> To: Alexander Varakin <avarakin00 at hotmail.com>
>> CC: mc-devel at gnome.org, kil at 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
I removed app_text declaration from util.h.
Thanks for report.
MC compilation must be smoothly now on AIX and possible some other systems.
--
Regards,
Andrew V. Samoilov
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mountlist.c.patch
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20030127/64ce0c64/attachment.ksh>
More information about the mc-devel
mailing list