Compilation problem with a2ps-4.13
"Ackersviller, Paul (TOR)" <[email protected]> Thu, 23 Mar 2006 09:46:23 -0600
| Newsgroups | gmane.comp.printing.a2ps.bugs |
|---|---|
| Message-ID | <7F11F373F7DCD311806200805FBEB72103C9671E@TORMS001> |
diff -C1 -r1.1 quotearg.c *** quotearg.c 2006/03/22 21:40:44 1.1 --- quotearg.c 2006/03/23 15:20:55 *************** Howdy, Thanks for a2ps, among all the other great software tools. I've just compiled it for HP-UX 11.11 using gcc 3.4.5, and need to change it as follows. This may not be the best fix, but at least is one that works. I also made a try with HP's compilers, but without success (however I think it's a bug in their C compiler that it doesn't like static inline functions). diff -C1 -r1.1 lib/quotearg.c *** lib/quotearg.c 2006/03/22 21:40:44 1.1 --- lib/quotearg.c 2006/03/23 15:20:55 *************** *** 61,62 **** --- 61,63 ---- #if HAVE_MBRTOWC && HAVE_WCHAR_H + # include <stdarg.h> /* the <wchar.h> with gcc-3.4.5 seems to need this */ # include <wchar.h> Below is the error before the fix. Making all in lib source='quotearg.c' object='quotearg.lo' libtool=yes \ depfile='.deps/quotearg.Plo' tmpdepfile='.deps/quotearg.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. -D_HPUX_SOURCE -D_INCLUDE__STDC_A1_SOURCE -D_INCLUDE_XOPEN_SOURCE_500 -D_XOPEN_UNIX -O2 -g -mpa-risc-2-0 -c -o quotearg.lo quotearg.c gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFFILE=\"/usr/local/etc/a2ps.cfg\" -I.. -I../intl -I. -D_HPUX_SOURCE -D_INCLUDE__STDC_A1_SOURCE -D_INCLUDE_XOPEN_SOURCE_500 -D_XOPEN_UNIX -O2 -g -mpa-risc-2-0 -c quotearg.c -Wp,-MD,.deps/quotearg.TPlo -o quotearg.o In file included from quotearg.c:62: /usr/local/gnu/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/3.4.5/include/wchar.h:87: error: syntax error before "va_list" /usr/local/gnu/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/3.4.5/include/wchar.h:88: error: syntax error before "va_list" /usr/local/gnu/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/3.4.5/include/wchar.h:89: error: syntax error before "va_list" ******* Confidentiality Notice ******* ESI Canada -- Optimizing the value of drug and dental benefits This email, its electronic document attachments, and the contents of its website linkages may contain confidential health information. This information is intended solely for use by the individual or entity to whom it is addressed. If you have received this information in error, please notify the sender immediately and arrange for the prompt destruction of the material and any accompanying attachments. ******* Avis de confidentialité ******* ESI Canada -- Optimiser la valeur des régimes d'assurance médicaments et dentaires Ce courriel ainsi que tout document y étant joint de même que le contenu des liens vers des sites Web peuvent réunir des renseignements confidentiels sur la santé. Cette information s'adresse uniquement à l'usager ou à l'organisation auxquels elle est destinée. Si vous avez reçu ce message par erreur, veuillez en aviser l'expéditeur immédiatement et procéder à la suppression du document et des fichiers joints sans tarder.