paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] Problem in linux


From: Roger D. Vargas
Subject: Re: [paragui-users] Problem in linux
Date: Wed, 3 Jul 2002 07:41:56 -0400 (CDT)

On 3 Jul 2002, Alexander Pipelka wrote:

> Am Mit, 2002-07-03 um 02.25 schrieb Roger D. Vargas:
> > On Tue, 2 Jul 2002, Andrew Ford wrote:
> >
> > > Problem solved :)
> > Yes, but how can i make my configure scripts work?
>
> Please post the contents of config.log (only the tail) after running
> configure.
Here are the last lines:


configure:1054: checking for paragui-config
configure:1089: checking for PARAGUI - version >= 1.0.0
configure:1187: c++ -o conftest  -I/usr/local/include 
-I/usr/local/include/paragui -I/usr/local/include/freetype2 
-I/usr/local/include -I/usr/local/include/SDL -D_REENTRANT   conftest.C  
-L/usr/local/lib -lparagui -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL 
-lpthread -lz -lSDL_image -L/usr/local/lib -lfreetype -lstdc++ 1>&5
configure: failed program was:
#line 1120 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit(int) throw();
#endif

#include "paragui.h"
#include "pgapplication.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char*
my_strdup (char *str)
{
  char *new_str;

  if (str)
    {
      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
      strcpy (new_str, str);
    }
  else
    new_str = NULL;

  return new_str;
}

int main (int argc, char *argv[])
{
  int major, minor, micro;
  char *tmp_version;

  PG_Application app;

  /* This hangs on some systems (?)
  system ("touch conf.paraguitest");
  */
  { FILE *fp = fopen("conf.paraguitest", "a"); if ( fp ) fclose(fp); }

  /* HP/UX 9 (address@hidden) writes to sscanf strings */
  tmp_version = my_strdup("1.0.0");
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
     printf("%s, bad version string\n", "1.0.0");
     exit(1);
   }

   if ((1 > major) ||
      ((1 == major) && (0 > minor)) ||
      ((1 == major) && (0 == minor) && (2 >= micro)))
    {
      return 0;
    }
  else
    {
      printf("\n*** 'paragui-config --version' returned %d.%d.%d, but the 
minimum version\n", 1, 0, 2);
      printf("*** of PARAGUI required is %d.%d.%d. If paragui-config is 
correct, then it is\n", major, minor, micro);
      printf("*** best to upgrade to the required version.\n");
      printf("*** If paragui-config was wrong, set the environment variable 
PARAGUI_CONFIG\n");
      printf("*** to point to the correct copy of paragui-config, and remove 
the file\n");
      printf("*** config.cache before re-running configure\n");
      return 1;
    }
}


configure:1231: c++ -o conftest  -I/usr/local/include 
-I/usr/local/include/paragui -I/usr/local/include/freetype2 
-I/usr/local/include -I/usr/local/include/SDL -D_REENTRANT   conftest.C  
-L/usr/local/lib -lparagui -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL 
-lpthread -lz -lSDL_image -L/usr/local/lib -lfreetype -lstdc++ 1>&5


--
Roger D. Vargas         | El sistema se apagara en 5 segundos.
ICQ: 117641572          | Salvese el que pueda!
Linux User: 180787      |




reply via email to

[Prev in Thread] Current Thread [Next in Thread]