1.2rc1: make bails out at `ULONG_MAX' undeclared

Don Felix dfelix at cadence.com
Wed Apr 5 17:12:28 PDT 2006


I've experience the same problem also on Solaris 5.9 with GCC 3.2.3.
I got past this error by adding #include <limits.h> into transcode.c (and also into pstops.c) but then I end up at:

Making all in scheduler...
Linking cupsd...
Undefined                       first referenced
 symbol                             in file
ldap_initialize                     dirsvc.o
ld: fatal: Symbol referencing errors. No output written to cupsd
collect2: ld returned 1 exit status
make[1]: *** [cupsd] Error 1
make: *** [all] Error 1


> 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