Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #26460

Closed (moved)
Open
Opened Jun 22, 2018 by teor@teor

Some? autoconf tests that include stdio.h fail with a missing ssp.h on cygwin

It looks like ssp doesn't actually work on cygwin. We should fix the ssp test so it includes studio.h and fails.

configure:10546: checking whether the compiler accepts -fstack-protector-all
configure:10565: gcc -c -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pedantic -Werror -fstack-protector-all  -I${top_srcdir}/src/common conftest.c >&5
configure:10565: $? = 0
configure:10584: gcc -o conftest.exe -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pedantic -Werror -fstack-protector-all  -I${top_srcdir}/src/common  conftest.c  >&5
configure:10584: $? = 0
configure:10596: result: yes
configure:10622: checking whether the compiler accepts -Wstack-protector
configure:10641: gcc -c -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all -pedantic -Werror -Wstack-protector  -I${top_srcdir}/src/common conftest.c >&5
configure:10641: $? = 0
configure:10672: result: yes
configure:10685: checking whether the compiler accepts --param ssp-buffer-size=1
configure:10704: gcc -c -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector -pedantic -Werror --param ssp-buffer-size=1  -I${top_srcdir}/src/common conftest.c >&5
configure:10704: $? = 0
configure:10735: result: yes
configure:10749: checking whether the compiler accepts -fPIE
configure:10768: gcc -c -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector --param ssp-buffer-size=1 -pedantic -Werror -fPIE  -I${top_srcdir}/src/common conftest.c >&5
configure:10768: $? = 0
configure:10799: result: yes
configure:10811: checking whether the linker accepts -pie
configure:10854: gcc -o conftest.exe -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector --param ssp-buffer-size=1 -fPIE -pedantic -Werror  -I${top_srcdir}/src/common     -pie conftest.c  -lz  -levent -lssl -lcrypto      >&5
In file included from /usr/include/stdio.h:800,
                 from conftest.c:78:
/usr/local/lib/gcc/x86_64-unknown-cygwin/8.1.0/include/ssp/stdio.h:38:10: fatal error: ssp.h: No such file or directory
 #include <ssp.h>
          ^~~~~~~
compilation terminated.
configure:10854: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "tor"
| #define PACKAGE_TARNAME "tor"
| #define PACKAGE_VERSION "0.3.3.7"

(similar macros)

| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1

(similar macros)

| /* end confdefs.h.  */
| #include <stdio.h>
| int
| main ()
| {
| fputs("", stdout)
|   ;
|   return 0;
| }
configure:10868: result: no
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
Tor: unspecified
Milestone
Tor: unspecified
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#26460