Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 244190

Summary: x11-libs/xview-3.2-r6 fails to build with glibc 2.8 ('regex_t' has no member named 'allocated')
Product: Gentoo Linux Reporter: Ulrich Müller <ulm>
Component: [OLD] LibraryAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 245409    
Bug Blocks: 225459    
Attachments: emerge --info

Description Ulrich Müller gentoo-dev 2008-10-24 23:27:06 UTC
xview-3.2-r6 fails in src_compile:

gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing    -I/var/tmp/portage/x11-libs/xview-3.2-r6/work/xview-3.2p1.4-18c/build/include  -I/usr/include -I../../../build/include  -I/usr/include    -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				 -I/usr/include -DX11R6 -Di386 -DNO_CAST_VATOAV -DFUNCPROTO=15 -DNARROWPROTO   -DOS_HAS_LOCALE -DOS_HAS_MMAP  		    -DDYNAMICLIB -DOPENWINHOME_DEFAULT=\"/usr\"  -c fc_layout.c -o fc_layout.o
gcc -m32   -O2 -fno-strength-reduce -fno-strict-aliasing    -I/var/tmp/portage/x11-libs/xview-3.2-r6/work/xview-3.2p1.4-18c/build/include  -I/usr/include -I../../../build/include  -I/usr/include    -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				 -I/usr/include -DX11R6 -Di386 -DNO_CAST_VATOAV -DFUNCPROTO=15 -DNARROWPROTO   -DOS_HAS_LOCALE -DOS_HAS_MMAP  		    -DDYNAMICLIB -DOPENWINHOME_DEFAULT=\"/usr\"  -c file_list.c -o shared/file_list.o
file_list.c: In function 'file_list_destroy':
file_list.c:531: error: 'regex_t' has no member named 'allocated'
file_list.c:532: error: 'regex_t' has no member named 'buffer'
file_list.c:532: error: 'regex_t' has no member named 'buffer'
file_list.c:532: error: 'regex_t' has no member named 'buffer'
file_list.c: In function 'flist_update_list':
file_list.c:1100: warning: assignment makes integer from pointer without a cast
file_list.c:1119: warning: assignment makes integer from pointer without a cast
file_list.c:1130: warning: assignment makes integer from pointer without a cast
file_list.c: In function 'flist_compile_regex':
file_list.c:1233: error: 'regex_t' has no member named 'translate'
file_list.c:1237: error: 'regex_t' has no member named 'allocated'
file_list.c:1238: error: 'regex_t' has no member named 'buffer'
file_list.c:1239: error: 'regex_t' has no member named 'allocated'
file_list.c: In function 'flist_match_regex':
file_list.c:1252: error: 'regex_t' has no member named 'allocated'
make[4]: *** [file_list.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/x11-libs/xview-3.2-r6/work/xview-3.2p1.4-18c/lib/libxview/file_chooser'
make[3]: *** [all] Error 1
make[3]: Leaving directory `/var/tmp/portage/x11-libs/xview-3.2-r6/work/xview-3.2p1.4-18c/lib/libxview'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-libs/xview-3.2-r6/work/xview-3.2p1.4-18c/lib'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-libs/xview-3.2-r6/work/xview-3.2p1.4-18c'
make: *** [World] Error 2
 * 
 * ERROR: x11-libs/xview-3.2-r6 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_compile
 * environment, line 2099:  Called die
 * The specific snippet of code:
 * bash Build-LinuxXView.bash libs || die "building libs failed";
 * The die message:
 * building libs failed

Looks like this is due to some changes in /usr/include/regex.h: regex_t has members "allocated" and "buffer" only for _GNU_SOURCE, which the build system of xview doesn't define.
Comment 1 Ulrich Müller gentoo-dev 2008-10-24 23:28:50 UTC
Created attachment 169770 [details]
emerge --info
Comment 2 Ulrich Müller gentoo-dev 2008-10-26 11:09:06 UTC
Adding treecleaners to CC.

There are some newer upstream versions of xview available (but I don't know if this bug has been fixed there). Also it seems that Debian still maintain their own patchset.

OTOH, there's no 64-bit version, and very few packages depend on xview:
   app-editors/jove:X
   games-fps/imaze:!Xaw3d
   media-sound/workman
   sci-chemistry/nmrpipe

- jove can do without X support (i.e. xjove).
- imaze seems to support also Athena/Xaw3d.
- workman looks unmaintained and might be a case for treecleaners itself
  (and there are enough other CD players).
- nmrpipe is a fetch-restricted binary package (ebuild says: "contact the
  package maintainer, then download") so I cannot comment on it.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2008-11-04 10:44:48 UTC
There is a new release, which includes a large amount if not all of the debian patches for the current version.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2008-12-02 20:23:49 UTC
# Samuli Suominen <drac@gentoo.org> (02 Dec 2008)
# Masked by treecleaners for bugs 88334, 244190, 245408 and 245409.
# Removed in ~60 days.
x11-libs/xview
sci-chemistry/nmrpipe
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2008-12-21 09:10:09 UTC
Removed from tree.