I get the following when emerging firebird-1.5.2: make[3]: Entering directory `/var/tmp/portage/firebird-1.5.2/work/firebird-1.5.2.4731/src' g++ -march=k8 -O2 -pipe -march=k8 -O2 -pipe -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 -DPROD_BUILD -march=k8 -O2 -pipe -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 -DPROD_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 -DPROD_BUILD -march=k8 -O2 -pipe -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 -DPROD_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 -DPROD_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 -DPROD_BUILD -c ../src/common/classes/alloc.cpp -o ../temp/libfbcommon/common/classes/alloc.o ../src/common/classes/../../include/../common/classes/alloc.h:256: error:
I get the following when emerging firebird-1.5.2: make[3]: Entering directory `/var/tmp/portage/firebird-1.5.2/work/firebird-1.5.2.4731/src' g++ -march=k8 -O2 -pipe -march=k8 -O2 -pipe -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 -DPROD_BUILD -march=k8 -O2 -pipe -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 -DPROD_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 -DPROD_BUILD -march=k8 -O2 -pipe -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 -DPROD_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 -DPROD_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 -DPROD_BUILD -c ../src/common/classes/alloc.cpp -o ../temp/libfbcommon/common/classes/alloc.o ../src/common/classes/../../include/../common/classes/alloc.h:256: error: void* operator new(size_t, Firebird::MemoryPool&) may not be declared as static ../src/common/classes/../../include/../common/classes/alloc.h:260: error: void* operator new [](size_t, Firebird::MemoryPool&) may not be declared as static make[3]: *** [../temp/libfbcommon/common/classes/alloc.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/firebird-1.5.2/work/firebird-1.5.2.4731/src' make[2]: *** [libfbcommon] Error 2 make[2]: Leaving directory `/var/tmp/portage/firebird-1.5.2/work/firebird-1.5.2.4731/src' make[1]: *** [../gen/firebird/bin/gpre_static] Error 2 make[1]: Leaving directory `/var/tmp/portage/firebird-1.5.2/work/firebird-1.5.2.4731/src' make: *** [firebird] Error 2 Portage 2.1_pre3-r1 (!/usr/gentoo-x86/profiles/default-linux/amd64/2005.1, gcc-4.0.2, glibc-2.3.6-r2, 2.6.13-gentoo-r3 x86_64) ================================================================= System uname: 2.6.13-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ Gentoo Base System version 1.12.0_pre15 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/development/distfiles" FEATURES="autoaddcvs autoconfig cvs digest distlocks multilib-strict sandbox sfperms sign strict" GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/local/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/development/overlays/java-experimental /development/overlays/free-java-overlay /development/overlays/chewi-overlay /development/overlays/axxo-overlay /development/overlays/maven-overlay /development/overlays/crossdev-overlay" SYNC="cvs://nichoj@cvs.gentoo.org:/var/cvsroot" USE="amd64 X aac adns alsa apache2 arts audiofile automount avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr crypt cscope cups curl dbus devmap divx4linux dvd dvdr dvi eds emboss encode exif expat faad fam ffmpeg firefox flac foomaticdb fortran gdbm gif gimpprint glitz glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml hal howl idn imagemagick imlib ipv6 java javamail jpeg kde lcms ldap libclamav libwww lzw lzw-tiff mad matroska mhash mng motif mozilla mp3 mpeg mysql nautilus ncurses nls nptl nsplugin nvidia offensive ogg oggvorbis opengl pam pcre pda pdflib perl php png postgres python qt quicktime readline ruby samba sdl sox spell sqlite ssl subversion svg syslog tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis wxwindows xine xml2 xmms xpm xv xvid zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
The firebird team is not going to support gcc 4.x for firebird < 2.0 I could not find a distribution which claims to have successfully compiled 1.x with gcc 4.x. http://sourceforge.net/mailarchive/message.php?msg_id=14504848
Created attachment 80752 [details, diff] nearly complete gcc4 patch part from debian svn http://svn.debian.org/wsvn/pkg-firebird/trunk/debian/patches/?rev=0&sc=1 fixed errors likewise src/burp/std_desc.h from cvs error: g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -MMD -fPIC -DPROD_BUILD -c ../src/burp/burp.cpp -o ../temp/static.gbak/burp/burp.o ../src/burp/../burp/std_desc.h:65: Fehler: expected unqualified-id before
Created attachment 80752 [details, diff] nearly complete gcc4 patch part from debian svn http://svn.debian.org/wsvn/pkg-firebird/trunk/debian/patches/?rev=0&sc=1 fixed errors likewise src/burp/std_desc.h from cvs error: g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -MMD -fPIC -DPROD_BUILD -c ../src/burp/burp.cpp -o ../temp/static.gbak/burp/burp.o ../src/burp/../burp/std_desc.h:65: Fehler: expected unqualified-id before »-« token make[3]: *** [../temp/static.gbak/burp/burp.o] Fehler 1 No idea how to solve this last error. :)
*** Bug 126077 has been marked as a duplicate of this bug. ***
Created attachment 82338 [details, diff] gcc-4.0 patch This should fix the last piece that was broken. Are there any plans to fix this, or just recommend upgrading to firebird-2.x? I plan on moving gcc-4.1 into ~arch soon, so you may want to think about it :)
Mark: That is how I got it to compile, too. But now INVALID_HANDLE_VALUE is undefined. Is that good? However, I would recommend upgrading to firebird-2.x because of upstream support for gcc4.
(In reply to comment #5) > Mark: > That is how I got it to compile, too. But now INVALID_HANDLE_VALUE is > undefined. Is that good? INVALID_HANDLE_VALUE is #define'd in another file, which is why you got the error in the first place. If you got this from upstream, I'm assuming they finally did it the right way and decided to use a const instead. Either way works, and it would have failed at compile time if there was a problem...though you should still test it and let me know if anything explodes. :)
Does this break anything, or can you apply this patch Karol? Or should I?
ping.
Created attachment 93546 [details, diff] patch to fix compilation problems with gcc-4.1 on amd64 This patch fixes problems with firebird and gcc-4.1 on amd64. Mainly there're casting problems. This patch will be merged with gcc-4.0.patch and added to portage today
Fixed in portage, thanks for help
any chance we could get this patch in 1.5.3? this is blocking gcc 4.1 stabilization on x86 and amd64. if it's better to stabilize 1.5.3-r1, lemme know and i'll file the bug. :)
Please use bug #140707 for the stabilisation bugs if you want to bring a GCC 4.1 capable version into the stable tree...and that might be a different bug.