[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #7260 [Tor]: MinGW64 & -Werror -Werror
#7260: MinGW64 & -Werror -Werror
--------------------+-------------------------------------------------------
Reporter: yayooo | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.3.x-final
Component: Tor | Version: Tor: 0.2.3.24-rc
Keywords: | Parent:
Points: | Actualpoints:
--------------------+-------------------------------------------------------
Patch1(MinGW64.patch) build on MinGW64(solved 2 errors):
ERROR1:
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/common -ggdb3
-D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector -fwrapv
--param ssp-buffer-size=1 -Wall -fno-strict-aliasing -MT procmon.o -MD -MP
-MF .deps/procmon.Tpo -c -o procmon.o procmon.c
procmon.c:30:13: error: conflicting types for 'pid_t'
In file included from torint.h:20:0,
from compat.h:10,
from procmon.h:12,
from procmon.c:9:
C:\MinGW\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/include/sys/types.h:68:16:
note: previous declaration of 'pid_t' was here
TODO1:
Please Test on MSVC64.
ERROR2:
Oct 30 09:44:52.000 [err] tor_asprintf(): Bug: Internal error in asprintf
Oct 30 09:44:52.000 [err] tor_asprintf(): Bug: compat.c:405: tor_asprintf:
Assertion 0 failed; aborting.
compat.c:405 tor_asprintf: Assertion 0 failed; aborting.
TODO2:
Please Test on MinGW32.
Patch2(Werror.patch) Eliminate ALL Warnings:
I have test Werror.patch on Linux_x86_64_2.6.18 & MinGW64 &
OpenBSD_5.1_amd64.
configure is derive from configure.in, So not included in this patch,
Please generate by yourself(run autoconf before your configure).
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7260>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs