-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/packages
#8065Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: regressionIt was better in the past than it is nowIt was better in the past than it is nowp: url_launcherPlugin to launch external applicationsPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyteam-linuxOwned by the Linux platform teamOwned by the Linux platform team
Description
Steps to reproduce
- Update to url_launcher_linux 3.2.0.
- Compile example app from url_launcher_linux.
Alternatively, you can compile any app that depends on url_launcher. It also fails.
Perhaps it's caused by a particular glib2 version?
$ rpm -qv glib2-devel
glib2-devel-2.56.4-162.el8.x86_64
A workaround is to downgrade to url_launcher_linux 3.1.1.
Expected results
Example app compiles fine.
Actual results
Compilation throws an error.
Code sample
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[ +684 ms] [2/9] Building CXX object
plugins/url_launcher_linux/CMakeFiles/url_launcher_linux_test.dir/messages.g.cc.o
[ ] FAILED: plugins/url_launcher_linux/CMakeFiles/url_launcher_linux_test.dir/messages.g.cc.o
[ +6 ms] /usr/bin/clang++
-I/home/karel/client/url_launcher_linux-3.2.0/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux/li
nux -I/home/karel/client/url_launcher_linux-3.2.0/example/linux/flutter/ephemeral -isystem /usr/include/gtk-3.0
-isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem
/usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/freetype2
-isystem /usr/include/libpng16 -isystem /usr/include/uuid -isystem /usr/include/harfbuzz -isystem
/usr/include/gdk-pixbuf-2.0 -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/atk-1.0 -isystem
/usr/include/at-spi2-atk/2.0 -isystem /usr/include/at-spi-2.0 -isystem /usr/include/dbus-1.0 -isystem
/usr/lib64/dbus-1.0/include -isystem
/home/karel/client/url_launcher_linux-3.2.0/example/build/linux/x64/debug/_deps/googletest-src/googletest/include
-isystem /home/karel/client/url_launcher_linux-3.2.0/example/build/linux/x64/debug/_deps/googletest-src/googletest
-isystem
/home/karel/client/url_launcher_linux-3.2.0/example/build/linux/x64/debug/_deps/googletest-src/googlemock/include
-isystem /home/karel/client/url_launcher_linux-3.2.0/example/build/linux/x64/debug/_deps/googletest-src/googlemock
-g -Wall -Werror -pthread -MD -MT plugins/url_launcher_linux/CMakeFiles/url_launcher_linux_test.dir/messages.g.cc.o
-MF plugins/url_launcher_linux/CMakeFiles/url_launcher_linux_test.dir/messages.g.cc.o.d -o
plugins/url_launcher_linux/CMakeFiles/url_launcher_linux_test.dir/messages.g.cc.o -c
/home/karel/client/url_launcher_linux-3.2.0/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux/linu
x/messages.g.cc
[ +3 ms]
/home/karel/client/url_launcher_linux-3.2.0/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux/linu
x/messages.g.cc:9:1: error: unused function 'FUL_IS_MESSAGE_CODEC' [-Werror,-Wunused-function]
[ +3 ms] 9 | G_DECLARE_FINAL_TYPE(FulMessageCodec, ful_message_codec, FUL, MESSAGE_CODEC,
[ ] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ ] 10 | FlStandardMessageCodec)
[ ] | ~~~~~~~~~~~~~~~~~~~~~~~
[ ] /usr/include/glib-2.0/gobject/gtype.h:1405:26: note: expanded from macro 'G_DECLARE_FINAL_TYPE'
[ ] 1405 | static inline gboolean MODULE##_IS_##OBJ_NAME (gpointer ptr) {
\
[ ] | ^~~~~~~~~~~~~~~~~~~~~~
[ ] <scratch space>:120:1: note: expanded from here
[ ] 120 | FUL_IS_MESSAGE_CODEC
[ ] | ^~~~~~~~~~~~~~~~~~~~
[ ]
/home/karel/client/url_launcher_linux-3.2.0/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux/linu
x/messages.g.cc:162:1: error: unused function 'FUL_IS_URL_LAUNCHER_API' [-Werror,-Wunused-function]
[ ] 162 | G_DECLARE_FINAL_TYPE(FulUrlLauncherApi, ful_url_launcher_api, FUL,
[ ] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ ] 163 | URL_LAUNCHER_API, GObject)
[ ] | ~~~~~~~~~~~~~~~~~~~~~~~~~~
[ ] /usr/include/glib-2.0/gobject/gtype.h:1405:26: note: expanded from macro 'G_DECLARE_FINAL_TYPE'
[ ] 1405 | static inline gboolean MODULE##_IS_##OBJ_NAME (gpointer ptr) {
\
[ ] | ^~~~~~~~~~~~~~~~~~~~~~
[ ] <scratch space>:60:1: note: expanded from here
[ ] 60 | FUL_IS_URL_LAUNCHER_API
[ ] | ^~~~~~~~~~~~~~~~~~~~~~~
[ ] 2 errors generated.
[ +37 ms] [3/9] Building CXX object
plugins/url_launcher_linux/CMakeFiles/url_launcher_linux_plugin.dir/messages.g.cc.o
[ ] FAILED: plugins/url_launcher_linux/CMakeFiles/url_launcher_linux_plugin.dir/messages.g.cc.o
[ +3 ms] /usr/bin/clang++ -DFLUTTER_PLUGIN_IMPL -Durl_launcher_linux_plugin_EXPORTS
-I/home/karel/client/url_launcher_linux-3.2.0/example/linux/flutter/ephemeral -isystem /usr/include/gtk-3.0 -isystem
/usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem
/usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/freetype2
-isystem /usr/include/libpng16 -isystem /usr/include/uuid -isystem /usr/include/harfbuzz -isystem
/usr/include/gdk-pixbuf-2.0 -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/atk-1.0 -isystem
/usr/include/at-spi2-atk/2.0 -isystem /usr/include/at-spi-2.0 -isystem /usr/include/dbus-1.0 -isystem
/usr/lib64/dbus-1.0/include -g -fPIC -fvisibility=hidden -Wall -Werror -pthread -MD -MT
plugins/url_launcher_linux/CMakeFiles/url_launcher_linux_plugin.dir/messages.g.cc.o -MF
plugins/url_launcher_linux/CMakeFiles/url_launcher_linux_plugin.dir/messages.g.cc.o.d -o
plugins/url_launcher_linux/CMakeFiles/url_launcher_linux_plugin.dir/messages.g.cc.o -c
/home/karel/client/url_launcher_linux-3.2.0/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux/linu
x/messages.g.cc
[ +1 ms]
/home/karel/client/url_launcher_linux-3.2.0/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux/linu
x/messages.g.cc:9:1: error: unused function 'FUL_IS_MESSAGE_CODEC' [-Werror,-Wunused-function]
[ ] 9 | G_DECLARE_FINAL_TYPE(FulMessageCodec, ful_message_codec, FUL, MESSAGE_CODEC,
[ ] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ ] 10 | FlStandardMessageCodec)
[ ] | ~~~~~~~~~~~~~~~~~~~~~~~
[ ] /usr/include/glib-2.0/gobject/gtype.h:1405:26: note: expanded from macro 'G_DECLARE_FINAL_TYPE'
[ ] 1405 | static inline gboolean MODULE##_IS_##OBJ_NAME (gpointer ptr) {
\
[ ] | ^~~~~~~~~~~~~~~~~~~~~~
[ ] <scratch space>:120:1: note: expanded from here
[ ] 120 | FUL_IS_MESSAGE_CODEC
[ ] | ^~~~~~~~~~~~~~~~~~~~
[ ]
/home/karel/client/url_launcher_linux-3.2.0/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux/linu
x/messages.g.cc:162:1: error: unused function 'FUL_IS_URL_LAUNCHER_API' [-Werror,-Wunused-function]
[ ] 162 | G_DECLARE_FINAL_TYPE(FulUrlLauncherApi, ful_url_launcher_api, FUL,
[ ] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ ] 163 | URL_LAUNCHER_API, GObject)
[ ] | ~~~~~~~~~~~~~~~~~~~~~~~~~~
[ ] /usr/include/glib-2.0/gobject/gtype.h:1405:26: note: expanded from macro 'G_DECLARE_FINAL_TYPE'
[ ] 1405 | static inline gboolean MODULE##_IS_##OBJ_NAME (gpointer ptr) {
\
[ ] | ^~~~~~~~~~~~~~~~~~~~~~
[ ] <scratch space>:60:1: note: expanded from here
[ ] 60 | FUL_IS_URL_LAUNCHER_API
[ ] | ^~~~~~~~~~~~~~~~~~~~~~~
[ ] 2 errors generated.
[ +1 ms] [4/9] Building CXX object CMakeFiles/example.dir/my_application.cc.o
[ ] [5/9] Building CXX object CMakeFiles/example.dir/flutter/generated_plugin_registrant.cc.o
[ ] ninja: build stopped: subcommand failed.
[ +16 ms] Building Linux application... (completed in 3.7s)
[+4368 ms] Error: Build process failedFlutter Doctor output
Doctor output
$ flutter doctor -v
[✓] Flutter (Channel stable, 3.24.0, on AlmaLinux 8.10 (Cerulean Leopard) 4.18.0-553.5.1.el8_10.x86_64, locale
en_US.UTF-8)
• Flutter version 3.24.0 on channel stable at /var/lib/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 80c2e84975 (9 days ago), 2024-07-30 23:06:49 +0700
• Engine revision b8800d88be
• Dart version 3.5.0
• DevTools version 2.37.2
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /var/lib/android-sdk
• Platform android-34, build-tools 31.0.0
• Java binary at: /opt/android-studio/jbr/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
• All Android licenses accepted.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
• clang version 17.0.6 (Red Hat 17.0.6-1.module_el8.10.0+3757+fc27b834)
• cmake version 3.26.5
• ninja version 1.8.2
• pkg-config version 1.4.2
[✓] Android Studio (version 2023.2)
• Android Studio at /opt/android-studio/
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• android-studio-dir = /opt/android-studio/
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
[!] Android Studio (version unknown)
• Android Studio at /opt/android-studio
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
✗ Unable to determine Android Studio version.
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
[✓] VS Code (version 1.92.0)
• VS Code at /usr/share/code
• Flutter extension version 3.94.0
[✓] Connected device (1 available)
• Linux (desktop) • linux • linux-x64 • AlmaLinux 8.10 (Cerulean Leopard) 4.18.0-553.5.1.el8_10.x86_64
[✓] Network resources
• All expected network resources are available.spydon, rob-mur, Keetz, bibitoo, mkulesh and 2 more
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: regressionIt was better in the past than it is nowIt was better in the past than it is nowp: url_launcherPlugin to launch external applicationsPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyteam-linuxOwned by the Linux platform teamOwned by the Linux platform team