[Zlib-devel] zlib-1.2.3.3 build feedback

Nelson H. F. Beebe beebe at math.utah.edu
Thu Oct 5 10:07:45 EDT 2006


The first problem that I noted with the zlib-1.2.3.3 release is that
the configure script does not propagate environment variables that set
CC and CFLAGS.

My automated build procedures (described in Chapter 8 of ``Classic
Shell Scripting''

	http://www.math.utah.edu/~beebe/books/css

) are able to test software on about 25 flavors of Unix in about 125
compilation environments (different compilers and options), but they
are ineffective when CC and CFLAGS settings are ignored.

------------------------------------------------------------------------

On DEC Alpha OSF/1, compilation fails like this:

cc -O   -c -o deflate.o deflate.c
cc: Error: deflate.c, line 516: In this statement, "NULL" is not declared.
(undeclared)
        if (s->gzhead != NULL) {            /* user-supplied gzip header */
-------------------------^

I did a "make clean" followed by "make CC=gcc", and got further:

ar libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o
zutil.o inflate.o infback.o inftrees.o inffast.o
ar: illegal option -- z
Usage: ar [-X32_64] [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count]
archive-file file...

------------------------------------------------------------------------

On NetBSD 1.6 IA-32, the build failed at the "ar" step:

ar libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o
zutil.o inflate.o infback.o inftrees.o inffast.o
ar: illegal option -- z
Usage: ar [emulation options] [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name]
[count] archive-file file...
       ar -M [<mri-script]

------------------------------------------------------------------------

On Solaris 7, 8, 9, and 10 SPARC, and Solaris 10 IA-32, compilation
fails like this:

cc -O   -c -o crc32.o crc32.c
"crc32.c", line 72: syntax error before or at: off64_t
"crc32.c", line 72: warning: undefined or missing type for: off64_t

The same thing happens with "make CC=gcc".

------------------------------------------------------------------------

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe at math.utah.edu  -
- 155 S 1400 E RM 233                       beebe at acm.org  beebe at computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------




More information about the Zlib-devel mailing list