Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22413 - Epiphany 0.7.0 doesn't link
Summary: Epiphany 0.7.0 doesn't link
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-07 15:59 UTC by Hypnos
Modified: 2003-08-07 08:14 UTC (History)
1 user (show)

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


Attachments
Build log for Epiphany 0.7.0 with -O? (build.log_eph_0.7.0_eph_w_O,114.81 KB, application/octet-stream)
2003-06-09 16:55 UTC, Hypnos
Details
Build log for Epiphany 0.7.0 _without_ -O? (build.log_eph_0.7.0_eph_wo_O,256.67 KB, application/octet-stream)
2003-06-09 16:56 UTC, Hypnos
Details
My system's "emerge info" (emerge_info.log,1.46 KB, application/octet-stream)
2003-06-09 16:57 UTC, Hypnos
Details
build log for epiphany-0.7.3 without -O# (build.log_epiphany-0.7.3,116.21 KB, text/plain)
2003-07-08 23:46 UTC, Hypnos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hypnos 2003-06-07 15:59:29 UTC
Epiphany 0.7.0 won't link -- it complains that "snprintf" is implicitly declared.

Note that like Epiphany 0.6.1, all "-O#" optimization flags must be removed from
CFLAGS/CXXFLAGS in order for the compile to succeed.  (See bug #21314)

I use gcc-2.95.3-r8 and glibc-2.2.5-r8 -- I wonder if Epiphany requires gcc-3.


Reproducible: Always
Steps to Reproduce:
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2003-06-09 09:10:36 UTC
i guess this is kinda associated with this:

http://bugzilla.gnome.org/show_bug.cgi?id=114696

can you attach a build log please?
Comment 2 Hypnos 2003-06-09 16:55:37 UTC
Created attachment 13016 [details]
Build log for Epiphany 0.7.0 with -O?
Comment 3 Hypnos 2003-06-09 16:56:39 UTC
Created attachment 13017 [details]
Build log for Epiphany 0.7.0 _without_ -O?
Comment 4 Hypnos 2003-06-09 16:57:34 UTC
Created attachment 13018 [details]
My system's "emerge info"
Comment 5 foser (RETIRED) gentoo-dev 2003-06-15 10:19:15 UTC
*** Bug 21314 has been marked as a duplicate of this bug. ***
Comment 6 cluon 2003-06-15 10:56:29 UTC
This is definitely a problem with gcc 2.95.

I was also having similar trouble with the ebuild until upgrading.

epiphany inherits CFLAGS from gnome and debug by default, which adds the -Werror flag, which is how the build dies (arithmatic warnings on void pointers).

Previously, emptying the CFLAGS would work (did for 0.6.1), but 0.7 still seems broken.

I'm guessing this should be reported upstream to the epiphany maintainers.

-cluon
Comment 7 cluon 2003-06-15 10:57:37 UTC
note: by upgrading i mean i recently upgraded from gcc 2.95 to gcc 3.
Comment 8 Alastair Tse (RETIRED) gentoo-dev 2003-06-15 12:18:49 UTC
well, the seeming workaround would be to add :

G2CONF="--enable-compile-warnings=no"

we've enabled debug in our ebuilds which epiphany takes as enabling all warnings. it seems their code is not totally gcc 2.95 compilant.
Comment 9 Alastair Tse (RETIRED) gentoo-dev 2003-06-16 11:29:40 UTC
http://bugzilla.gnome.org/show_bug.cgi?id=114696

they've fixed the snprintf bug in the original comment and comment #3 is in cvs, but the second problem (comment #2) with the pointer arithmetic is not related to this, and seems unreported. i'll forward it upstream.
Comment 10 Alastair Tse (RETIRED) gentoo-dev 2003-07-05 04:40:42 UTC
Sourav, can you try again with epiphany-0.7.3?
Comment 11 Hypnos 2003-07-08 23:36:08 UTC
Epiphany 0.7.3 won't compile.  Again, I have to remove "-O#" from the compiler flags, and now instead of "snprintf," the build complains about "va_copy".

I will attach the build log.
Comment 12 Hypnos 2003-07-08 23:46:46 UTC
Created attachment 14296 [details]
build log for epiphany-0.7.3 without -O#
Comment 13 Hypnos 2003-07-12 14:19:07 UTC
Hi,

I got it to compile, and it works fine.  I just made up a definition for "va_copy" (well, in my CFLAGS I forcibly include "/usr/include/graphviz/ast_common.h", which has a crude preprocessor macro for it).  Is this a glibc problem?

I'll try -r1, which mandates Mozilla 1.4 instead of 1.3.

I still have to remove the "-O#" optimization.


Sourav
Comment 14 Hypnos 2003-07-13 03:40:08 UTC
epiphany-0.7.3-r1 (with Mozilla 1.4) works fine, again by removing the "-O#" optimizations and by injecting a macro for "va_copy".
Comment 15 Hypnos 2003-07-19 14:26:17 UTC
Epiphany 0.8.0 builds fine as long as I remove the "-O#" optimizations; no macro hacks are needed.

The "-O#" optimizations incite void pointer warnings, which causes the build to fail with "-Werror" (which converts warnings to errors).
Comment 16 foser (RETIRED) gentoo-dev 2003-07-26 14:34:55 UTC
so this is a gcc2 only problem with all systems ? i can probably add a statement that filters -O* with gcc .
Comment 17 Hypnos 2003-07-27 00:08:13 UTC
Looks like it.  I get the "void *" warnings on other apps compiling with gcc2, but they don't specify "-Werror" in the CFLAGS, so the builds succeed.  Certainly, when using gcc2, it'd be good to either filter out "-O?" or somehow coerce the Epiphany build environment to not include "-Werror" in the CFLAGS.
Comment 18 foser (RETIRED) gentoo-dev 2003-07-27 12:29:55 UTC
i added a few lines that should remove -Werror in 0.8.0 , could you please test the ebuild and confirm it works ?
Comment 19 Hypnos 2003-08-05 00:42:02 UTC
Works like a dream -- thanks!
Comment 20 Hanno Böck gentoo-dev 2003-08-05 00:43:15 UTC
foser: the workaround in comment #8 from liquidx is much simpler and cleaner and does the same.
Comment 21 Hanno Böck gentoo-dev 2003-08-05 00:49:52 UTC
It seems that this problem is now fixed upstream in 0.8.2. I just compiled it without problems.
Foser, you can bump the ebuild and remove the workaround.
Comment 22 foser (RETIRED) gentoo-dev 2003-08-07 08:14:39 UTC
hmmmdidum.. still enabled it.. my brain is fried

anyway 0.8.2 is in, warnings disabled all the way. Will remove it next release :)