Skip to main content
Dominique Sacre
Rocketeer
Feb 15, 2013 10:32 PM UTC

Warning 4018: invalid size running on HP/UX Itanium 11.31

Problem:

When compiling with Server Express 5.0 on HP/UX Itanium 11.31 you may encounter the following warning message:

cobAAA027397/ldtab.s:92: warning 4018: invalid size

This article explains the reason why the message is returned.  Effectively, however, the warning can simply be ignored.  It should be fixed in Server Express 5.1 which is currently scheduled for mid-2008.

Resolution:

Originally HP's assembler contained a bug; a certain size was documented as being in words whilst in practice it had to specified in bytes.  In version 11.31 HP fixed this bug but it did unfortunately introduce a problem of incompatability, thus, causing the warning message.

In Server Express 5.1 the code wiill be changed so as to work with both assemblers.

Old KB# 2281