Yoshiki Hayashi <yoshiki(a)xemacs.org> writes:
> COMMIT
>
> Yoshiki Hayashi <yoshiki(a)xemacs.org> writes:
>
> > APPROVE
> >
> > Makefile.in.in portion is recommended for 21.4. XEmacs
> > change is #ifndef PTR part and it's already sent to the
> > maintainer.
> >
> > 2001-12-19 Yoshiki Hayashi <yoshiki(a)xemacs.org>
> >
> > * Makefile.in.in (etags_args): Define EMACS_NAME to XEmacs.
> >
> > * etags.c: Sync with pot version 14.28.
> > Additional change for XEmacs to define PTR macro.
> >
> > 2001-12-12 Francesco Potorti` <pot(a)gnu.org>
> >
> > * etags.c (PHP_functions): New function by Diez B. Roggisch,
> > heavily adapted by me, for parsing PHP.
> > (LOOKING_AT): New macro.
> > (Perl_functions, Python_functions, PHP_functions)
> > (Scheme_functions, Texinfo_nodes): Use it.
> > (Perl_functions): Use strneq.
> > (prolog_pred): Renamed to prolog_pr.
> > (prolog_pr): Recognise Prolog rules (thanks to Geert Kloosterman)
> > in addition to predicates.
> > [ETAGS_REGEXPS] [!HAVE_CONFIG_H] [__CYGWIN__]: Prevent
> > unmodified compile, as Cygwin's regex.h is incompatible with us
> > (thanks to Markus Hoenicka).
> > [!HAVE_CONFIG_H] [!__STDC__]: #define const as the empty string.
> >
> > 2001-12-19 Yoshiki Hayashi <yoshiki(a)xemacs.org>
> >
> > * xemacs/programs.texi: Etags update from Francesco.
>
> --
> Yoshiki Hayashi
>
>
Unfortunately, I can no longer build etags on SunOS-4.1 or SunOS-5.5:
On SunOS-4.1 (sparc), here is the configuration:
# /u/shelton/new/src/xemacs-21.5-2001-12-20/configure --prefix=/u/shelton/new/SunOS-4.1/xemacs-21.5-2001-12-20 --with-gcc --site-includes=/u/shelton/new/SunOS-4.1/include --site-libraries=/u/shelton/new/SunOS-4.1/lib --infopath=/u/shelton/new/info --with-mule=no --compiler=gcc '--cflags=-O2 -pipe -ffast-math -fno-exceptions' --with-dialogs=no --with-widgets=no --package-path=/u/shelton/new/site-packages::/u/shelton/new/xemacs-packages --debug=no --error-checking=none
... and here is the result:
gcc -O2 -pipe -ffast-math -fno-exceptions -I. -I../src -I/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src -I/u/shelton/new/src/xemacs-21.5-2001-12-20/src -DHAVE_CONFIG_H -I/u/shelton/new/SunOS-4.1/include -DEMACS_NAME='"XEmacs"' -DVERSION='"21.5-b3"' /u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c getopt.o getopt1.o regex.o -L/u/shelton/new/SunOS-4.1/lib -Xlinker -Bstatic -ltermcap -lkvm -lm -o etags
/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c:223: parse error before `__P'
/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c:234: parse error before `Lang_function'
/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c:234: warning: no semicolon at end of struct or union
/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c:238: parse error before `}'
/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c:238: warning: data definition has no type or storage class
/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c:269: parse error before `__P'
...
/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c:5855: warning: previous implicit declaration of `malloc'
make[1]: *** [etags] Error 1
make[1]: Leaving directory `/tmp_mnt/u/shelton/new/build/SunOS-4.1/xemacs-21.5-2001-12-20/lib-src'
make: *** [lib-src] Error 2
On SunOS-5.5 (sparc):
# /u/shelton/new/src/xemacs-21.5-2001-12-20/configure --prefix=/u/shelton/new/SunOS-5.5/xemacs-21.5-2001-12-20 --with-gcc --site-includes=/u/shelton/new/SunOS-5.5/include --site-libraries=/u/shelton/new/SunOS-5.5/lib --infopath=/u/shelton/new/info --with-mule=no --compiler=gcc '--cflags=-O2 -pipe -ffast-math -fno-exceptions' --with-dialogs=no --with-widgets=no --package-path=/u/shelton/new/site-packages::/u/shelton/new/xemacs-packages --debug=no --error-checking=none
... and here is the (similar) result:
gcc -O2 -pipe -ffast-math -fno-exceptions -I. -I../src -I/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src -I/u/shelton/new/src/xemacs-21.5-2001-12-20/src -DHAVE_CONFIG_H -I/u/shelton/new/SunOS-5.5/include -DEMACS_NAME='"XEmacs"' -DVERSION='"21.5-b3"' /u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c getopt.o getopt1.o regex.o -fno-gnu-linker -L/u/shelton/new/SunOS-5.5/lib -L/usr/ccs/lib -Xlinker -R/u/shelton/new/SunOS-5.5/lib:/usr/dt/lib:/usr/openwin/lib -lcurses -lkvm -lkstat -lm -lsocket -lnsl -lelf -lgen -ldl -o etags
/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c:223: parse error before `__P'
/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c:234: parse error before `Lang_function'
/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c:234: warning: no semicolon at end of struct or union
/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c:238: parse error before `}'
/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c:238: warning: data definition has no type or storage class
/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c:269: parse error before `__P'
/u/shelton/new/src/xemacs-21.5-2001-12-20/lib-src/etags.c:270: parse error before `__P'
I haven't had a chance to try this on my home Linux system.
- vin