Bug 28685 - dev-db/firebird-1.0.3 fails to emerge (jrd problem)
Bug#: 28685 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: critical Priority: P2
Resolution: FIXED Assigned To: mksoft@gentoo.org Reported By: deathwing00@gentoo.org
Component: Server
URL: 
Summary: dev-db/firebird-1.0.3 fails to emerge (jrd problem)
Keywords:  
Status Whiteboard: 
Opened: 2003-09-14 03:41 0000
Description:   Opened: 2003-09-14 03:41 0000
My objective is to emerge php and phpmyadmin with their respective
dependencies. When I try to 
emerge them, emerge shows up firebird to be compiled, but it fails: 

gcc -c -mcpu=athlon-xp -pipe -fpic -DFLINTSTONE -DLINUX -Wall
-fwritable-strings 
-I/var/tmp/portage/firebird-1.0.3/work/interbase/interbase/include  -fPIC
-DPROD_BUILD -o utl.bin 
utl.c 
utl.c: In function `gds__blob_size': 
utl.c:403: warning: passing arg 2 of `gds__blob_info' from incompatible pointer
type 
utl.c: In function `isc_expand_dpb': 
utl.c:478: warning: suggest parentheses around assignment used as truth value 
utl.c:487: warning: suggest parentheses around assignment used as truth value 
utl.c:532: warning: suggest parentheses around assignment used as truth value 
utl.c:541: warning: suggest parentheses around assignment used as truth value 
utl.c: In function `isc_modify_dpb': 
utl.c:658: warning: suggest parentheses around assignment used as truth value 
utl.c:914:8: warning: extra tokens at end of #endif directive 
utl.c:1004:8: warning: extra tokens at end of #endif directive 
utl.c: In function `isc_set_login': 
utl.c:1227: warning: passing arg 1 of `isc_expand_dpb' from incompatible
pointer type 
utl.c:1229: warning: passing arg 1 of `isc_expand_dpb' from incompatible
pointer type 
utl.c:1232: warning: passing arg 1 of `isc_expand_dpb' from incompatible
pointer type 
utl.c: In function `isc_set_single_user': 
utl.c:1337: warning: passing arg 1 of `isc_expand_dpb' from incompatible
pointer type 
utl.c: In function `gds__version': 
utl.c:1357: warning: unused variable `n' 
utl.c: In function `blob__display': 
utl.c:1633: warning: comparison between pointer and integer 
utl.c:1641: warning: passing arg 1 of `BLOB_display' from incompatible pointer
type 
utl.c: In function `blob__dump': 
utl.c:1703: warning: comparison between pointer and integer 
utl.c:1711: warning: passing arg 1 of `BLOB_dump' from incompatible pointer
type 
utl.c: In function `blob__edit': 
utl.c:1792: warning: comparison between pointer and integer 
utl.c:1800: warning: passing arg 1 of `BLOB_edit' from incompatible pointer
type 
utl.c: In function `blob__load': 
utl.c:1887: warning: comparison between pointer and integer 
utl.c:1895: warning: passing arg 1 of `BLOB_load' from incompatible pointer
type 
utl.c: In function `Bopen': 
utl.c:1993: warning: passing arg 4 of `gds__create_blob2' from incompatible
pointer type 
utl.c:2004: warning: passing arg 4 of `gds__open_blob2' from incompatible
pointer type 
utl.c:2188:9: warning: extra tokens at end of #endif directive 
utl.c: In function `dump': 
utl.c:2225: warning: passing arg 4 of `gds__open_blob2' from incompatible
pointer type 
utl.c:2241: warning: passing arg 2 of `gds__get_segment' from incompatible
pointer type 
utl.c:2255: warning: passing arg 2 of `gds__close_blob' from incompatible
pointer type 
utl.c:2211: warning: unused variable `bpb2' 
utl.c:2211: warning: unused variable `r' 
utl.c: In function `edit': 
utl.c:2342: warning: implicit declaration of function `unlink' 
utl.c:2348: warning: suggest parentheses around assignment used as truth value 
utl.c: In function `load': 
utl.c:2453: warning: passing arg 4 of `gds__create_blob' from incompatible
pointer type 
utl.c:2473: warning: passing arg 2 of `gds__put_segment' from incompatible
pointer type 
utl.c:2476: warning: passing arg 2 of `gds__close_blob' from incompatible
pointer type 
utl.c:2482: warning: comparison between pointer and integer 
utl.c:2483: warning: passing arg 2 of `gds__put_segment' from incompatible
pointer type 
utl.c:2486: warning: passing arg 2 of `gds__close_blob' from incompatible
pointer type 
utl.c:2490: warning: passing arg 2 of `gds__close_blob' from incompatible
pointer type 
gcc -c -mcpu=athlon-xp -pipe -fpic -DFLINTSTONE -DLINUX -Wall
-fwritable-strings 
-I/var/tmp/portage/firebird-1.0.3/work/interbase/interbase/include  -fPIC
-DPROD_BUILD -o val.bin 
val.c 
val.c:103:4: missing terminating " character 
val.c:104:47: missing terminating " character 
In file included from ../jrd/svc.h:28, 
                 from ../jrd/jrd_proto.h:35, 
                 from val.c:564: 
