Re: Xsane Configuere Script Bug

From: Juergen Sauer (jojo@automatix.de)
Date: Wed Jul 18 2001 - 08:39:37 PDT

  • Next message: karsten.festag@t-online.de: "Re: Microtek X6USB doesn't switch off main lamp :("

    Am Dienstag, 17. Juli 2001 19:00 schrieben Sie:
    > Hi,
    >
    > On Tue, Jul 17, 2001 at 01:05:17PM +0200, Juergen Sauer wrote:
    > > Bug report about Xsane 0.78, I was not able to enable the gimp Plugin
    > > mode during the ./configure script.
    > >
    > > I read the File Xsane.PROBLEMS, and followed that instructions.
    > >
    > > This is the result:
    > > [...]
    > > checking for gimp-config... (cached) /usr/bin/gimp-config
    > > checking for GIMP - version >= 1.0.0... no
    > > *** Could not run GIMP test program, checking why...
    > > [...]
    >
    > Could you have a look at config.log, there should be a hint what's
    > going on.
    >
    > Which version of gimp is it?
    Gimp V 1.2.1

    This is the Output, but I can't solve this, because, I'm not a
    gimp-hacker. (Ask me if you need a programm to controll a crane of 50t)
    I think this is the problem:
            /usr/lib/libgimpui.so: undefined reference to `dcgettext__'
    What is this function call for, and where to get it ?

    mfG
            J. Sauer
    -----------------------------------------------------------
    This is the log exerpt:
    [...]
    configure:4086: checking for GTK - version >= 1.2.0
    configure:4172: gcc -o conftest -g -O2 -Wall -I/usr/include/gtk-1.2
    -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
    -D_GNU_SOURCE conftest.c -ltiff -ljpeg -lz -lm -L/usr/lib
    -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11
    -lm 1>&5
    configure: In function `main':
    configure:4119: warning: implicit declaration of function `system'
    configure:4300: checking for gimp-config
    configure:4496: checking for GIMP - version >= 1.0.0
    configure:4586: gcc -o conftest -g -O2 -Wall -I/usr/include/gtk-1.2
    -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
    -D_GNU_SOURCE conftest.c -ltiff -ljpeg -lz -lm -L/usr/lib -lgimpui
    -lgimp -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl
    -lXext -lX11 -lm -lgimp 1>&5
    configure: In function `main':
    configure:4528: warning: implicit declaration of function `system'
    /usr/lib/libgimpui.so: undefined reference to `dcgettext__'
    collect2: ld returned 1 exit status
    configure: failed program was:
    #line 4506 "configure"
    #include "confdefs.h"

    #include <libgimp/gimp.h>
    #include <stdio.h>

    #define GIMP_TEST_CHECK_VERSION(major, minor, micro) (1 > (major) ||
        (1 == (major) && 2 > (minor)) || (1 == (major) && 2 == (minor)
    && 1 >= (micro)))

    #if !GIMP_TEST_CHECK_VERSION(1,1,25)
    # define GimpPlugInInfo GPlugInInfo /* do test with gimp interface
    version 1.0 */
    #endif

    GimpPlugInInfo PLUG_IN_INFO =
    {
      NULL, NULL, NULL, NULL
    };

    int
    main ()
    {
      int major, minor, micro;

      system ("touch conf.gimptest");

      if (sscanf("1.0.0", "%d.%d.%d", &major, &minor, &micro) != 3) {
         printf("%s, bad version string\n", "1.0.0");
         exit(1);
       }

      if ( (1 != -1) &&
           ((gimp_major_version != 1) ||
           (gimp_minor_version != 2) ||
           (gimp_micro_version != 1)) )
      {
          printf("\n*** 'gimp-config --version' returned %d.%d.%d, but GIMP
    (%d.%d.%d)\n",
                 1, 2, 1,
                 gimp_major_version, gimp_minor_version, gimp_micro_version);
          printf ("*** was found! If gimp-config was correct, then it is
    best\n");
          printf ("*** to remove the old version of GIMP. You may also be
    able to fix the error\n");
          printf("*** by modifying your LD_LIBRARY_PATH enviroment variable,
    or by editing\n");
          printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if
    that is\n");
          printf("*** required on your system.\n");
          printf("*** If gimp-config was wrong, set the environment variable
    GIMP_CONFIG\n");
          printf("*** to point to the correct copy of gimp-config, and remove
    the file config.cache\n");
          printf("*** before re-running configure\n");
      }
      else
      {
          if ((gimp_major_version > major) ||
            ((gimp_major_version == major) && (gimp_minor_version > minor)) ||
            ((gimp_major_version == major) && (gimp_minor_version == minor)
    && (gimp_micro_version >= micro)))
          {
            return 0;
           }
         else
          {
            printf("\n*** An old version of GIMP (%d.%d.%d) was found.\n",
                   gimp_major_version, gimp_minor_version,
    gimp_micro_version);
            printf("*** You need a version of GIMP newer than %d.%d.%d. The
    latest version of\n",
                   major, minor, micro);
            printf("*** GIMP is always available from ftp://ftp.gimp.org.\n");
            printf("***\n");
            printf("*** If you have already installed a sufficiently new
    version, this error\n");
            printf("*** probably means that the wrong copy of the gimp-config
    shell script is\n");
            printf("*** being found. The easiest way to fix this is to remove
    the old version\n");
            printf("*** of GIMP, but you can also set the GIMP_CONFIG
    environment to point to the\n");
            printf("*** correct copy of gimp-config. (In this case, you will
    have to\n");
            printf("*** modify your LD_LIBRARY_PATH enviroment variable, or
    edit /etc/ld.so.conf\n");
            printf("*** so that the correct libraries are found at
    run-time))\n");
          }
      }
      return 1;
    }

    configure:4713: gcc -o conftest -g -O2 -Wall -I/usr/include/gtk-1.2
    -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
    -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
    -I/usr/X11R6/include -D_GNU_SOURCE conftest.c -ltiff -ljpeg -lz -lm
    -L/usr/lib -lgimpui -lgimp -L/usr/X11R6/lib -lgtk -lgdk -rdynamic
    -lgmodule -lglib -ldl -lXext -lX11 -lm -lgimp -L/usr/lib -lgimpui -lgimp
    -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11
    -lm -lgimp 1>&5
    /usr/lib/libgimpui.so: undefined reference to `dcgettext__'
    /usr/lib/libgimp.so: undefined reference to `PLUG_IN_INFO'
    collect2: ld returned 1 exit status
    configure: failed program was:
    #line 4703 "configure"
    #include "confdefs.h"

    #include <libgimp/gimp.h>
    #include <stdio.h>

    int main() {
     return ((gimp_major_version) || (gimp_minor_version) ||
    (gimp_micro_version));
    ; return 0; }
    ×@@

    -- 
    Jürgen Sauer - AutomatiX GmbH, +49-4209-4699, jojo@automatix.de **
    ** Das Linux Systemhaus - Service - Support - Server - Lösungen **
    http://www.automatix.de to Mail me: remove: -not-for-spawm-     **
    

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Wed Jul 18 2001 - 08:24:03 PDT