Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137018 - emerging app-emulation/uae-0.8.24 fails with namespace conflict with glibc [patch]
Summary: emerging app-emulation/uae-0.8.24 fails with namespace conflict with glibc [p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-16 13:45 UTC by Rafal Rzepecki
Modified: 2007-02-16 17:14 UTC (History)
2 users (show)

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


Attachments
uae-0.8.24-getline.diff (uae-0.8.24-getline.diff,258 bytes, patch)
2006-06-16 13:46 UTC, Rafal Rzepecki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rafal Rzepecki 2006-06-16 13:45:56 UTC
Emerging app-emulation/uae-0.8.24 failed on my system with message
nogui.c:47: error: conflicting types for 'getline'
/usr/include/bits/stdio.h:103: error: previous definition of 'getline' was here

The extra getline definition appears to be unneeded, so simply removing it (#ifdefed on __USE_GNU, under which it appears in stdio.h) fixed the problem. Patch follows.

The conflicting stdio.h comes from
$ qpkg -I -v -f /usr/include/bits/stdio.h
sys-libs/glibc-2.3.5 *
Comment 1 Rafal Rzepecki 2006-06-16 13:46:33 UTC
Created attachment 89347 [details, diff]
uae-0.8.24-getline.diff
Comment 2 Rafal Rzepecki 2006-06-16 13:51:31 UTC
Just a thought: it probably should be verified with upstream if it's really the case that removing the definition is ok. This patch is a quick and dirty solution on my part, and some confirmation would be advised, I think.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-12-07 16:17:03 UTC
@pva - can you have a look please?
Comment 4 L. Andrew Somerville 2006-12-13 22:48:15 UTC
Similar issue here but now sure how similar. 

--------------------------------------------------
Compile Errors:
--------------------------------------------------

gcc -I. -I../src/include/ -c  -O2 -fomit-frame-pointer  -Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_SDL -DGCCCONSTFUNC="__attribute__((const))" -mpreferred-stack-boundary=2 -fno-exceptions -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM="__attribute__((regparm(3)))" -DX86_ASSEMBLY -DOPTIMIZED_FLAGS -DUSE_ZFILE -D__inline__=inline -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -DSHM_SUPPORT_LINKS=1   newcpu.c -o newcpu.o
newcpu.c:104: error: conflicting types for 'op_illg_1'
newcpu.c:101: error: previous declaration of 'op_illg_1' was here
newcpu.c: In function 'build_cpufunctbl':
newcpu.c:124: warning: assignment from incompatible pointer type
newcpu.c:137: warning: comparison of distinct pointer types lacks a cast
newcpu.c: At top level:
newcpu.c:1129: error: conflicting types for 'op_illg'
../src/include/newcpu.h:57: error: previous declaration of 'op_illg' was here
newcpu.c: In function 'm68k_go':
newcpu.c:1429: warning: implicit declaration of function 'savestate_restore_finish'
newcpu.c: In function 'm68k_verify':
newcpu.c:1451: warning: comparison of distinct pointer types lacks a cast
newcpu.c: In function 'm68k_disasm':
newcpu.c:1486: warning: comparison of distinct pointer types lacks a cast
make[1]: *** [newcpu.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/uae-0.8.22/work/uae-0.8.22/src'
make: *** [all] Error 2

!!! ERROR: app-emulation/uae-0.8.22 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  uae-0.8.22.ebuild, line 52:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

--------------------------

# emerge --info
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r3 i686)
=================================================================
System uname: 2.6.18-gentoo-r3 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.12.6
Last Sync: Thu, 14 Dec 2006 04:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-pipe -march=athlon-xp -O2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-pipe -march=athlon-xp -O2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distcc distlocks fixpackages metadata-transfer regenworld sandbox sfperms strict usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext 7zip X aac aalib alsa apache2 arts audiofile avi berkdb bitmap-fonts bonobo bzlib calendar cdr cli cracklib crypt cups dbus dga directfb divx dlloader dri elibc_glibc esd ffmpeg fftw flac flash fortran gcj gd gdbm gdm gif glade gnome gnutls gphoto2 gpm gtk gtk2 gtkhtml iconv icq imap input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jack java javascript jikes jpeg jpeg2k kde kernel_linux lame libg++ libwww lm_sensors mad memlimit mikmod mime mmx mmxext mp3 mpeg mpeg2 msn ncurses nls nptl nptlonly nsplugin nvidia ogg opengl pam pcre perl php postgresql ppds pppd python readline reflection samba sdl session skins sndfile spell spl sse sse2 ssl svg svga tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa vim vnc vncviewer win32codecs wxwindows x11vnc xinerama xml xorg xv xvid xvnc yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

--------------------------------------
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2006-12-14 02:26:52 UTC
Andrew, Rafal: Please, try e-uae. uae has very slow upstream. So while they are fixing the problem I'd suggest you to use e-uae. 

But if you wish to help with uae tell me about that. Then I'll post ebuild for 0.8.25 and will accept patches for that version. Thank you.
Comment 6 Rafal Rzepecki 2006-12-14 08:43:44 UTC
I wish to help, what would I do?
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2006-12-14 09:57:31 UTC
Great. I've submitted ebuild for uae-0.8.25. Ebuild is much improved but still requires some work. But my previous attempts to fix this package stopped at the point where I realized that it contains a lot of compilation problems: it does not compiles with gcc-4.1 and some combination of USE flags does not work with gcc-3.4.x also. Fix them and attach patches here. :-) TIA
Comment 8 Peter Volkov (RETIRED) gentoo-dev 2007-02-16 17:14:24 UTC
uae-0.8.25-r1 in portage should have this issues fixed. Reopen if they are not. It's still hardmasked stay as such while I do not finish tests...