../jrd/svc_undoc.h:94:8: warning: extra tokens at end of #endif directive 
val.c: In function `walk_chain': 
val.c:1132: warning: unused variable `counter' 
val.c: In function `walk_database': 
val.c:1216: warning: suggest parentheses around assignment used as truth value 
val.c: In function `walk_generators': 
val.c:1386: warning: suggest parentheses around assignment used as truth value 
val.c: In function `walk_root': 
val.c:2044: warning: suggest parentheses around assignment used as truth value 
make[1]: *** [val.bin] Error 1 
make[1]: Leaving directory `/var/tmp/portage/firebird-1.0.3/work/interbase/jrd' 
make: *** [gdslib.linux] Error 2 

!!! ERROR: dev-db/firebird-1.0.3 failed. 
!!! Function src_compile, Line 40, Exitcode 2 
!!! (no error message) 


Reproducible: Always
Steps to Reproduce:
1. emerge -u php phpmydamin 

Actual Results:  
Compilation failed. 

Expected Results:  
dev-db/firebird should have been emerged successfully. 

Portage 2.0.49-r4 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.20-xfs-r3) 
================================================================= 
System uname: 2.4.20-xfs-r3 i686 AMD Athlon(tm) XP 1800+ 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-mcpu=athlon-xp -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config 
/usr/X11R6/lib/X11/xkb /opt/tomcat/conf /usr/kde/3.1/share/config 
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-mcpu=athlon-xp -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="sandbox ccache autoaddcvs" 
GENTOO_MIRRORS="http://ftp.belnet.be/mirrors/rsync.gentoo.org/gentoo 
http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="foomaticdb mad berkdb nas gnome 3dnow aalib acpi apm arts avi cdr crypt
cups curl dga 
directfb doc dvb dvd emacs encode esd ethereal evo fbcon X kde alsa zlib ipv6
firebird flash gb gd 
gdbm ggi gif gnomegphoto2 gpm gtk gtkhtml guile icc imlib java jikes jpeg junit
ladcca lcms leim libg++ 
libwww mbox mikmod memlimit mmx motif mozilla mpeg mule ncurses nls oav
oggvorbis opengl oss 
pam pdflib perl plotutils png pnp prebuilt python qt quicktime readline ruby
samba scanner sdl slang 
slp spell ssl svga tcltk tcpd tetex tiff truetype usb wmf xml xml2 xmms xv x86"

------- Comment #1 From Ioannis Aslanidis 2003-09-17 14:18:37 0000 -------
3 days passed... bug ignored?

------- Comment #2 From Ioannis Aslanidis 2003-09-17 14:23:34 0000 -------
Created an attachment (id=17917) [details]
Almost complete compilation trace...

------- Comment #3 From Meir Kriheli 2003-09-19 03:53:34 0000 -------
Can you try with a different set of CFLAGS instead of athlon-xp ? 

------- Comment #4 From Ioannis Aslanidis 2003-09-19 06:57:37 0000 -------
I have tried with -mcpu=i686 SAME RESULT :(

------- Comment #5 From Ioannis Aslanidis 2003-09-21 03:36:09 0000 -------
Please, need suggestions about this, I have tryed reducing flags dramatically
and it doesn't work... this does not allow me to have PHP in my machine.

------- Comment #6 From Meir Kriheli 2003-09-21 03:50:19 0000 -------
To help you get PHP installed, if you don't need firebird, put -firebird in
your USE flags, that'll 
remove firebird as a dependency, and you can get PHP installed. 

This until we reolve this. 

------- Comment #7 From Ioannis Aslanidis 2003-09-21 04:50:19 0000 -------
Thanks for that!

------- Comment #8 From Meir Kriheli 2003-09-21 10:37:04 0000 -------
You're welcome. 
 
Looks like the problem is caused when compiling with gcc 3.3.x. 3.2.x compiled with no 
problems. 

------- Comment #9 From Ioannis Aslanidis 2003-09-21 10:48:24 0000 -------
Shall I try then to fall back to GCC, compile firebird, and re-update GCC?

------- Comment #10 From Meir Kriheli 2003-09-22 08:13:29 0000 -------
Don't mess your system, I'll try it.... 

------- Comment #11 From Meir Kriheli 2003-10-29 03:56:45 0000 -------
Added a patch to jrd/val.c, should fix the
compliation problem with gcc 3.3.x


Deathwing00, can you test it please ?

------- Comment #12 From Ioannis Aslanidis 2003-10-29 03:58:25 0000 -------
Underway! Just tell me how to apply the path... never done this manually
before!

------- Comment #13 From Meir Kriheli 2003-10-29 05:22:32 0000 -------
You don't need to apply it yourself, the ebuid
handles it, all you have to do is emerge firebird.

Please sync portage before emerging, to get the
new files. Your mirror may take time to get the changes.

To make sure you got the changes, look in
/usr/portage/dev-db/firebird/Changelog

You should see a change dated 29 Oct 2003.

------- Comment #14 From Ioannis Aslanidis 2003-10-29 12:59:19 0000 -------
All right! Now it compiles successfully!!! Thank you!

------- Comment #15 From Meir Kriheli 2003-10-29 13:25:39 0000 -------
Cool, If you want firebird support in php or mod_php
remember to remove -firebird from your USE flags and
emerge php or mod_php again.

------- Comment #16 From Ioannis Aslanidis 2003-10-29 13:31:27 0000 -------
Thanks for the remind!