Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Tor Tor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 318
    • Issues 318
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 36
    • Merge requests 36
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • TorTor
  • Issues
  • #40355
Closed
Open
Created Mar 28, 2021 by Vort@Vort

Problem with MSYS2 build: AC_PROG_CC_C99 is obsolete (also printf attribute is printf-dependent)

Because I was feeling the need to upgrade OpenSSL, I decided to make a rebuild of my 0.4.5.7 binary.
Update of OpenSSL in MSYS2 usually done with single command: pacman -Syuu.
This time there was a problem with GPG keys.
After solving it, I found that Tor fails to build:

Vort@Vort-PC MINGW64 /e/_Projects/_Test/tor
$ ./autogen.sh && ./configure --disable-unittests --disable-asciidoc --disable-module-dirauth && make
/usr/bin/autoreconf
configure.ac:444: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:444: You should run autoupdate.
../autoconf-2.71/lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:444: the top level
autoreconf: error: /usr/bin/autoconf failed with exit status: 1

Removing of AC_PROG_CC_C99 line from configure.ac solved this particular problem, but I think that maybe more correct solutions exists.
Also buildlog was flooded with format-related messages like this:

src/lib/wallclock/time_to_tm.c:108:27: warning: too many arguments for format [-Wformat-extra-args]

Maybe it should be addressed too.

Edited May 11, 2021 by Nick Mathewson
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking