Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389919 - dev-dotnet/glib-sharp-2.12.10 fail to compile with this error: #error "Only <glib.h> can be included directly."
Summary: dev-dotnet/glib-sharp-2.12.10 fail to compile with this error: #error "Only <...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: dotnet
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks: glib-2.32
  Show dependency tree
 
Reported: 2011-11-09 02:28 UTC by Alain Toussaint
Modified: 2012-04-29 15:28 UTC (History)
2 users (show)

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


Attachments
glib-sharp build log (build.log,16.72 KB, text/plain)
2011-11-10 16:14 UTC, Alain Toussaint
Details
emended ebuild to include patch; patch to follow (glib-sharp-2.12.10.ebuild,434 bytes, text/plain)
2012-02-15 03:03 UTC, Rolf S. Arvidson
Details
patch mentioned previously (glib-sharp-2.12.10-glib-include.patch,929 bytes, patch)
2012-02-15 03:04 UTC, Rolf S. Arvidson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alain Toussaint 2011-11-09 02:28:40 UTC
When emerging dev-dotnet/glib-sharp-2.12.10, there is a compilation failure because at the compilation of gtk-sharp-2.12.10/glib/glue/list.c because of this include:

#include <glib/glist.h>

the error message is:

/usr/include/glib-2.0/glib/glist.h:28:2: error: #error "Only <glib.h> can be included directly."


Reproducible: Always

Steps to Reproduce:
1. emerge -D --verbose banshee on a system without dev-dotnet/glib-sharp isn't installed.
Actual Results:  
/usr/include/glib-2.0/glib/glist.h:28:2: error: #error "Only <glib.h> can be included directly."


Expected Results:  
have banshee installed

emerge --info:


Portage 2.1.10.32 (default/linux/amd64/10.0/no-multilib, gcc-4.5.3, glibc-2.13-r4, 3.0.6-gentoo x86_64)
=================================================================
System uname: Linux-3.0.6-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4600+-with-gentoo-2.1
Timestamp of tree: Tue, 08 Nov 2011 21:45:01 +0000
app-shells/bash:          4.2_p10
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r4
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo gnome dotnet
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64-sse3 -mtune=athlon64-sse3 -mfpmath=sse -msse -msse2 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=athlon64-sse3 -mtune=athlon64-sse3 -mfpmath=sse -msse -msse2 -msse3 -pipe"
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="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="fr_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gnome /var/lib/layman/dotnet"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X acl amd64 berkdb bluetooth bzip2 cairo cdda cli consolekit cracklib crypt cups cxx dbus dri extras fam fortran gdbm gdu gpm gtk3 gudev iconv introspection jpeg lzma mmx modules mudflap ncurses nls nptl nptlonly openmp pam pcre png policykit pppd python readline secure-delete session sqlite sqlite3 sse sse2 ssl symlink sysfs systemtap tcpd unicode unlock-notify xattr 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-11-10 15:34:46 UTC
Please attach the entire build log.
Comment 2 Alain Toussaint 2011-11-10 16:14:14 UTC
Created attachment 292127 [details]
glib-sharp build log
Comment 3 Alain Toussaint 2011-11-19 18:37:18 UTC
How come the bug is still unconfirmed?

Alain
Comment 4 Pacho Ramos gentoo-dev 2011-11-21 22:32:20 UTC
It builds fine for me
Comment 5 Pacho Ramos gentoo-dev 2012-01-22 13:04:21 UTC
This is due latest glib development versions
Comment 6 Rolf S. Arvidson 2012-02-15 03:03:00 UTC
Created attachment 301993 [details]
emended ebuild to include patch; patch to follow

I have same result as original poster, the ebuild + patch fix the offending include statements and appear to build OK
Comment 7 Rolf S. Arvidson 2012-02-15 03:04:55 UTC
Created attachment 301995 [details, diff]
patch mentioned previously

see above. emerge --info follows below

Portage 2.3.2-r2 (default/linux/amd64/2008.0, gcc-4.6.2, glibc-2.13-r4, 3.2.5-gentoo x86_64)
=================================================================
System uname: Linux-3.2.5-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5620_@_2.40GHz-with-gentoo-2.1.8
Timestamp of tree: Sat, 11 Feb 2012 18:30:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r3, 3.2.2
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1.8-r3
sys-apps/openrc:          0.8.3-r5
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.3
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo science gnome local
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula sun-prerelease-jdk7 AdobeFlash-10.1 AdobeFlash-9.0.31.0 Oracle-BCLA-JavaSE Intel-SDP Mendeley-EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles mini-manifest news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j17"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/gnome /usr/local/portage"
SYNC="git://github.com/funtoo/portage-mini-2011.git"
SYNC_USER="root"
USE="R X acl alac alsa amd64 berkdb bzip2 cdr cli cracklib crypt cups cxx dbus dri dvd dvdr dvdread encode flac fortran gdbm gif gpm iconv imap introspection ipv6 java jpeg lame latex libnotify mad maildir mmx modules mp3 mpeg mudflap multilib ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pcre perl png policykit pppd pulseaudio python readline session sse sse2 ssl sysfs tcpd tiff tk truetype udev unicode vorbis wavpack xml 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="*" 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 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau vesa fbdev" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK
Comment 8 Pacho Ramos gentoo-dev 2012-02-16 12:06:36 UTC
+  16 Feb 2012; Pacho Ramos <pacho@gentoo.org>
+  +files/glib-sharp-2.12.10-glib-header.patch, glib-sharp-2.12.10.ebuild:
+  Fix compilation against latest glib, bug #389919 by Alain Toussaint, Rolf S.
+  Arvidson.
+