Re: a2ps build fails on OS X: ‘LC_TIME’ undeclared

Masayuki Hatta <[email protected]> Thu, 26 Apr 2007 07:43:35 +0900
Newsgroups gmane.comp.printing.a2ps.devel
Message-ID <[email protected]>
Hi,

>>>>> In <[email protected]>=20
>>>>>	Michael Williams <[email protected]> wrote:

> I'm the maintainer of the a2ps port in MacPorts. We're currently at
> 4.13b, and I see you've recently released a new release candidate of
> a2ps 4.13c, so I thought I'd give building it on OS X a go.

> Out of the box it's not working. config.log and the output of make
> are attached. The final lines of make are:

> gcc -DHAVE_CONFIG_H -DLOCALEDIR=3D\"/usr/local/share/locale\" -=20
> DSYSCONFFILE=3D\"/usr/local/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl - =

> I. -g -O2 -MT jobs.lo -MD -MP -MF .deps/jobs.Tpo -c jobs.c -o jobs.o
> jobs.c: In function =E2=80=98a2ps_job_new=E2=80=99:
> jobs.c:136: error: =E2=80=98LC_TIME=E2=80=99 undeclared (first use in thi=
s function)
> jobs.c:136: error: (Each undeclared identifier is reported only once
> jobs.c:136: error: for each function it appears in.)
> jobs.c:140: error: =E2=80=98LC_CTYPE=E2=80=99 undeclared (first use in th=
is function)
> make[3]: *** [jobs.lo] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2

> Any ideas?

Could you try adding "#include <locale.h>" to src/jobs.c?

Best regards,
MH

--
Masayuki Hatta
Graduate School of Economics, The University of Tokyo