1.2rc1: make bails out at `ULONG_MAX' undeclared
Gerd Bavendiek
gerd.bavendiek at gmx.net
Tue Apr 4 05:31:06 PDT 2006
Hi,
I just tried to make cups-1.2rc1.
pdmdevel:/root/tmp/cups-1.2rc1>>> make
...
Compiling string.c...
Compiling tempfile.c...
Compiling transcode.c...
transcode.c: In function `get_vbcs_charmap':
transcode.c:1350: error: `ULONG_MAX' undeclared (first use in this function)
transcode.c:1350: error: (Each undeclared identifier is reported only once
transcode.c:1350: error: for each function it appears in.)
*** Error code 1
The following command caused the error:
gcc -Wshadow -Wunused -Wall -Wno-format-y2k -fPIC -Os -g -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT -c transcode.c
In Solaris, ULONG_MAX is defined here:
pdmdevel:/usr/include>>> find . -type f | xargs grep ULONG_M
./sys/types.h:#define ULONG_MAX 18446744073709551615UL
./sys/types.h:#define ULONG_MAX 4294967295UL /* max of "unsigned long int" */
./iso/limits_iso.h:#define ULONG_MAX 18446744073709551615UL
./iso/limits_iso.h:#define ULONG_MAX 4294967295UL /* max value of "unsigned long int" */
./limits.h:#define SIZE_MAX ULONG_MAX /* max value of an "size_t" */
./pkgstrct.h:#define BADMODE (mode_t)ULONG_MAX
./pkgstrct.h:#define BADMAJOR (major_t)ULONG_MAX
./pkgstrct.h:#define BADMINOR (minor_t)ULONG_MAX
Any suggestions ?
Kind regards
Gerd
More information about the cups-devel
mailing list