-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fluent-bit/src/aws/flb_aws_util.c:454:36: error: ‘S3_MODE_NONE’ undeclared (first use in this function) #10004
Comments
Applying a naive patch like this one diff --git a/src/aws/CMakeLists.txt b/src/aws/CMakeLists.txt
index 0b02fdb51..a8f0d5a06 100644
--- a/src/aws/CMakeLists.txt
+++ b/src/aws/CMakeLists.txt
@@ -1,3 +1,5 @@
+if (FLB_OUT_S3)
+
add_subdirectory(compression)
include_directories(
@@ -30,3 +32,5 @@ target_link_libraries(flb-aws flb-aws-compress)
if(FLB_JEMALLOC)
target_link_libraries(flb-aws ${JEMALLOC_LIBRARIES})
endif()
+
+endif(FLB_OUT_S3) It seems the issue is related to a documentation mismatch: FLB_OUT_S3 is listed as an available option, but when I run
Setting |
Seems related to #9664. I'm having the same issues as them. However, the author doesn't mention the docs are outdated/misleading, which may be of interest for the maintainers |
Bug Report
Describe the bug
Compiling either master or tag v3.2.6 does not compile with S3 support disabled
To Reproduce
mkdir build cd build cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=On \ -DFLB_CONFIG_YAML=Off \ -DFLB_EXAMPLES=Off \ -DFLB_SHARED_LIB=Off \ -DFLB_INOTIFY=Off \ -DFLB_LUAJIT=Off \ -DFLB_RECORD_ACCESSOR=Off \ -DFLB_SIGNV4=Off \ -DFLB_STREAM_PROCESSOR=Off \ -DFLB_WASM=Off \ -DFLB_BACKTRACE=Off \ -DFLB_IN_COLLECTD=Off \ -DFLB_IN_DOCKER=Off \ -DFLB_IN_EXEC_WASI=Off \ -DFLB_IN_FLUENTBIT_METRICS=Off \ -DFLB_IN_ELASTICSEARCH=Off \ -DFLB_IN_FORWARD=Off \ -DFLB_IN_HEAD=Off \ -DFLB_IN_HEALTH=Off \ -DFLB_IN_MQTT=Off \ -DFLB_IN_RANDOM=Off \ -DFLB_IN_SERIAL=Off \ -DFLB_IN_THERMAL=Off \ -DFLB_FILTER_AWS=Off \ -DFLB_FILTER_ECS=Off \ -DFLB_FILTER_KUBERNETES=Off \ -DFLB_FILTER_LUA=Off \ -DFLB_OUT_AZURE=Off \ -DFLB_OUT_AZURE_KUSTO=Off \ -DFLB_OUT_BIGQUERY=Off \ -DFLB_OUT_COUNTER=Off \ -DFLB_OUT_CLOUDWATCH_LOGS=Off \ -DFLB_OUT_DATADOG=Off \ -DFLB_OUT_ES=Off \ -DFLB_OUT_FILE=Off \ -DFLB_OUT_KINESIS_FIREHOSE=Off \ -DFLB_OUT_KINESIS_STREAMS=Off \ -DFLB_OUT_FLOWCOUNTER=Off \ -DFLB_OUT_FORWARD=Off \ -DFLB_OUT_GELF=Off \ -DFLB_OUT_HTTP=Off \ -DFLB_OUT_INFLUXDB=Off \ -DFLB_OUT_KAFKA=Off \ -DFLB_OUT_KAFKA_REST=Off \ -DFLB_OUT_LIB=Off \ -DFLB_OUT_NATS=Off \ -DFLB_OUT_PGSQL=Off \ -DFLB_OUT_PLOT=Off \ -DFLB_OUT_SLACK=Off \ -DFLB_OUT_S3=Off \ -DFLB_OUT_SPLUNK=Off \ -DFLB_OUT_STACKDRIVER=Off \ -DFLB_OUT_TCP=Off \ .. make
Expected behavior
Library should either build or provide a helpful error message on the Cmake step
Your Environment
Additional context
Trying to build fluent-bit for the smallest size possible
The text was updated successfully, but these errors were encountered: