Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80049 - bochs-2.1.1.ebuild fails with compiler error (double definition)
Summary: bochs-2.1.1.ebuild fails with compiler error (double definition)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-30 04:28 UTC by Martin 'The Bishop' Scheffler
Modified: 2005-10-26 16:49 UTC (History)
0 users

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


Attachments
small patch which resolves the problem (just a quick hack) (bochs-2.1.1-compilererror.diff,1.24 KB, patch)
2005-01-30 04:36 UTC, Martin 'The Bishop' Scheffler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin 'The Bishop' Scheffler 2005-01-30 04:28:43 UTC
"emerge =bochs-2.1.1" fails on my system with the following error messages:
gcc -c -march=pentium3 -O2 -pipe -mtune=pentium3 -march=pentium3 -fomit-frame-pointer -fno-stack-protector -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   `sdl-config --cflags` -DUSE_WITH_CPU_SIM -DPARANOID  -DNO_ASSEMBLER -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -I. -I./. -I./stubs -I././stubs reg_ld_str.c -o reg_ld_str.o
reg_ld_str.c:320: error: conflicting types for 'FPU_load_int16'
fpu_proto.h:144: error: previous declaration of 'FPU_load_int16' was here
reg_ld_str.c:320: error: conflicting types for 'FPU_load_int16'
fpu_proto.h:144: error: previous declaration of 'FPU_load_int16' was here
make[1]: *** [reg_ld_str.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/bochs-2.1.1/work/bochs-2.1.1/fpu'
make: *** [fpu/libfpu.a] Error 2


Reproducible: Always
Steps to Reproduce:
emerge =bochs-2.1.1

Actual Results:  
reg_ld_str.c:320: error: conflicting types for 'FPU_load_int16'
fpu_proto.h:144: error: previous declaration of 'FPU_load_int16' was here


Expected Results:  
one of the definitions has to be masked


Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-
r0, 2.6.11-rc2-mm1-quark2 i686)
=================================================================
System uname: 2.6.11-rc2-mm1-quark2 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 17 2005, 10:29:06)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -pipe -mtune=pentium3 -march=pentium3 -fomit-frame-
pointer -fno-stack-protector"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/
share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /
usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ 
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/
share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -mtune=pentium3 -march=pentium3 -fomit-
frame-pointer -fno-stack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/
distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib alsa apm arts audiofile avi berkdb bidi bitmap-fonts 
bzip2 cddb cdparanoia cdr cdrom crypt cups curl dga directfb divx4linux doc dts 
dv dvb dvd dvdread ecc edl encode esd f77 fam fame fbcon flac font-server 
foomaticdb fortran gcj gdbm ggi gif gnokii gnome gphoto2 gpm gtk gtk2 idea 
imagemagick imlib insecure-drivers ipv6 ithreads jack java javascript joystick 
jpeg jpeg2k junit kde ldap libcaca libg++ libwww lirc live lzo mad matroska 
mikmod mjpeg mmap mmx mmx2 mng motif mozdevelop mozilla mozsvg mozxmlterm mpeg 
ncurses network nls nptl objc oggvorbis old-crypt opengl oss pam pcre pda pdflib 
perl png povray pvm pwdb python qt quicktime readline real rtc samba sasl 
scanner sdk sdl sftplogging skey slp sndfile socks5 spell sse ssl svga tcltk 
tcpd test tetex tga theora threads tiff truetype truetype-fonts type1-fonts v4l 
v4l2 vidix wifi xanim xine xinerama xml xml2 xmms xprint xscreensaver xv xvid 
xvmc yv12 zlib linguas_de linguas_af linguas_ar linguas_az linguas_be linguas_bg 
linguas_bn linguas_bs linguas_ca linguas_cs linguas_cy linguas_da linguas_el 
linguas_en_GB linguas_eo linguas_es linguas_et linguas_eu linguas_fa linguas_fi 
linguas_fo linguas_fr linguas_gl linguas_he linguas_hi linguas_hr linguas_hsb 
linguas_hu linguas_is linguas_itlinguas_ja linguas_ko linguas_ku linguas_lt 
linguas_lv linguas_mk linguas_mn linguas_ms linguas_mt linguas_nb linguas_nds 
linguas_nl linguas_nn linguas_nso linguas_pa linguas_pl linguas_pt linguas_pt_BR 
linguas_ro linguas_ru linguas_se linguas_sk linguas_sl linguas_sr 
linguas_sr@Latn linguas_ss linguas_sv linguas_ta linguas_tg linguas_th 
linguas_tr linguas_uk linguas_uz linguas_ven linguas_vi linguas_wa linguas_xh 
linguas_zh_CN linguas_zh_TW linguas_zu"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Martin 'The Bishop' Scheffler 2005-01-30 04:36:53 UTC
Created attachment 49921 [details, diff]
small patch which resolves the problem (just a quick hack)

does this work properly?
there is some difference between fpu_proto.h and reg_ld_str.c:

fpu_proto.h: extern int FPU_load_int16(bx_address _s, FPU_REG *loaded_data)
BX_CPP_AttrRegparmN(2);

reg_ld_str.c: int BX_CPP_AttrRegparmN(1) FPU_load_int16(bx_address _s, FPU_REG
*loaded_data)

i have no idea why that definitions are written this way.
Comment 2 Luca Barbato gentoo-dev 2005-10-26 16:49:25 UTC
I think it isn't a problem anymore with the 2.2.1, is it?