Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#162 closed defect (released)

Missing unistd.h on Windows Server 2003 build

Reported by: Charlie Hull Owned by: Charlie Hull
Priority: normal Milestone:
Component: MSVC makefiles Version: SVN trunk
Severity: normal Keywords:
Cc: Olly Betts, Richard Boulton Blocked By:
Blocking: Operating System: Microsoft Windows

Description

This is taken from Mingw on CH's PC, but not sure how it got there; need to mod the README and figure out a reliable source for it. It should live in \program files\gnuwin32 as it's the Zlib headers that need it.

Attachments (1)

patch9.patch (2.8 KB ) - added by Charlie Hull 17 years ago.
Patch config.mak and readme to use the Zlib package Mark uses

Download all attachments as: .zip

Change History (10)

comment:1 by Charlie Hull, 17 years ago

Component: Build systemMSVC makefiles

comment:2 by Olly Betts, 17 years ago

Cc: olly@… added

Mingw ships its own version of unistd.h for convenience for building code which originated on Unix, but we shouldn't need to rely on it when building with MSVC.

Which zlib download are you using?

And what's the actual compiler error?

comment:3 by Charlie Hull, 17 years ago

I'm using Zlib for Windows from http://gnuwin32.sourceforge.net/packages/zlib.htm (first link, 'complete package except sources'). The compiler error is 'unistd.h not found' or something similar, triggered by line 289 of zconf.h.

comment:4 by Olly Betts, 17 years ago

I suspect that gnuwin32 is intended to be used with a mingw compiler...

I believe MarkH uses the official zlib binary distribution:

http://www.zlib.net/zlib123-dll.zip

comment:5 by Charlie Hull, 17 years ago

Status: newassigned

by Charlie Hull, 17 years ago

Attachment: patch9.patch added

Patch config.mak and readme to use the Zlib package Mark uses

comment:6 by Charlie Hull, 17 years ago

Cc: richard@… added
Resolution: worksforme
Status: assignedclosed

comment:7 by Richard Boulton, 17 years ago

Resolution: worksforme
Status: closedreopened

Reopening to change the resolution.

comment:8 by Richard Boulton, 17 years ago

Resolution: fixed
Status: reopenedclosed

Applied the fix to SVN.

comment:9 by Olly Betts, 17 years ago

Operating System: Microsoft Windows
Resolution: fixedreleased

Fixed in 1.0.4

Note: See TracTickets for help on using tickets.