Skip to content

Fix building with a newer version of glog - #679

Open
jmccl wants to merge 1 commit into
meta:mainfrom
jmccl:main
Open

jmccl wants to merge 1 commit into
meta:mainfrom
jmccl:main

Conversation

@jmccl

@jmccl jmccl commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

On Manjaro (arch) proxygen fails to build with this.

[  8%] Building CXX object proxygen/httpserver/samples/hq/CMakeFiles/proxygen_hq_logger_helper_obj.dir/HQLoggerHelper.cpp.o
[  9%] Building CXX object proxygen/lib/transport/CMakeFiles/proxygen_transport_connect_udp_utils_obj.dir/ConnectUDPUtils.cpp.o
/home/john/third-party/proxygen/proxygen/lib/services/WorkerThread.cpp:21:13: error: expected constructor, destructor, or type conversion before ‘(’ token
   21 | DEFINE_int32(pwt_io_uring_capacity, -1, "io_uring backend capacity");
      |             ^
/home/john/third-party/proxygen/proxygen/lib/services/WorkerThread.cpp:22:13: error: expected constructor, destructor, or type conversion before ‘(’ token
   22 | DEFINE_int32(pwt_io_uring_max_submit, 128, "io_uring backend max submit");
      |             ^
/home/john/third-party/proxygen/proxygen/lib/services/WorkerThread.cpp:23:13: error: expected constructor, destructor, or type conversion before ‘(’ token
   23 | DEFINE_int32(pwt_io_uring_max_get, -1, "io_uring backend max get");
      |             ^
/home/john/third-party/proxygen/proxygen/lib/services/WorkerThread.cpp:24:12: error: expected constructor, destructor, or type conversion before ‘(’ token
   24 | DEFINE_bool(pwt_io_uring_use_registered_fds,
      |            ^
[  9%] Built target proxygen_http_structuredheaders_structured_fields_obj
/home/john/third-party/proxygen/proxygen/lib/services/WorkerThread.cpp: In function ‘std::unique_ptr<folly::EventBaseBackendBase> {anonymous}::getEventBaseBackend()’:
/home/john/third-party/proxygen/proxygen/lib/services/WorkerThread.cpp:30:7: error: ‘FLAGS_pwt_io_uring_capacity’ was not declared in this scope
   30 |   if (FLAGS_pwt_io_uring_capacity > 0) {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
[  9%] Building CXX object proxygen/lib/transport/CMakeFiles/proxygen_transport_persistent_quic_token_cache_obj.dir/PersistentQuicTokenCache.cpp.o
/home/john/third-party/proxygen/proxygen/lib/services/WorkerThread.cpp:34:25: error: ‘FLAGS_pwt_io_uring_max_submit’ was not declared in this scope
   34 |           .setMaxSubmit(FLAGS_pwt_io_uring_max_submit)
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/john/third-party/proxygen/proxygen/lib/services/WorkerThread.cpp:35:22: error: ‘FLAGS_pwt_io_uring_max_get’ was not declared in this scope
   35 |           .setMaxGet(FLAGS_pwt_io_uring_max_get)
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/john/third-party/proxygen/proxygen/lib/services/WorkerThread.cpp:36:32: error: ‘FLAGS_pwt_io_uring_use_registered_fds’ was not declared in this scope
   36 |           .setUseRegisteredFds(FLAGS_pwt_io_uring_use_registered_fds);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  9%] Built target proxygen_pools_generators_server_list_generator_obj
[  9%] Building CXX object proxygen/lib/transport/qmux/CMakeFiles/proxygen_transport_qmux_qmux_transport_obj.dir/QmuxTransport.cpp.o

I believe this is due to a newer version of glog not including gflags, so it needs to be included manually. (Manjaro's glog version is 7.1-2.)

@meta-cla meta-cla Bot added the CLA Signed label Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant