Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167051 - dev-db/firebird-1.5.3-r1 fails to compile w/ gcc-4.1.2
Summary: dev-db/firebird-1.5.3-r1 fails to compile w/ gcc-4.1.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Karol Wojtaszek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2007-02-15 15:23 UTC by Steve Warren
Modified: 2007-04-07 20:21 UTC (History)
1 user (show)

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


Attachments
firebird-1.5.3-gcc412.patch (firebird-1.5.3-gcc412.patch,1.41 KB, patch)
2007-04-07 20:20 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Warren 2007-02-15 15:23:27 UTC
g++ -O2 -march=pentium4 -fomit-frame-pointer -pipe -O2 -march=pentium4 -fomit-frame-pointer -pipe -I../src/include/gen -I../src/include -fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -MMD -fPIC  -DPROD_BUILD -O2 -march=pentium4 -fomit-frame-pointer -pipe -I../src/include/gen -I../src/include -fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -MMD -fPIC  -DPROD_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -MMD -fPIC  -DPROD_BUILD -DBOOT_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -MMD -fPIC  -DPROD_BUILD -c ../src/jrd/jrd.cpp -o ../temp/libfbstatic/jrd/jrd.o
../src/jrd/../jrd/jrd.h:1053: error: previous declaration of 'int debug' with 'C++' linkage
../src/jrd/jrd.cpp:424: error: conflicts with new declaration with 'C' linkage
../src/jrd/../jrd/jrd.h:1054: error: previous declaration of 'ihndl* internal_db_handles' with 'C++' linkage
../src/jrd/jrd.cpp:425: error: conflicts with new declaration with 'C' linkage
make[3]: *** [../temp/libfbstatic/jrd/jrd.o] Error 1
rm ../src/jrd/dyn_util.cpp ../src/jrd/ini.cpp ../src/jrd/dyn_mod.cpp ../src/jrd/dfw.cpp ../src/jrd/dyn_def.cpp ../src/jrd/dpm.cpp ../src/jrd/met.cpp ../src/jrd/dyn.cpp ../src/jrd/grant.cpp ../src/jrd/scl.cpp ../src/jrd/dyn_del.cpp ../src/jrd/pcmet.cpp ../src/jrd/fun.cpp
make[3]: Leaving directory `/var/tmp/portage/dev-db/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src'
make[2]: *** [libfbstatic] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-db/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src'
make[1]: *** [../gen/firebird/bin/gpre_static] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-db/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src'
make: *** [firebird] Error 2

!!! ERROR: dev-db/firebird-1.5.3-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3332:   Called src_compile
  firebird-1.5.3-r1.ebuild, line 69:   Called die

!!! error during make
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-db/firebird-1.5.3-r1/temp/build.log'.


Reproducible: Always

Steps to Reproduce:
1.emerge kde-meta
2.
3.




localhost ~ # emerge --info
Portage 2.1.2-r9 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo-01 i686)
=================================================================
System uname: 2.6.20-gentoo-01 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 15 Feb 2007 15:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_US ja ko zh_CN zh_TW"
MAKEOPTS="-j1"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acpi aim alsa arts audiofile avi bash-completion berkdb bitmap-fonts bonobo bzlib cairo cdb cdr cjk cli cracklib crypt cups curl curlwrappers dbus dga dio divix4linux dlloader dri dvd dvdr eds emboss encode esd fam fbcon firebird firefox flac font-server foomaticdb fortran ftp gb gd gdbm gif gnome gnutils gphoto2 gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jack java jikes jpeg kde ldap libg++ mad mbox midi mikmod mime mmx mozilla mp3 mpeg msn ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis openall opengl oss pam pcre pdflib perl png posix ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session slang sockets softmmu spell spl sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode videos vorbis win32codecs x86 xine xml xml2 xorg xv yahoo zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US ja ko zh_CN zh_TW" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mga neomagic nsc nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Dima 2007-02-22 23:09:15 UTC
the same situation.

to resolve this I made a patch:

--- src/jrd/jrd.cpp     2007-02-23 00:52:59.000000000 +0200
+++ src/jrd/jrd.cpp     2007-02-23 00:52:45.503213985 +0200
@@ -289,7 +289,7 @@
        return TRUE;
 }

-extern "C" {
+/*extern "C" {*/


 #ifdef WIN_NT
@@ -6620,4 +6620,4 @@
        return true;
 }

-} // extern "C"
+//} // extern "C"

but then it failed with 

make[3]: Entering directory `/var/tmp/portage/dev-db/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src'
rm -f empty.fdb
../gen/firebird/bin/create_db empty.fdb
make[3]: *** [empty.fdb] Segmentation fault
make[3]: *** Deleting file `empty.fdb'
make[3]: Leaving directory `/var/tmp/portage/dev-db/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src'
make[2]: *** [empty_db] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-db/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src'
make[1]: *** [../gen/firebird/security.fdb] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-db/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src'
make: *** [firebird] Error 2



Portage 2.1.2-r9 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo i686)
=================================================================
System uname: 2.6.20-gentoo i686 Intel(R) Celeron(R) M processor         1.50GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 22 Feb 2007 20:30:07 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -mmmx -msse -msse2 -fomit-frame-pointer -mfpmath=sse -ftree-vectorize"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -pipe -mmmx -msse -msse2 -fomit-frame-pointer -mfpmath=sse -ftree-vectorize"
DISTDIR="/mnt/media/programs/different.programs.libs"
FEATURES="autoconfig distlocks metadata-transfer nodoc parallel-fetch sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--exclude=/local --exclude=/distfiles --exclude=/packages --recursive --compress --whole-file --times"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa apache2 berkdb bitmap-fonts bzip2 cairo cdr cgi charconv chm cli cracklib crypt cups dbus dri dvd dvdread encode exif fastcgi fbcon foomatic fortran galago gd gdbm gif gimp gnome gpm gstreamer gtk gtk2 hal iconv isdnlog jpeg libg++ libnotify mad midi mmx mmxext mp3 mpeg mplayer mpm-prefork msn mysql ncurses nls nptl nptlonly ogg opengl pam pcmcia pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection rtc samba sdl session spl sse sse2 ssl svg tcpd threads tiff truetype truetype-fonts type1-fonts unicode userlocales vchroot vorbis win32codecs x86 xinetd xml xorg xv zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2007-04-07 20:20:17 UTC
Created attachment 115680 [details, diff]
firebird-1.5.3-gcc412.patch

you missed a couple ;)
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2007-04-07 20:21:46 UTC
Fixed.