Current-Users archive

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

Re: xcvs compile problem (parse error in yacc)



On Sun, May 03, 2009 at 01:40:01AM +0000, Christos Zoulas wrote:
> Touch getdate.c. We need to disable the .y -> .c rule.

I did it. Now the linker complains about not finding the get_date
function.

client.o: In function `handle_mod_time':
/mnt/mist.disk.spare/netbsd-current/src/external/gpl2/xcvs/dist/src/client.c:1309:
 undefined reference to `get_date'
history.o: In function `history':
/mnt/mist.disk.spare/netbsd-current/src/external/gpl2/xcvs/dist/src/history.c:555:
 undefined reference to `get_date'
main.o: In function `format_date_alloc':
/mnt/mist.disk.spare/netbsd-current/src/external/gpl2/xcvs/dist/src/main.c:1470:
 undefined reference to `get_date'
main.o: In function `Make_Date':
/mnt/mist.disk.spare/netbsd-current/src/external/gpl2/xcvs/dist/src/main.c:1206:
 undefined reference to `get_date'
rcs.o: In function `RCS_getrevtime':
/mnt/mist.disk.spare/netbsd-current/src/external/gpl2/xcvs/dist/src/rcs.c:3163: 
undefined reference to `get_date'
server.o:/mnt/mist.disk.spare/netbsd-current/src/external/gpl2/xcvs/dist/src/server.c:2272:
 more undefined references to `get_date' follow
collect2: ld returned 1 exit status

The definition and implementation of get_date() is in getdate.y.

I don't know much about yacc, but shouldn't .y files be parsed and
generate a .c file? Why is it necessary to disable the .y -> .c rule?

Thank you again.

-- 
Silas Silva


Home | Main Index | Thread Index | Old Index