[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:
#ifndef HAVE_MEMPCPY
# define mempcpy(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N)))
#endif
This causes an error during compilation.
Making all in intl
make[2]: Entering directory
`/cygdrive/c/WINDOWS/Desktop/Downloads/Productivity/a2pstmp/a2ps-4.13/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/cygdrive/c/WINDOWS/Desktop/Downloads/Productivity/a2pstmp/a2ps-4.13/intl'
Making all in lib
make[2]: Entering directory
`/cygdrive/c/WINDOWS/Desktop/Downloads/Productivity/a2pstmp/a2ps-4.13/lib'
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
`/cygdrive/c/WINDOWS/Desktop/Downloads/Productivity/a2pstmp/a2ps-4.13/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/cygdrive/c/WINDOWS/Desktop/Downloads/Productivity/a2pstmp/a2ps-4.13'
make: *** [all-recursive-am] Error 2
As a quick workaround I changed the problematic lines to:
#ifndef HAVE_MEMPCPY
# define mempcpy(D, S, N) memcpy (D, S, N)
#endif
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
out-of-the-box.
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.
Thanks
Dave
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Problems compiling a2ps for cygwin - workaround,
David_Hudson <=