Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411077 - x11-plugins/wmauda-0.8 - wmauda.c:126:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
Summary: x11-plugins/wmauda-0.8 - wmauda.c:126:11: error: expected '=', ',', ';', 'asm...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Dockapp Team
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2012-04-06 20:47 UTC by wbk
Modified: 2015-02-03 13:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wbk 2012-04-06 20:47:30 UTC
I unmasked x11-plugins/wmauda-0.8 with the ~ARCH keyword. It is failing to build. I intend to look into this when I get a chance; maybe I can supply a patch. The problem looks to be related to Gdk headers. I get the same issue whether I emerge from portage, or try to build the unmodified upstream version.

Here are the build errors:

>>> Emerging (1 of 1) x11-plugins/wmauda-0.8
 * wmauda-0.8.tar.gz RMD160 SHA1 SHA256 size ;-) ...                     [ ok ]
>>> Unpacking source...
>>> Unpacking wmauda-0.8.tar.gz to /var/tmp/portage/x11-plugins/wmauda-0.8/work
>>> Source unpacked in /var/tmp/portage/x11-plugins/wmauda-0.8/work
>>> Preparing source in /var/tmp/portage/x11-plugins/wmauda-0.8/work/wmauda-0.8 ...
 * Applying wmauda-0.8-asneeded.patch ...                                [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-plugins/wmauda-0.8/work/wmauda-0.8 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-plugins/wmauda-0.8/work/wmauda-0.8 ...
make -j5 
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -pthread -DGSEAL_ENABLE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/libmowgli -I/usr/include/gtk-3.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0   -pthread -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm     -c -o wmauda.o wmauda.c
wmauda.c:126:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
wmauda.c:127:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
wmauda.c:128:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
wmauda.c:129:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
wmauda.c: In function 'real_draw_button':
wmauda.c:188:22: error: 'dock_gc' undeclared (first use in this function)
wmauda.c:188:22: note: each undeclared identifier is reported only once for each function it appears in
wmauda.c:188:31: error: 'pixmap' undeclared (first use in this function)
wmauda.c: In function 'draw_button':
wmauda.c:201:27: error: 'GtkWidget' has no member named 'window'
wmauda.c: In function 'real_draw_volslider':
wmauda.c:212:21: error: 'dock_gc' undeclared (first use in this function)
wmauda.c:212:30: error: 'pixmap' undeclared (first use in this function)
wmauda.c: In function 'draw_volslider':
wmauda.c:223:30: error: 'GtkWidget' has no member named 'window'
wmauda.c: In function 'real_draw_seekslider':
wmauda.c:232:22: error: 'dock_gc' undeclared (first use in this function)
wmauda.c:232:31: error: 'pixmap' undeclared (first use in this function)
wmauda.c: In function 'draw_seekslider':
wmauda.c:251:31: error: 'GtkWidget' has no member named 'window'
wmauda.c: In function 'real_draw_scrolltext':
wmauda.c:297:24: error: 'dock_gc' undeclared (first use in this function)
wmauda.c:297:33: error: 'pixmap' undeclared (first use in this function)
wmauda.c: In function 'draw_scrolltext':
wmauda.c:309:31: error: 'GtkWidget' has no member named 'window'
wmauda.c: In function 'redraw_window':
wmauda.c:316:27: error: 'GtkWidget' has no member named 'window'
wmauda.c:316:37: error: 'dock_gc' undeclared (first use in this function)
wmauda.c:316:46: error: 'pixmap' undeclared (first use in this function)
wmauda.c:325:27: error: 'GtkWidget' has no member named 'window'
wmauda.c:325:46: error: 'launch_pixmap' undeclared (first use in this function)
wmauda.c: In function 'update_tooltip':
wmauda.c:509:7: error: 'tooltips' undeclared (first use in this function)
wmauda.c: In function 'timeout_func':
wmauda.c:567:44: error: 'mask' undeclared (first use in this function)
wmauda.c:633:8: error: 'tooltips' undeclared (first use in this function)
wmauda.c:635:44: error: 'launch_mask' undeclared (first use in this function)
wmauda.c: In function 'drag_data_received':
wmauda.c:648:20: error: dereferencing pointer to incomplete type
wmauda.c:650:29: error: dereferencing pointer to incomplete type
wmauda.c: In function 'init':
wmauda.c:681:2: error: 'GdkGC' undeclared (first use in this function)
wmauda.c:681:9: error: 'mask_gc' undeclared (first use in this function)
wmauda.c:688:3: error: 'tooltips' undeclared (first use in this function)
wmauda.c:721:36: error: 'GtkWidget' has no member named 'window'
wmauda.c:722:27: error: 'GtkWidget' has no member named 'window'
wmauda.c:723:2: error: 'dock_gc' undeclared (first use in this function)
wmauda.c:723:31: error: 'GtkWidget' has no member named 'window'
wmauda.c:725:2: error: 'launch_pixmap' undeclared (first use in this function)
wmauda.c:725:41: error: 'GtkWidget' has no member named 'window'
wmauda.c:727:2: error: 'launch_mask' undeclared (first use in this function)
wmauda.c:727:39: error: 'GtkWidget' has no member named 'window'
wmauda.c:735:2: error: 'pixmap' undeclared (first use in this function)
wmauda.c:735:46: error: 'GtkWidget' has no member named 'window'
wmauda.c:735:57: error: 'mask' undeclared (first use in this function)
wmauda.c:759:48: error: 'GtkWidget' has no member named 'window'
wmauda.c:768:6: error: 'GdkWindowAttr' has no member named 'colormap'
wmauda.c:773:87: error: 'GDK_WA_COLORMAP' undeclared (first use in this function)
wmauda.c:775:38: error: 'GtkWidget' has no member named 'window'
wmauda.c:776:30: error: 'GtkWidget' has no member named 'window'
wmauda.c:781:49: error: 'GtkWidget' has no member named 'window'
wmauda.c:786:14: error: expected expression before ')' token
wmauda.c: In function 'button_press_cb':
wmauda.c:417:9: warning: ignoring return value of 'system', declared with attribute warn_unused_result
make: *** [wmauda.o] Error 1
Comment 1 wbk 2012-04-06 20:48:12 UTC
case@rlyeh ~/.dwm/dwstat $ emerge --info
/usr/lib64/portage/pym/portage/package/ebuild/config.py:353: UserWarning: 'cache.metadata_overlay.database' is deprecated: /etc/portage/modules
  (user_auxdbmodule, modules_file))
