[Top][All Lists]

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

Problems compiling a2ps for cygwin - workaround

From: David_Hudson
Subject: Problems compiling a2ps for cygwin - workaround
Date: Thu, 6 Feb 2003 10:09:57 -0800

In the 4.13 series (all versions), the \lib\path-concat.c file has the
following lines:

# define mempcpy(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N)))

This causes an error during compilation.

Making all in intl
make[2]: Entering directory
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
Making all in lib
make[2]: Entering directory
source='path-concat.c' object='path-concat.lo' libtool=yes \
depfile='.deps/path-concat.Plo' tmpdepfile='.deps/path-concat.TPlo' \
depmode=gcc /bin/sh ../auxdir/depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -DLOCALEDIR
=\"/usr/local/share/locale\" -DSYSCONFFILE=\"/usr/local/etc/a2ps.cfg\" -I..
-I../intl -I.    -g -O2  -c -o path-concat.lo path-concat.c
gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFFILE
=\"/usr/local/etc/a2ps.cfg\" -I.. -I../intl -I. -g -O2 -c path-concat.c
-Wp,-MD,.deps/path-concat.TPlo -o path-concat.o
In file included from path-concat.c:30:
/usr/include/string.h:58: parse error before "void"
make[2]: *** [path-concat.lo] Error 1
make[2]: Leaving directory
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
make: *** [all-recursive-am] Error 2

As a quick workaround I changed the problematic lines to:
# define mempcpy(D, S, N) memcpy (D, S, N)

I realize this is a hack. I hope to look at this more closely and find a
better solution. In the meantime, a2ps 4.13b now compiles and appears to
work fine under cygwin. Note that the 4.12 version compiles fine

Anyone know a better workaround? I am interested in getting a2ps included
in the cygwin distribution so it would be good to get this fixed.


reply via email to

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