[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #1526 [Tor-Tor client]: Tor build fails with zlib 1.2.5 on MacOS X
#1526: Tor build fails with zlib 1.2.5 on MacOS X
----------------------------+-----------------------------------------------
Reporter: sjmurdoch | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Tor-Tor client | Version: Tor: unspecified
Keywords: |
----------------------------+-----------------------------------------------
Tor fails to build after I upgraded zlib to 1.2.5. The error is:
{{{
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/common -I/opt/local/include
-I/Users/sjm217/local/include -I/Users/sjm217/local/include -g -O2 -Wall
-g -O2 -fno-strict-aliasing -W -Wfloat-equal -Wundef -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls
-Wchar-subscripts -Wcomment -Wformat=2 -Wwrite-strings -Wmissing-
declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast
-Wswitch-enum -Werror -Winit-self -Wmissing-field-initializers
-Wdeclaration-after-statement -Wold-style-definition -Waddress -Wmissing-
noreturn -Wnormalized=id -Woverride-init -Wstrict-overflow=1 --param ssp-
buffer-size=1 -Wshorten-64-to-32 -MT torgzip.o -MD -MP -MF
.deps/torgzip.Tpo -c -o torgzip.o torgzip.c
In file included from /opt/local/include/zlib.h:34,
from torgzip.c:19:
/opt/local/include/zconf.h:373:6: error: "_LARGEFILE64_SOURCE" is not
defined
In file included from torgzip.c:19:
/opt/local/include/zlib.h:1574:32: error: "_FILE_OFFSET_BITS" is not
defined
lude/zlib.h:1574:32: error: "_FILE_OFFSET_BITS" is not defined
}}}
If _LARGEFILE64_SOURCE is defined, there is a different error:
{{{
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/common -I/opt/local/include
-I/Users/sjm217/local/include -I/Users/sjm217/local/include
-D_LARGEFILE64_SOURCE -Wall -g -O2 -fno-strict-aliasing -W -Wfloat-equal
-Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-
strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Wwrite-
strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-
function-cast -Wswitch-enum -Werror -Winit-self -Wmissing-field-
initializers -Wdeclaration-after-statement -Wold-style-definition
-Waddress -Wmissing-noreturn -Wnormalized=id -Woverride-init -Wstrict-
overflow=1 --param ssp-buffer-size=1 -Wshorten-64-to-32 -MT torgzip.o -MD
-MP -MF .deps/torgzip.Tpo -c -o torgzip.o torgzip.c
In file included from /opt/local/include/zlib.h:34,
from torgzip.c:19:
/opt/local/include/zconf.h:397:37: error: "_LFS64_LARGEFILE" is not
defined
In file included from torgzip.c:19:
/opt/local/include/zlib.h:1565:37: error: "_LFS64_LARGEFILE" is not
defined
/opt/local/include/zlib.h:1574:32: error: "_FILE_OFFSET_BITS" is not
defined
}}}
This is on MacOS X Snow Leopard, using the !MacPorts version of zlib. I am
trying to build Tor master (faf51fa), with some small modifications which
shouldn't have affected anything.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1526>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online