Re: [SLE] Compile problem

From: Vince Littler (suse_at_archipelago.eclipse.co.uk)
Date: 12/21/03

  • Next message: Dylan: "Re: [SLE] Compile problem"
    To: Roland Hill <rolandh@ak.planet.gen.nz>, suse-linux-e@suse.com
    Date: Sun, 21 Dec 2003 12:13:51 +0000
    
    

    On Sunday 21 December 2003 09:48, Roland Hill wrote:
    > Hi list,
    >
    > As way of background I am running SuSE 8.2 Pro.
    >
    > Instead of using the gkrellm RPM, I am trying to install it from source.
    >
    > The version I have is gkrellm-2.1.13.
    >
    > On 'make' I get a lot of errors, so many that I have posted them here:
    >
    > http://pl.net/~rnrhill/help.htm
    >
    > I am not sure how to go about solving this and I hope someone can point me
    > in the right direction.
    >
    > This is the first compile time problem I have faced in my relatively short
    > time with Linux so I would greatly appreciate some help, pointers or any
    > other directions on how to interpret the output.
    >

    Ok, I have only ever done a kernel or 2 under Linux, but I have done some
    compiling with and without make in my time. Before I forget, thanks for not
    pasting your output into your post, - it does make one more favourably
    disposed, even though I am not going to fix this for you, I will only suggest
    an approach.

    First thing, get yourself the gnu 'make' and 'gcc' manuals from gnu.org - they
    won't solve or fix this problem for you, but in the long run, if you are
    going to compile stuff, it will help you understand the messages and the
    context of the messages in the build process.

    For the amount of grief your messages are showing, experience indicates you
    probably have a few gross errors, which manifest as large numbers of similar
    repeated errors. So ERRORs stop you getting output, WARNINGs alert you to be
    suspicious when you do get output. Start by eliminating errors from the top,
    leave fixing the warnings until you have fixed the errors [but do take note
    of clues from warnings]. The first error message arising from a gross error
    is often the best clue - many that follow are just consequences of the first
    error

    First you have:

    make[1]: Entering directory `/usr/local/gkrellm-2.1.13/src'
    cc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0` -DENABLE_NLS
    -DLOCALEDIR=\"/usr/local/share/locale\" -c -o main.o main.c
    /bin/sh: line 1: pkg-config: command not found

    Make sure that from your command line, you can cd to /usr/local/
    gkrellm-2.1.13/src. Make sure that you can run pkg-config from there [never
    mind the parameters, can you engage any response from the command?] - this
    suggests a pathing type of problem. Solve that problem. Do not think of
    solving anything else until that is resolved. If you can do it from the
    command line, find out why make does not do it.

    Make sure that the error above goes away. Fixing that problem might change the
    error messages so radically, that it is not worth me following through with
    any more, but suppose the next one remains:

    In file included from main.c:22:
    gkrellm.h:30:21: gtk/gtk.h: No such file or directory

    Find the gcc rules for locating include files. Find all instances of
    [something]/gtk/gtk.h on your system and ensure that the one you want to use
    and preferably only that one complies with the rule - or that the the one you
    want is at least first to comply. [and is it installed on your system etc.]
    But note that the fact that gtk/gtk.h has not been located is certainly
    responsible for most, if not all of the errors in gkrellm.h, and maybe
    further afield

    In summary, I would say that your problems are mainly to do with pathing.

    HTH

    Vince Littler

    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Dylan: "Re: [SLE] Compile problem"
    Loading