Re: 'cal' month field, 1.3.7*, libc5.2.18

James L. McGill (fishbowl@pic.net)
Fri, 5 Apr 1996 17:50:32 +0000 (GMT)


On Thu, 4 Apr 1996, Kevin Buettner wrote:

kev} James L. McGill wrote:
kev}
kev} > The 'cal' function:
kev} >
kev} > # cal
kev} > (null) 1996
kev} >
kev} > 1 2 3 4 5 6
kev} > 7 8 9 10 11 12 13
kev} > 14 15 16 17 18 19 20
kev} > 21 22 23 24 25 26 27
kev} > 28 29 30
kev}
kev} I think it's a libc issue. I don't know why this happens, but I found that
kev} simply recompiling "cal" fixed the problem for me.
kev}

And you had no problem compiling "cal" ?

make[1]: Entering directory `/usr/src/util-linux-2.5/misc-utils'
gcc -c -pipe -O2 -m486 -fomit-frame-pointer -I. -I../bsd -DSBINDIR=\"/sbin\"
-DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" cal.c -o cal.o
cal.c:61: localeinfo.h: No such file or directory
cal.c: In function `headers_init':
cal.c:217: `_time_info' undeclared (first use this function)
cal.c:217: (Each undeclared identifier is reported only once
cal.c:217: for each function it appears in.)
make[1]: *** [cal.o] Error 1
make[1]: Leaving directory `/usr/src/util-linux-2.5/misc-utils'
make: *** [all] Error 1
ikyr:/usr/src/util-linux-2.5$