Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120867 - dev-db/firebird-1.5.2 fails with gcc-4.0
Summary: dev-db/firebird-1.5.2 fails with gcc-4.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Karol Wojtaszek (RETIRED)
URL:
Whiteboard:
Keywords:
: 126077 (view as bug list)
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-01-29 14:13 UTC by Josh Nichols (RETIRED)
Modified: 2006-08-17 00:04 UTC (History)
5 users (show)

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


Attachments
nearly complete gcc4 patch (firebird-gcc4.patch,69.58 KB, patch)
2006-02-26 03:26 UTC, Hanno Zysik (geki)
Details | Diff
gcc-4.0 patch (firebird-gcc4.patch,70.35 KB, patch)
2006-03-16 23:07 UTC, Mark Loeser (RETIRED)
Details | Diff
patch to fix compilation problems with gcc-4.1 on amd64 (firebird-1.5-gcc4-amd64.patch,46.93 KB, patch)
2006-08-05 15:44 UTC, Karol Wojtaszek (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Nichols (RETIRED) gentoo-dev 2006-01-29 14:13:22 UTC
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: 
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-01-29 14:13:22 UTC
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
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2006-01-30 15:28:37 UTC
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
Comment 3 Hanno Zysik (geki) 2006-02-26 03:26:45 UTC
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
Comment 4 Hanno Zysik (geki) 2006-02-26 03:26:45 UTC
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. :)
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-03-13 14:58:13 UTC
*** Bug 126077 has been marked as a duplicate of this bug. ***
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2006-03-16 23:07:42 UTC
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 :)
Comment 7 Hanno Zysik (geki) 2006-03-17 07:06:22 UTC
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.
Comment 8 Mark Loeser (RETIRED) gentoo-dev 2006-03-17 08:34:17 UTC
(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. :)
Comment 9 Mark Loeser (RETIRED) gentoo-dev 2006-03-31 21:50:47 UTC
Does this break anything, or can you apply this patch Karol?  Or should I?
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2006-07-22 08:26:12 UTC
ping.
Comment 11 Karol Wojtaszek (RETIRED) gentoo-dev 2006-08-05 15:44:32 UTC
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
Comment 12 Karol Wojtaszek (RETIRED) gentoo-dev 2006-08-07 00:57:45 UTC
Fixed in portage, thanks for help
Comment 13 Ryan Hill (RETIRED) gentoo-dev 2006-08-16 16:31:29 UTC
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. :)
Comment 14 Christian Faulhammer (RETIRED) gentoo-dev 2006-08-17 00:04:22 UTC
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.