• Bug#258988: Help needed for bug #258988 (build failure of gmime2.1 on i

    From J.H.M. Dassen (Ray)@1:229/2 to Guus Sliepen on Sat Aug 21 23:00:18 2004
    From: [email protected]

    On Thu, Jul 15, 2004 at 16:00:09 +0200, Guus Sliepen wrote:
    Could anyone shed some light on bug #258988? Gmime2.1 only fails to
    build on ia64, it builds on all other architectures. The build log is
    also not very helpful.

    Some notes I wrote to the balsa maintainer earlier today:
    * the gmime-scan thingy comes from gtkdoc-scanobj(1)
    * http://bugs.debian.org/245396 is another report of a "scan failed" error
    on ia64. It was fixed by adding an include so that a prototype could be
    found.
    * IIRC, ia64 is the architecture that gets bitten the most by the compiler's
    (/ C language's) "prototype not found, so I'll assume this function
    returns `int'" behaviour.
    * after putting an `env CFLAGS="-Wall"' before configure, I get the
    following warning during a build:
    gcc -I../.. -I../.. -I../../gmime -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -c gmime-scan.c -fPIC -DPIC -o .libs/gmime-scan.lo
    gmime-scan.c: In function `get_object_types': gmime-scan.c:42: warning: implicit declaration of function `g_mime_session_simple_get_type'
    * I strongly suspect that if you can get rid of this warning, you'll have
    fixed the problem on ia64

    And some IRC conversation later on:
    [22:01] < willy> my ia64 machine is running sid
    [22:01] < willy> except for a couple of packages because they're broken
    [22:01] < JHM> willy: Could you do a small test for me?
    [22:02] < willy> yes
    [22:02] < JHM> Please try if you can reproduce #258988.
    [22:03] < JHM> If so, I might just have a one-line fix.
    [22:06] * willy kicks off the build
    [22:08] < willy> yes, reproduced.
    [22:09] < willy> gmime2.1 doesn't use -Wall
    [22:09] * willy tuts
    [22:10] < JHM> willy: Ah, good.
    [22:11] < JHM> Now please edit gmime/gmime.h and add a #include
    <gmime/gmime-session-simple.h> to its list of #includes, then
    try again.
    [22:12] < willy> gmime-gpg-context.c: In function `gpg_ctx_parse_status': [22:12] < willy> gmime-gpg-context.c:987: warning: dereferencing type-punned
    pointer will break strict-aliasing rules
    [22:12] < willy> hehe
    [22:13] < willy> you need to add -Wall
    [22:13] < willy> I did it by doing "CFLAGS=-O2 -Wall ./configure "...
    [22:14] < willy> daniels: hiya
    [22:19] < willy> JHM: Yes, that builds
    [22:19] < JHM> Great!
    [22:19] < JHM> Time to update the report.
    [22:19] < willy> Can you also add:
    [22:19] < willy> CFLAGS="-O2 -Wall" ./configure --prefix=/usr
    --mandir=\$${prefix}/share/man
    --infodir=\$${prefix}/share/info --enable-gtk-doc
    [22:20] < JHM> Will do.
    [22:20] < willy> Thanks
    [22:21] < willy> post-sarge, I think we need to trawl through the buildd logs
    and file reports against packages that don't build with -Wall [22:22] < willy> because we're losing valuable clues for build problems when
    people don't use -Wall (it's only a "should", not "must" in
    Policy)
    [22:26] < JHM> Given the other warnings, should it be built
    -fno-strict-aliasing BTW?
    [22:26] < willy> I think it probably should. Or the code should be fixed to
    not break with strict aliasing

    Guus, please make the gmime/gmime.h change (and forward it upstream) and configure using CFLAGS="-Wall -O2 -fno-strict-aliasing". As gmime2.1
    produces library packages, you may also want to use
    LDFLAGS="-Wl,-z,defs -Wl,-O1".

    Regards,
    Ray
    --
    "[...] you can divide our industry into two kinds of people: those who want
    to go work for a company to make it successful, and those who want to go
    work for a successful company."
    Jamie Zawinski in http://www.jwz.org/gruntle/nomo.html


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Matthew Wilcox@1:229/2 to All on Sat Aug 21 23:00:18 2004
    From: [email protected]

    On Sat, Aug 21, 2004 at 10:31:35PM +0200, J.H.M. Dassen (Ray) wrote:
    produces library packages, you may also want to use
    LDFLAGS="-Wl,-z,defs -Wl,-O1".

    That can be dangerous (256481). At this point of the sarge release,
    I would not make that change.

    --
    "Next the statesmen will invent cheap lies, putting the blame upon
    the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse
    to examine any refutations of them; and thus he will by and by convince
    himself that the war is just, and will thank God for the better sleep
    he enjoys after this process of grotesque self-deception." -- Mark Twain


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)