Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87644 - Construo 0.2.2 fails to compile with gcc-3.4
Summary: Construo 0.2.2 fails to compile with gcc-3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-02 01:21 UTC by caslca
Modified: 2005-04-03 17:09 UTC (History)
0 users

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


Attachments
construo-0.2.2.ebuild.diff (construo-0.2.2.ebuild.diff,318 bytes, patch)
2005-04-03 16:16 UTC, Marcelo Goes (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description caslca 2005-04-02 01:21:02 UTC
<math.h> included instead of <cmath> in vector.cxx

Reproducible: Always
Steps to Reproduce:
1. compile
2. won't compile
3.

Actual Results:  
vector.cxx: In member function `float CL_Vector::angle(const CL_Vector&) const':
vector.cxx:69: error: `acos' is not a member of `std'
vector.cxx: In member function `CL_Vector CL_Vector::rotate(float, const
CL_Vector&) const':
vector.cxx:90: error: `sin' is not a member of `std'
vector.cxx:91: error: `cos' is not a member of `std'
make[2]: *** [vector.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/construo-0.2.2/work/construo-0.2.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/construo-0.2.2/work/construo-0.2.2'
make: *** [all] Error 2 

Expected Results:  
compile

fixing #include <math.h> to #include <cmath> in vector.cxx made manual compile
possible.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-04-02 02:29:53 UTC
output from emerge --info please?
Comment 2 caslca 2005-04-02 11:54:16 UTC
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20050125-r1, 2.6.11-ck3 i686)
=================================================================
System uname: 2.6.11-ck3 i686 Mobile Intel(R) Pentium(R) 4     CPU 3.20GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 12 2005, 21:32:10)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -mfpmath=387,sse -O3 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -momit-leaf-frame-pointer -ftracer -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -mfpmath=387,sse -O3 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -momit-leaf-frame-pointer -ftracer -fforce-addr -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa apache2 arts audiofile avi bash-completion bcmath berkdb bitmap-fonts bonobo calendar cdr crypt cups curl dga divx4linux doc dvd dvdr dvdread emacs emboss encode esd evo examples exif f77 fam fbcon ffmpeg fftw flac foomaticdb fortran ftp gd gdbm gif ginac glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 guile imagemagick imlib ipv6 java javascript jpeg junit kde libg++ libgda libwww mad mikmod mime mmx mng motif mozilla mp3 mpeg msn ncurses nls nptl nptlonly ogg oggvorbis openal opengl oss pam pcmcia pda pdflib perl pgp php pic plotutils png pnp postgres ppds python qt quicktime readline samba sdl sockets spell sse sse2 ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb userlocales videos wifi x86 xine xinerama xml2 xmms xpm xsl xv xvid yahoo zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL 
Comment 3 caslca 2005-04-02 11:55:39 UTC
For more information, there is a discussion between me and hjnenc here:

http://forums.gentoo.org/viewtopic-t-317675.html
Comment 4 Marcelo Goes (RETIRED) gentoo-dev 2005-04-03 16:16:19 UTC
Created attachment 55236 [details, diff]
construo-0.2.2.ebuild.diff

worked for me
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2005-04-03 17:09:15 UTC
fixed in cvs.  thanks for the bug report.