compiling slrn with canlock (Mdv2007.0) - Mandriva

This is a discussion on compiling slrn with canlock (Mdv2007.0) - Mandriva ; I apologise for the long lines that follow. I'm still trying to get my slrn to use Cancel-Lock. Starting with slrn-0.9.8.1.tar.bz2 from the horse's mouth, and after installing libslang1-1.4.9-8mdk and libslang1-devel-1.4.9-8mdk and un-installing Mandriva's slrn RPM, I can run [mark@tavy ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: compiling slrn with canlock (Mdv2007.0)

  1. compiling slrn with canlock (Mdv2007.0)

    I apologise for the long lines that follow.

    I'm still trying to get my slrn to use Cancel-Lock.

    Starting with slrn-0.9.8.1.tar.bz2 from the horse's mouth, and after
    installing libslang1-1.4.9-8mdk and libslang1-devel-1.4.9-8mdk and
    un-installing Mandriva's slrn RPM, I can run

    [mark@tavy slrn-0.9.8.1]$ ./configure --with-server-name=localhost --with-canlock=/usr/share/libcanlock --enable-mid-cache

    successfully (at least, no errors catch my eye) but make founders with
    this (after reporting lots of stuff that doesn't generate errors):

    make[1]: Entering directory `/data/mark/Download/slrn/slrn-0.9.8.1/src'
    make all-am
    make[2]: Entering directory `/data/mark/Download/slrn/slrn-0.9.8.1/src'
    ../chkslang slrn 10003 10400
    if gcc -Dunix -DSLRN_LIB_DIR=\"/usr/local/lib/slrn\" -DSHAREDIR=\"/usr/local/share/slrn\" -DSYSCONFDIR=\"/usr/local/etc\" -I. -I. -I. -I. -I../intl -I/usr/include/slang -I/usr/share/libcanlock -g -O2 -MT misc.o -MD -MP -MF ".deps/misc.Tpo" -c -o misc.o misc.c; \
    then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; else rm -f ".deps/misc.Tpo"; exit 1; fi
    In file included from /usr/include/sys/wait.h:80,
    from misc.c:84:
    /usr/include/bits/waitstatus.h:80: error: duplicate member '__w_retcode'
    /usr/include/bits/waitstatus.h:80: error: duplicate member '({anonymous})'
    /usr/include/bits/waitstatus.h:80: error: duplicate member '({anonymous})'
    /usr/include/bits/waitstatus.h:81: error: duplicate member '__w_coredump'
    /usr/include/bits/waitstatus.h:81: error: duplicate member '({anonymous})'
    /usr/include/bits/waitstatus.h:81: error: duplicate member '({anonymous})'
    /usr/include/bits/waitstatus.h:81: error: duplicate member '({anonymous})'
    /usr/include/bits/waitstatus.h:82: error: duplicate member '__w_termsig'
    /usr/include/bits/waitstatus.h:82: error: duplicate member '({anonymous})'
    /usr/include/bits/waitstatus.h:82: error: duplicate member '({anonymous})'
    /usr/include/bits/waitstatus.h:82: error: duplicate member '({anonymous})'
    /usr/include/bits/waitstatus.h:82: error: duplicate member '({anonymous})'
    /usr/include/bits/waitstatus.h:94: error: duplicate member '__w_stopsig'
    /usr/include/bits/waitstatus.h:94: error: duplicate member '({anonymous})'
    /usr/include/bits/waitstatus.h:94: error: duplicate member '({anonymous})'
    /usr/include/bits/waitstatus.h:95: error: duplicate member '__w_stopval'
    /usr/include/bits/waitstatus.h:95: error: duplicate member '({anonymous})'
    /usr/include/bits/waitstatus.h:95: error: duplicate member '({anonymous})'
    /usr/include/bits/waitstatus.h:95: error: duplicate member '({anonymous})'
    make[2]: *** [misc.o] Error 1
    make[2]: Leaving directory `/data/mark/Download/slrn/slrn-0.9.8.1/src'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/data/mark/Download/slrn/slrn-0.9.8.1/src'
    make: *** [all-recursive] Error 1
    [root@tavy slrn-0.9.8.1]#

    which leaves me gasping for breath and in need of further clues, and
    re-installing Mandriva's slrn RPM.

    If you can read this, at least I haven't broken Noffle or anything else.

    --
    -- ^^^^^^^^^^
    -- Whiskers
    -- ~~~~~~~~~~

  2. Re: compiling slrn with canlock (Mdv2007.0)

    Whiskers wrote:
    > I apologise for the long lines that follow.
    >
    > I'm still trying to get my slrn to use Cancel-Lock.
    >
    > Starting with slrn-0.9.8.1.tar.bz2 from the horse's mouth, and after
    > installing libslang1-1.4.9-8mdk and libslang1-devel-1.4.9-8mdk and
    > un-installing Mandriva's slrn RPM, I can run
    >
    > [mark@tavy slrn-0.9.8.1]$ ./configure --with-server-name=localhost --with-canlock=/usr/share/libcanlock --enable-mid-cache
    >
    > successfully (at least, no errors catch my eye) but make founders with
    > this (after reporting lots of stuff that doesn't generate errors):
    >
    > make[1]: Entering directory `/data/mark/Download/slrn/slrn-0.9.8.1/src'
    > make all-am
    > make[2]: Entering directory `/data/mark/Download/slrn/slrn-0.9.8.1/src'
    > ./chkslang slrn 10003 10400
    > if gcc -Dunix -DSLRN_LIB_DIR=\"/usr/local/lib/slrn\" -DSHAREDIR=\"/usr/local/share/slrn\" -DSYSCONFDIR=\"/usr/local/etc\" -I. -I. -I. -I. -I../intl -I/usr/include/slang -I/usr/share/libcanlock -g -O2 -MT misc.o -MD -MP -MF ".deps/misc.Tpo" -c -o misc.o misc.c; \
    > then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; else rm -f ".deps/misc.Tpo"; exit 1; fi
    > In file included from /usr/include/sys/wait.h:80,
    > from misc.c:84:
    > /usr/include/bits/waitstatus.h:80: error: duplicate member '__w_retcode'
    > /usr/include/bits/waitstatus.h:80: error: duplicate member '({anonymous})'
    > /usr/include/bits/waitstatus.h:80: error: duplicate member '({anonymous})'
    > /usr/include/bits/waitstatus.h:81: error: duplicate member '__w_coredump'
    > /usr/include/bits/waitstatus.h:81: error: duplicate member '({anonymous})'
    > /usr/include/bits/waitstatus.h:81: error: duplicate member '({anonymous})'
    > /usr/include/bits/waitstatus.h:81: error: duplicate member '({anonymous})'
    > /usr/include/bits/waitstatus.h:82: error: duplicate member '__w_termsig'
    > /usr/include/bits/waitstatus.h:82: error: duplicate member '({anonymous})'
    > /usr/include/bits/waitstatus.h:82: error: duplicate member '({anonymous})'
    > /usr/include/bits/waitstatus.h:82: error: duplicate member '({anonymous})'
    > /usr/include/bits/waitstatus.h:82: error: duplicate member '({anonymous})'
    > /usr/include/bits/waitstatus.h:94: error: duplicate member '__w_stopsig'
    > /usr/include/bits/waitstatus.h:94: error: duplicate member '({anonymous})'
    > /usr/include/bits/waitstatus.h:94: error: duplicate member '({anonymous})'
    > /usr/include/bits/waitstatus.h:95: error: duplicate member '__w_stopval'
    > /usr/include/bits/waitstatus.h:95: error: duplicate member '({anonymous})'
    > /usr/include/bits/waitstatus.h:95: error: duplicate member '({anonymous})'
    > /usr/include/bits/waitstatus.h:95: error: duplicate member '({anonymous})'
    > make[2]: *** [misc.o] Error 1
    > make[2]: Leaving directory `/data/mark/Download/slrn/slrn-0.9.8.1/src'
    > make[1]: *** [all] Error 2
    > make[1]: Leaving directory `/data/mark/Download/slrn/slrn-0.9.8.1/src'
    > make: *** [all-recursive] Error 1
    > [root@tavy slrn-0.9.8.1]#
    >
    > which leaves me gasping for breath and in need of further clues, and
    > re-installing Mandriva's slrn RPM.
    >
    > If you can read this, at least I haven't broken Noffle or anything else.


    This looks like __w_retcode, anonymous, __w_coredump, __w_termsig,
    __w_stopsig, and __w_stopval are being declared/possibly allocated
    memory space in two (or more) different places. This is a no-no.

    /usr/include/bits/waitstatus.h is cited, so you might start there.
    Save everything in its directory to a separate directory, so reversion
    to status quo ante will be easy.

    Then change the name to oldwaitstatus.h and try the compile. If the
    duplicate names are all that is needed from this header file, that might
    cure the problem. Oh yes, remove any .o files created using this header
    first, as the differing declarations may be slightly different and
    modules compiled some from one and some from the other may not play together
    nicely.

    If that breaks things due to other things in waitstatus.h being needed,
    change oldwaitstatus.h back to waitstatus.h, and use an ASCII editor
    to comment out the declarations for the problem objects. They should
    appear near the top of the file, below the include lines, but could
    appear just after the function identifier in a function that uses them.

    If the duplicate declarations are seriously different, a rewrite
    of the code will be necessary to iron things out. That I cannot
    help with.

    Cheers!

    jim b.

    --
    UNIX is not user-unfriendly; it merely
    expects users to be computer-friendly.

+ Reply to Thread