axiom-developer
[Top][All Lists]
Advanced

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

Re: [Axiom-developer] viewman and hyper on Mac OS X


From: Waldek Hebisch
Subject: Re: [Axiom-developer] viewman and hyper on Mac OS X
Date: Sat, 4 Nov 2006 20:08:32 +0100 (CET)

Humberto Ortiz-Zuazaga wrote:
> Sat Nov  4 14:06:48 GMT+4 2006  Humberto Ortiz-Zuazaga
> <address@hidden>
>   * regex-mac
> diff -rN -u old-axiom-darcs/src/hyper/hthits.pamphlet
> new-axiom-darcs/src/hyper/hthits.pamphlet
> --- old-axiom-darcs/src/hyper/hthits.pamphlet   2006-11-04
> 14:23:58.000000000 -0400
> +++ new-axiom-darcs/src/hyper/hthits.pamphlet   2006-11-04
> 14:23:59.000000000 -0400
> @@ -71,7 +71,12 @@
>  /* AIX3 regexp.h includes NLregexp which we don't want */
>  #undef _XOPEN_SOURCE
>  #endif
> +#if !defined(MACOSXplatform)
> +/* Mac OS X doesn't have regexp.h */
>  # include <regexp.h>
> +#else
> +#include <regex.h>
> +#endif
> 
>  /*
>   * Global variables set according to the command line.
> 
> Hyper still fails to build:
> 
> 13 making /Users/humberto/src/axiom-darcs/src/hyper
> gcc -O2 -fno-strength-reduce -Wall -D_GNU_SOURCE -DMACOSXplatform
>       -I/usr/include -I/usr/include/sys
> -I/Users/humberto/src/axiom-darcs/src/include -I. -I/usr/X11R6/include
>   -c -o hthits.o hthits.c
> hthits.c: In function 'main':
> hthits.c:121: warning: implicit declaration of function 'compile'
> hthits.c: In function 'searchPage':
> hthits.c:365: warning: implicit declaration of function 'step'
> hthits.c:368: error: 'loc2' undeclared (first use in this function)
> hthits.c:368: error: (Each undeclared identifier is reported only once
> hthits.c:368: error: for each function it appears in.)
> make[2]: *** [hthits.o] Error 1
> make[1]: *** [hyper/stamp] Error 2
> make: *** [all-recursive] Error 1
> 
> I can't figure out what loc2 is supposed to be, I can't see any
> definition in any of the other pamphlets in the hyper directory.
> 

regex.h is not a plug-in replacemnt for regexp.h -- the headers are
incompatible.  In prarticular regexp.h declares functions 'compile',
'step' and variable 'loc2' while interface exported by 'regex.h'
is quite different.

AFAICS we should rewrite hthits.c to use regex.h on all platforms,
but this slightly more then changing include line.

-- 
                              Waldek Hebisch
address@hidden 




reply via email to

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