Problems compiling 3.1.0 on HP-UX 11.23/PA
Shane Kerr
Shane_Kerr at isc.org
Mon Oct 29 17:30:53 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Albert,
Albert Chin wrote:
> dhcp-3.1.0 doesn't compile on HP-UX 11.23/PA (or 11.00/PA and
> 11.11/PA):
> cc -g -I/opt/build/china/dhcp-3.1.0 -I/opt/build/china/dhcp-3.1.0/includes -c print.c
> cpp: "print.c", line 1463: error 4044: Constant literal too large.
> *** Error exit code 1
>
> The problem is that the preprocessor cannot handle the following
> constant:
> #if (MAX_TIME > 0x7fffffffffffffff)
>
> Any idea about a solution?
I'm not sure what compiler you're using, but it might work to explicitly to
declare this as "really big", either with:
#if (MAX_TIME > 0x7fffffffffffffffUL)
Or:
#if (MAX_TIME > 0x7fffffffffffffffULL)
If neither of those works, then we'll have to do some preprocessor tricks. If
one does, please let us know, thanks!
- --
Shane
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHJhjKMsfZxBO4kbQRAhZGAKCgrPfpDmfbSxVoDx+GWqA3GAFXeQCg0eL6
jUbqylBw5+lUW67aM29IzVc=
=DdHM
-----END PGP SIGNATURE-----
More information about the dhcp-users
mailing list