KDE4 build through ports failed, problem with libxine - BSD

This is a discussion on KDE4 build through ports failed, problem with libxine - BSD ; I tried the following to build KDE4 on FreeBSD, 7.0-release, i386(on VMware Fusion): cd /usr/ports/x11/kde4/ make install clean During the build process the following error message appears: ========================= In file included from /usr/local/include/xine/input_plugin.h:34, from /usr/local/include/xine/xine_internal.h:54, from /usr/ports/x11/kdebase4-runtime/work/kdebase-runtime-4.1.1/phonon/xine/xinestream.cpp:43: /usr/local/include/xine/buffer.h:679: error: ISO ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: KDE4 build through ports failed, problem with libxine

  1. KDE4 build through ports failed, problem with libxine

    I tried the following to build KDE4 on FreeBSD, 7.0-release, i386(on
    VMware Fusion):
    cd /usr/ports/x11/kde4/
    make install clean

    During the build process the following error message appears:

    =========================

    In file included from /usr/local/include/xine/input_plugin.h:34,
    from /usr/local/include/xine/xine_internal.h:54,
    from
    /usr/ports/x11/kdebase4-runtime/work/kdebase-runtime-4.1.1/phonon/xine/xinestream.cpp:43:
    /usr/local/include/xine/buffer.h:679: error: ISO C++ forbids declaration
    of '_x_is_fourcc' with no type
    ***Error code 1

    Stop in /usr/ports/x11/kdebase4-runtime/work/kdebase-runtime-4.1.1/build.
    ***Error code 1

    ==========================

    The line 679 about in the file buffer.h which mentioned above (also
    which I think got problems) contains the following:

    ==========================

    static inline _x_is_fourcc(void *ptr, void *tag) {

    return memcmp(ptr, tag, 4) == 0;
    }

    ===========================

    How can I fix these problems and build KDE4 successfully with the ports
    system in FreeBSD?

  2. Re: KDE4 build through ports failed, problem with libxine

    On Oct 22, 9:01*pm, "Zhou, Yan" wrote:
    > I tried the following to build KDE4 on FreeBSD, 7.0-release, i386(on
    > VMware Fusion):
    > cd /usr/ports/x11/kde4/
    > make install clean
    >
    > During the build process the following error message appears:
    >
    > =========================
    >
    > In file included from /usr/local/include/xine/input_plugin.h:34,
    > * * * * * * * * * from /usr/local/include/xine/xine_internal.h:54,
    > * * * * * * * * * from
    > /usr/ports/x11/kdebase4-runtime/work/kdebase-runtime-4.1.1/phonon/xine/xine*stream.cpp:43:
    > /usr/local/include/xine/buffer.h:679: error: ISO C++ forbids declaration
    > of '_x_is_fourcc' with no type
    > ***Error code 1
    >
    > Stop in /usr/ports/x11/kdebase4-runtime/work/kdebase-runtime-4.1.1/build.
    > ***Error code 1
    >
    > ==========================
    >
    > The line 679 about in the file buffer.h which mentioned above (also
    > which I think got problems) contains the following:
    >
    > ==========================
    >
    > static inline _x_is_fourcc(void *ptr, void *tag) {
    >
    > * * * * return memcmp(ptr, tag, 4) == 0;
    >
    > }
    >
    > ===========================
    >
    > How can I fix these problems and build KDE4 successfully with the ports
    > system in FreeBSD?


    Recode it to static inline int _x_is_fourcc(void *ptr, void *tag).

    As you can see, there's no return type. I assume that it will run with
    integer returned because it's a boolean function. Do a little code-
    check, see with what type of variables is that function associated
    with. If they have some custom type you'll have to either typecast or
    return that type from function.

+ Reply to Thread