cairo-dock-team team mailing list archive
-
cairo-dock-team team
-
Mailing list archive
-
Message #07090
[Bug 1730947] Re: package fails to build with glibc-2.26
I hit the same bug on Gentoo with glibc-2.29-r2 and alsa-lib-1.1.8.
Looking at the code, I see they do something similar to the suggestion
made in https://stackoverflow.com/a/32672476.
It would appear this kludge no longer works. Down later the suggestion
was to tweak the -std=XXX flag passed to gcc. After unsuccessfully
trying to set this in CFLAGS, I got things compiling with this:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 639fdc711..2d1c744f2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,7 +13,7 @@ include ("${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/GNUInstallDirs.cmake")
project ("cairo-dock-plugins")
set (VERSION "3.4.1")
-add_definitions (-std=c99 -Wall -Werror-implicit-function-declaration) # -Wextra -Wwrite-strings -Wuninitialized -Werror-implicit-function-declaration -Wstrict-prototypes -Wreturn-type -Wparentheses -Warray-bounds)
+add_definitions (-std=gnu99 -Wall -Werror-implicit-function-declaration) # -Wextra -Wwrite-strings -Wuninitialized -Werror-implicit-function-declaration -Wstrict-prototypes -Wreturn-type -Wparentheses -Warray-bounds)
if (NOT DEFINED CMAKE_BUILD_TYPE)
add_definitions (-O3)
endif()
cairo-dock-plug-ins now build. I'm just trying them out to see if there
are any ill effects from doing the above hack.
** Also affects: cairo-dock-plug-ins (Gentoo Linux)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Cairo-
Dock Devs, which is subscribed to cairo-dock-plug-ins in Ubuntu.
https://bugs.launchpad.net/bugs/1730947
Title:
package fails to build with glibc-2.26
Status in Cairo-Dock Plug-ins:
New
Status in cairo-dock-plug-ins package in Ubuntu:
Confirmed
Status in cairo-dock-plug-ins package in Gentoo Linux:
New
Bug description:
that might be an alsa-lib bug instead ...
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/alsaMixer/src && /usr/bin/cc -DCAIRO_DOCK_FORCE_ICON_IN_MENUS=1 -DGL_GLEXT_PROTOTYPES=\"1\" -DINDICATOR_SOUNDMENU_WITH_IND3=1 -DIS_INDICATOR_NG=1 -DMY_APPLET_CONF_FILE=\"AlsaMixer.conf\" -DMY_APPLET_DOCK_VERSION=\"3.4.1\" -DMY_APPLET_GETTEXT_DOMAIN=\"cairo-dock-plugins\" -DMY_APPLET_ICON_FILE=\"icon.png\" -DMY_APPLET_PREVIEW_FILE=\"preview.jpg\" -DMY_APPLET_SHARE_DATA_DIR=\"/usr/share/cairo-dock/plug-ins/AlsaMixer\" -DMY_APPLET_USER_DATA_DIR=\"AlsaMixer\" -DMY_APPLET_VERSION=\"2.1.5\" -Dcd_AlsaMixer_EXPORTS -I/usr/include/cairo-dock -I/usr/include/cairo-dock/gldit -I/usr/include/cairo-dock/implementations -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/mirclient -I/usr/include/mircore -I/usr/include/mircookie -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libdrm -I/usr/include/x86_64-linux-gnu -I/usr/include/alsa -I/usr/include/libindicator3-0.4 -I/<<PKGBUILDDIR>>/Indicator-applet3 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -std=c99 -Wall -Werror-implicit-function-declaration -o CMakeFiles/cd-AlsaMixer.dir/applet-init.c.o -c /<<PKGBUILDDIR>>/alsaMixer/src/applet-init.c
In file included from /usr/include/sched.h:32:0,
from /usr/include/pthread.h:23,
from /usr/include/glib-2.0/glib/deprecated/gthread.h:128,
from /usr/include/glib-2.0/glib.h:108,
from /usr/include/cairo-dock/gldit/cairo-dock-struct.h:23,
from /usr/include/cairo-dock/cairo-dock.h:29,
from /<<PKGBUILDDIR>>/alsaMixer/src/applet-struct.h:26,
from /<<PKGBUILDDIR>>/alsaMixer/src/applet-init.c:20:
/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h:8:8: error: redefinition of ‘struct timespec’
struct timespec
^~~~~~~~
In file included from /usr/include/alsa/asoundlib.h:49:0,
from /<<PKGBUILDDIR>>/alsaMixer/src/applet-struct.h:24,
from /<<PKGBUILDDIR>>/alsaMixer/src/applet-init.c:20:
/usr/include/alsa/global.h:143:8: note: originally defined here
struct timespec {
^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/time.h:25:0,
from /usr/include/cairo-dock/gldit/cairo-dock-image-buffer.h:25,
from /usr/include/cairo-dock/gldit/cairo-dock-icon-factory.h:26,
from /usr/include/cairo-dock/gldit/cairo-dock-file-manager.h:23,
from /usr/include/cairo-dock/gldit/cairo-dock-global-variables.h:24,
from /usr/include/cairo-dock/cairo-dock.h:31,
from /<<PKGBUILDDIR>>/alsaMixer/src/applet-struct.h:26,
from /<<PKGBUILDDIR>>/alsaMixer/src/applet-init.c:20:
/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h:8:8: error: redefinition of ‘struct timeval’
struct timeval
^~~~~~~
In file included from /usr/include/alsa/asoundlib.h:49:0,
from /<<PKGBUILDDIR>>/alsaMixer/src/applet-struct.h:24,
from /<<PKGBUILDDIR>>/alsaMixer/src/applet-init.c:20:
/usr/include/alsa/global.h:138:8: note: originally defined here
struct timeval {
^~~~~~~
To manage notifications about this bug go to:
https://bugs.launchpad.net/cairo-dock-plug-ins/+bug/1730947/+subscriptions
References