Portage 2.1.10.49 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.0.17-tuxonice-r1-rlyeh-v11-consolekit x86_64)
=================================================================
System uname: Linux-3.0.17-tuxonice-r1-rlyeh-v11-consolekit-x86_64-AMD_A8-3510MX_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.0.3
Timestamp of tree: Thu, 29 Mar 2012 21:15:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="rsync://rsync.gtlib.gatech.edu/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://lug.mtu.edu/gentoo/ rsync://mirrors.rit.edu/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow X a52 a53 aac aalib acl acpi alsa amd64 apng bash-completion berkdb bluetooth bzip2 cdparanoia cdr cli cracklib crypt cups cxx dbus dri ffmpeg fglrx firefox flac fortran gdbm gnome gpm gstreamer gtk gzip iconv ipv6 jpeg mmx modules mp3 mp4 mpeg mplayer mudflap multilib nautilus ncurses nls nptl nptlonly offensive ogg opengl openmp pam pcre png posix pppd python readline sdl session sse sse2 ssl sysfs tcpd threads tiff udev unicode v4l vorbis x264 xcomposite xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Rafał Mużyło 2012-04-07 01:54:33 UTC
Seems the ebuild and/or build system are messed up - the includes are from gtk3, but the errors say clearly the source is gtk2.
Comment 3 wbk 2012-04-07 04:02:19 UTC
I don't think it's specific to the ebuild, because I have the same issue building 0.8 and 0.9 from upstream (without going through Portage). 

I contacted the upstream author, and he says that wmauda does not support audacious linked against Gtk-3.x. It will produce an error at runtime. Still, I'd like to figure out why it won't even compile. Perhaps there is some deeper issue, not specific to this dockapp, with Gtk-2.0 and Gtk-3.0 header conflicts? I still haven't had a chance to sit down and focus on this.

FWIW, the upstream author is also on Gentoo, and he is able to build with no issues.

Should I maybe try sync-ing and updating and see if the problem magically goes away? My tree isn't more than a week or two old.

Also, looking back at the GCC command line, I can see where include paths for both Gtk-2.0 and 3.0 are specified. I guess it's finding the wrong one first. I haven't had to fix include paths with GCC for several years, so off the top of my head I'm not sure why this is happening.
Comment 4 Rafał Mużyło 2012-04-07 17:27:37 UTC
Perhaps your audacious is a bit too old.
3.2.1 upon 'pkg-config audacious --cflags' returns '', yours seems to return gtk3 cflags.
Still, if upstream still didn't port it to gtk3 (didn't even polish it a bit for deprecated symbols in gtk2)...
Comment 5 gilhad 2012-09-05 07:57:30 UTC
I synced today (on new installed box) and I have the same problem. So my audacious should be actual (as wmauda took it as its dependency from new portage, i did not installed it explicitly)
Comment 6 Rafał Mużyło 2012-09-05 17:55:06 UTC
(In reply to comment #5)
> I synced today (on new installed box) and I have the same problem. So my
> audacious should be actual (as wmauda took it as its dependency from new
> portage, i did not installed it explicitly)

:roll: comment 4 was about *wmauda* upstream.
Due to it being still a *gtk1* -> gtk2 port, porting it to gtk3 is a bit more difficult than it should be.
Comment 7 Pacho Ramos gentoo-dev 2012-10-22 17:50:22 UTC
Still the same with 0.9?
Comment 8 Rafał Mużyło 2012-11-07 21:33:21 UTC
wmauda 0.9 is still gtk2 only.
Comment 9 Bernard Cafarelli gentoo-dev 2015-02-03 13:25:40 UTC
With the package being only GTK+2 and audclient removed from audacious 3.5, it will dropped in a month (see #538464)