This is the place.  Thank you!

Alexei Kotchourko wrote:

> Hello all,
>
> I am newbie in OpenDX and may be this is not a correct place
> to send my message.
>
> I tried to compile sources from CVS repository on freebsd-3.4
> and found few places which crashes compilation. Probably it can be
> usefull for somebody.
>
> The patches which I applied:
>
> 1. -----
>
> --- dx/src/uipp/base/UIConfig.h.orig    Mon Dec 13 14:45:19 1999
> +++ dx/src/uipp/base/UIConfig.h Mon Dec 13 14:47:41 1999
> @@ -88,7 +88,7 @@
>  */
>  #if defined(sgi)
>  # define EXECVE_2ND_TYPE char **
> -#elif defined(hp700) || defined(aviion) || defined(ibm6000) || 
> defined(solaris) || defined(alphax) || defined(linux)
> +#elif defined(hp700) || defined(aviion) || defined(ibm6000) || 
> defined(solaris) || defined(alphax) || defined(linux) || defined(freebsd)
>  # define EXECVE_2ND_TYPE char * const*
>  #else
>  # define EXECVE_2ND_TYPE const char **
> @@ -96,7 +96,7 @@
>
>  #if defined(sun4) || defined(sgi)
>  # define EXECVE_3RD_TYPE char **
> -#elif defined(hp700) || defined(aviion) || defined(ibm6000) || 
> defined(solaris) || defined(alphax) || defined(linux)
> +#elif defined(hp700) || defined(aviion) || defined(ibm6000) || 
> defined(solaris) || defined(alphax) || defined(linux) || defined(freebsd)
>  # define EXECVE_3RD_TYPE char * const*
>  #else
>  # define EXECVE_3RD_TYPE const char **
>
> 2. ------
>
> --- dx/src/uipp/dxuilib/Network.C.orig  Mon Dec 13 14:06:11 1999
> +++ dx/src/uipp/dxuilib/Network.C       Mon Dec 13 15:08:57 1999
> @@ -1190,7 +1190,7 @@
>  extern
>  FILE* yyin;                    /* parser input stream    */
>
> -#if defined(linux)  || defined(cygwin)
> +#if defined(linux)  || defined(cygwin) || defined (freebsd)
>  int yylineno;
>  #else
>  extern int yylineno;                   /* lexer line number      */
>
> 3. ------- And this last one looks like a bug ?
>
> --- dx/src/uipp/prompter/Browser.C.orig Mon Dec 13 14:06:14 1999
> +++ dx/src/uipp/prompter/Browser.C      Mon Dec 13 15:15:11 1999
> @@ -1537,7 +1537,7 @@
>
>         int i;
>         for (i = 0; i < STRLEN(buf); i++)
> -           if (! regexec((regexp *)search_for, buf[i]))
> +           if (! regexec((regexp *)search_for, buf + i))
>                 break;
>
>         if (i)
> @@ -1702,7 +1702,7 @@
>             found = 1;
>
>             for (i = STRLEN(buf)-1; i >= 0; i--)
> -               if (! regexec((regexp *)search_for, buf[i]))
> +               if (! regexec((regexp *)search_for, buf + i))
>                     break;
>
>             offset = i + 1;
>
> -- A. Kotchourko

Reply via email to