[Zlib-devel] zlib 1.2.2.3 available for testing: OSF/1 4.0 Alpha failure
Nelson H. F. Beebe
beebe at math.utah.edu
Mon May 30 19:12:07 EDT 2005
Thanks, Mark, for the further analysis of the differences between zlib
version 1.2.2 and 1.2.2.3 on the DEC Alpha OSF/1 4.0 system.
Apart from historical Unix systems running on simulators, this is the
ONLY one of more than 20 flavors of Unix to which I have access that
does not have snprintf(), but zlib is already prepared to handle that.
For other packages, I have two installed libraries, one compiled
with native cc, and the other with gcc, with these contents:
% nm /usr/local/lib/libsnprintf.a | grep ' T '
0000000000000000 T snprintf
0000000000000070 T vsnprintf
% nm /usr/local/lib/libgccsnprintf.a | grep ' T '
0000000000000000 T snprintf
0000000000000070 T vsnprintf
The source code distribution used to prepare those two libraries comes
from
http://www.ijs.si/software/snprintf/snprintf_2.2.tar.gz
However, the zlib builds do not use those libraries.
>> zlib version 1.2.2 = 0x1220, compile flags = 0x20000a9
>> zlib version 1.2.2.3 = 0x1223, compile flags = 0x30000a9
>> ... The 0x2... means 1.2.2 used vsprintf(), whereas 0x3... means
>> 1.2.2.3 used sprintf().
Are those flags officially documented outside the code in the function
zlibCompileFlags() in zutil.c, and the comments embedded in zlib.h?
An alternate approach to this issue is exhibited by kermit:
kermit> show features
...
C-Kermit 8.0.211 Beta.02, 5 Mar 2004
Major optional features included:
Network support (type SHOW NET for further info)
Telnet Kermit Option
Telnet Remote Com Port Control Option
Built-in FTP client
Built-in HTTP client
...
Target: dec-osf30
Compiled Mar 6 2004 18:57:57, options:
__ALPHA __alpha __DECC __DECC_VER=50990005 __osf__ _ANSI_C_SOURCE _BSD
_POSIX_JOB_CONTROL _POSIX_OPEN_MAX=16 _POSIX_SOURCE _SC_JOB_CONTROL
_XOPEN_SOURCE ARRAYREFLEN=1024 BIGBUFOK BROWSER BSD4 CK_ANSIC
CK_ANSILIBS CK_APC CK_AUTODL CK_CURSES CK_DNS_SRV CK_ENVIRONMENT
CK_FAST CK_LOGIN CK_MKDIR CK_NAWS CK_PCT_BAR CK_PERMS CK_RECALL
CK_RTSCTS CK_SPEED CK_TIMERS CK_TMPDIR CK_TTGWSIZ CK_TTYFD CK_WREFRESH
CKEXEC CKFLOAT=float CKHTTP CKLEARN ckmaxfiles=4096 CKMAXOPEN=64
CKMAXPATH=1024 CKREGEX CKSYSLOG CKTUNING CMDBL=32763 CMDDEP=64 CONGSPD
DCMDBUF DEVNAMLEN=1024 DYNAMIC FD_SETSIZE=4096 FNFLOAT FOPEN_MAX=64
FORDEPTH=32 GFTIMER h_addr HADDRLIST IFDEBUG IKS_OPTION IKSDB IKSDCONF
INBUFSIZE=32768 INCL_PARAM_H INPBUFSIZ=4096 MAC_MAX=16384 MACLEVEL=128
MAXDDIR=32 MAXDNUMS=4095 MAXGETPATH=128 MAXPATHLEN=1024 MAXTAKE=54
MAXWLD=102400 MDMHUP MSENDMAX=1024 NETCMD NETCONN NEWFTP NOKVERBS
NOSETBUF OBUFSIZE=32768 OS2ORUNIX OSF PARSENSE PATTERNS PIPESEND
SELECT SIG_V SO_DONTROUTE SO_KEEPALIVE SO_LINGER SO_OOBINLINE
SO_RCVBUF SO_SNDBUF SOL_SOCKET STREAMING SYSTIMEBH SYSTIMEH
TCP_NODELAY TCPSOCKET TIMEH TLOG TN_COMPORT TNCODE TTLEBUF TTSPDLIST
UIDBUFLEN=256 UNIX UNPREFIXZERO USE_MEMCPY UTIMEH VMSORUNIX VNAML=4096
WHATAMI XFRCAN XPRINT Z_MAXCHAN=46 z_maxchan=46 ZXREWIND
byte order: little endian
sizeofs: int=4 long=8 short=2 char=1 char*=8 float=4 double=8
floating-point: precision=16 rounding=1
Perhaps the zlib compilation flags aren't needed often enough to
warrant such fancy treatment.
-------------------------------------------------------------------------------
- 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