<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>167051</bug_id>
          
          <creation_ts>2007-02-15 15:23 0000</creation_ts>
          <short_desc>dev-db/firebird-1.5.3-r1 fails to compile w/ gcc-4.1.2</short_desc>
          <delta_ts>2007-04-07 20:21:46 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>117482</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>warrensg2001@yahoo.com</reporter>
          <assigned_to>sekretarz@gentoo.org</assigned_to>
          <cc>dliana@frontiernet.net</cc>

      

      
          <long_desc isprivate="0">
            <who>warrensg2001@yahoo.com</who>
            <bug_when>2007-02-15 15:23:27 0000</bug_when>
            <thetext>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 &apos;int debug&apos; with &apos;C++&apos; linkage
../src/jrd/jrd.cpp:424: error: conflicts with new declaration with &apos;C&apos; linkage
../src/jrd/../jrd/jrd.h:1054: error: previous declaration of &apos;ihndl* internal_db_handles&apos; with &apos;C++&apos; linkage
../src/jrd/jrd.cpp:425: error: conflicts with new declaration with &apos;C&apos; 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&apos;
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&apos;
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&apos;
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 &apos;src_compile&apos;
  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 &apos;/var/tmp/portage/dev-db/firebird-1.5.3-r1/temp/build.log&apos;.


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=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=pentium4 -fomit-frame-pointer -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/share/X11/xkb&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -march=pentium4 -fomit-frame-pointer -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LINGUAS=&quot;en_US ja ko zh_CN zh_TW&quot;
MAKEOPTS=&quot;-j1&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot; ALSA_CARDS=&quot;emu10k1&quot; ALSA_PCM_PLUGINS=&quot;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&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en_US ja ko zh_CN zh_TW&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;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&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>niam.niam@gmail.com</who>
            <bug_when>2007-02-22 23:09:15 0000</bug_when>
            <thetext>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 &quot;C&quot; {
+/*extern &quot;C&quot; {*/


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

-} // extern &quot;C&quot;
+//} // extern &quot;C&quot;

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&apos;
rm -f empty.fdb
../gen/firebird/bin/create_db empty.fdb
make[3]: *** [empty.fdb] Segmentation fault
make[3]: *** Deleting file `empty.fdb&apos;
make[3]: Leaving directory `/var/tmp/portage/dev-db/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src&apos;
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&apos;
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&apos;
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=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=pentium-m -pipe -mmmx -msse -msse2 -fomit-frame-pointer -mfpmath=sse -ftree-vectorize&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/share/X11/xkb /var/bind&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -march=pentium-m -pipe -mmmx -msse -msse2 -fomit-frame-pointer -mfpmath=sse -ftree-vectorize&quot;
DISTDIR=&quot;/mnt/media/programs/different.programs.libs&quot;
FEATURES=&quot;autoconfig distlocks metadata-transfer nodoc parallel-fetch sandbox sfperms&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LANG=&quot;en_US.UTF-8&quot;
LC_ALL=&quot;en_US.UTF-8&quot;
LINGUAS=&quot;en&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_EXTRA_OPTS=&quot;--exclude-from=/etc/portage/rsync_excludes&quot;
PORTAGE_RSYNC_OPTS=&quot;--exclude=/local --exclude=/distfiles --exclude=/packages --recursive --compress --whole-file --times&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot; ALSA_CARDS=&quot;intel8x0&quot; ALSA_PCM_PLUGINS=&quot;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&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse synaptics&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;i810&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2007-04-07 20:20:17 0000</bug_when>
            <thetext>Created an attachment (id=115680)
firebird-1.5.3-gcc412.patch

you missed a couple ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2007-04-07 20:21:46 0000</bug_when>
            <thetext>Fixed.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>115680</attachid>
            <date>2007-04-07 20:20 0000</date>
            <desc>firebird-1.5.3-gcc412.patch</desc>
            <filename>firebird-1.5.3-gcc412.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtdXJOYWQgc3RhYmxlfi9zcmMvanJkL2pyZC5jcHAgc3RhYmxlL3NyYy9qcmQvanJkLmNw
cAotLS0gc3RhYmxlfi9zcmMvanJkL2p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