Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225495 - x11-libs/gtksourceview-1.8.5-r1 /w glibc-2.8: gtksourceregex.c:43: error: field 'reg' has incomplete type
Summary: x11-libs/gtksourceview-1.8.5-r1 /w glibc-2.8: gtksourceregex.c:43: error: fie...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.8
  Show dependency tree
 
Reported: 2008-06-09 00:53 UTC by Jose daLuz
Modified: 2008-06-15 19:45 UTC (History)
2 users (show)

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


Attachments
Workaround, disables check for NATIVE_GNU_REGEX (disable_native_gnu_regex.patch,327 bytes, patch)
2008-06-11 16:09 UTC, Arash Abedinzadeh
Details | Diff
applying the patch fails (disable_native_gnu_regex.patch-11461.out,3.09 KB, text/plain)
2008-06-15 13:43 UTC, BedOS_Gui
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jose daLuz 2008-06-09 00:53:54 UTC
Rebuilding gtksourceview 1.8.5-r1 (as part of world rebuild) after
updating glibc from 2.7-r2 to 2.8_p20080602, I get the following error:

lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -march=k8 -O2 -pipe -ggdb -msse3 -MT gtksourceregex.lo -MD -MP -MF .deps/gtksourceregex.Tpo -c gtksourceregex.c  -fPIC -DPIC -o .libs/gtksourceregex.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DDATADIR=\"/usr/share\" -DG_LOG_DOMAIN=\"GtkSourceView\" -I.. -I. -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -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/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -march=k8 -O2 -pipe -ggdb -msse3 -MT gtksourcelanguage.lo -MD -MP -MF .deps/gtksourcelanguage.Tpo -c gtksourcelanguage.c  -fPIC -DPIC -o .libs/gtksourcelanguage.o
gtksourceregex.c:43: error: field 'reg' has incomplete type
gtksourceregex.c: In function 'gtk_source_regex_compile':
gtksourceregex.c:56: error: 'RE_SYNTAX_POSIX_MINIMAL_EXTENDED' undeclared (first use in this function)
gtksourceregex.c:56: error: (Each undeclared identifier is reported only once
gtksourceregex.c:56: error: for each function it appears in.)
gtksourceregex.c:57: error: 'struct re_pattern_buffer' has no member named 'translate'
gtksourceregex.c:58: error: 'struct re_pattern_buffer' has no member named 'fastmap'
gtksourceregex.c:59: error: 'struct re_pattern_buffer' has no member named 'allocated'
gtksourceregex.c:60: error: 'struct re_pattern_buffer' has no member named 'buffer'
gtksourceregex.c:62: warning: implicit declaration of function 're_compile_pattern'
gtksourceregex.c:62: warning: nested extern declaration of 're_compile_pattern'
gtksourceregex.c:64: warning: assignment makes pointer from integer without a cast
gtksourceregex.c:66: warning: implicit declaration of function 're_compile_fastmap'
gtksourceregex.c:66: warning: nested extern declaration of 're_compile_fastmap'
gtksourceregex.c:69: error: 'struct re_pattern_buffer' has no member named 'fastmap'
gtksourceregex.c:70: error: 'struct re_pattern_buffer' has no member named 'fastmap'
gtksourceregex.c:75: error: 'struct re_pattern_buffer' has no member named 'fastmap'
gtksourceregex.c: In function 'gtk_source_regex_destroy':
gtksourceregex.c:88: error: 'struct re_pattern_buffer' has no member named 'fastmap'
gtksourceregex.c:89: error: 'struct re_pattern_buffer' has no member named 'fastmap'
gtksourceregex.c: In function 'gtk_source_regex_search':
gtksourceregex.c:135: error: 'struct re_pattern_buffer' has no member named 'not_bol'
gtksourceregex.c:136: error: 'struct re_pattern_buffer' has no member named 'not_eol'
gtksourceregex.c:138: warning: implicit declaration of function 're_search'
gtksourceregex.c:138: warning: nested extern declaration of 're_search'
gtksourceregex.c: In function 'gtk_source_regex_match':
gtksourceregex.c:184: error: 'struct re_pattern_buffer' has no member named 'not_bol'
gtksourceregex.c:185: error: 'struct re_pattern_buffer' has no member named 'not_eol'
gtksourceregex.c:187: warning: implicit declaration of function 're_match'
gtksourceregex.c:187: warning: nested extern declaration of 're_match'
make[4]: *** [gtksourceregex.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DDATADIR=\"/usr/share\" -DG_LOG_DOMAIN=\"GtkSourceView\" -I.. -I. -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -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/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -march=k8 -O2 -pipe -ggdb -msse3 -MT gtksourcelanguagesmanager.lo -MD -MP -MF .deps/gtksourcelanguagesmanager.Tpo -c gtksourcelanguagesmanager.c  -fPIC -DPIC -o .libs/gtksourcelanguagesmanager.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DDATADIR=\"/usr/share\" -DG_LOG_DOMAIN=\"GtkSourceView\" -I.. -I. -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -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/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -march=k8 -O2 -pipe -ggdb -msse3 -MT gtksourceview-i18n.lo -MD -MP -MF .deps/gtksourceview-i18n.Tpo -c gtksourceview-i18n.c  -fPIC -DPIC -o .libs/gtksourceview-i18n.o
make[4]: Leaving directory `/var/tmp/paludis/x11-libs-gtksourceview-1.8.5-r1/work/gtksourceview-1.8.5/gtksourceview'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/paludis/x11-libs-gtksourceview-1.8.5-r1/work/gtksourceview-1.8.5/gtksourceview'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/paludis/x11-libs-gtksourceview-1.8.5-r1/work/gtksourceview-1.8.5/gtksourceview'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/paludis/x11-libs-gtksourceview-1.8.5-r1/work/gtksourceview-1.8.5'
make: *** [all] Error 2

!!! ERROR in x11-libs/gtksourceview-1.8.5-r1:

2.2.1 built with no problems.

Portage 2.1.5.4 (default-linux/amd64/2007.0/desktop, gcc-4.3.0, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
Timestamp of tree: Sun, 08 Jun 2008 01:35:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -ggdb -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe -ggdb -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS=""
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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="/usr/local/overlays/paludis-extras /usr/local/overlays/sunrise /usr/local/overlays/gnome /usr/local/overlays/mainline /usr/local/overlays/desktop-effects /usr/local/overlays/vmware /usr/local/overlays/berkano /usr/local/overlays/myoverlay"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr bash-completion berkdb bluetooth bzip2 cairo cdda cdr cli cracklib crypt css cups dbus dri dts dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg flac fortran gdbm gif glitz gnome gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg kde kdehiddenvisibility kerberos ldap libnotify mad midi mikmod mmx mono mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl pic png pppd python qt3support qt4 quicktime readline reflection ruby samba sdl session spell spl sqlite sse sse2 ssl svg tcpd theora tiff truetype unicode usb userlocales vcd vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="cmipci hdaintel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Arash Abedinzadeh 2008-06-11 16:09:49 UTC
Created attachment 156391 [details, diff]
Workaround, disables check for NATIVE_GNU_REGEX

I didn't look for the real problem, it's just a small workaround that removes the optional use of NATIVE_GNU_REGEX.
Comment 2 BedOS_Gui 2008-06-15 13:43:48 UTC
Created attachment 156899 [details]
applying the patch fails
Comment 3 Sven Wegener gentoo-dev 2008-06-15 19:45:38 UTC
I've added

append-cppflags -D_GNU_SOURCE

to the ebuild, it should compile fine now.