D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5463 - errno undeclared in gzio.c
Summary: errno undeclared in gzio.c
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Linux
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-20 02:48 UTC by Glenn Haecker
Modified: 2015-01-30 00:24 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Glenn Haecker 2011-01-20 02:48:53 UTC
dmd 2.051

Building phobos fails at

cc -c  -m32 -O3 etc/c/zlib/gzio.c -ogenerated/posix/release/etc/c/zlib/gzio.o

with multiple "‘errno’ undeclared" errors.

gzio.c is missing errno header

#include <errno.h>

Also, in etc/c/zlib/linux.mak lines 43 - 47 should be commented out or removed.
Comment 1 Glenn Haecker 2011-02-19 00:13:36 UTC
Same for dmd v2.052
Comment 2 Dan Sănduleac 2011-06-02 11:14:31 UTC
Same for DMD 2.053 on Mac OS X. Thanks, your fix made it compile.
Comment 3 SomeDude 2012-05-01 07:31:17 UTC
To close.
Comment 4 AndyC 2015-01-30 00:24:21 UTC
Compiled ok in 2.0.66.1
Please re-open if you still have problems.