2008/11/14 Adrian Panasiuk <adek336@xxxxxxxxx>: > I've got the following problem: > > Cc generated/objects/haiku/x86/release/bin/network/ftpd/ftpcmd.o > /haiku-dane/haiku/src/bin/network/ftpd/ftpcmd.y:138: `USER' undeclared > here (not in a function) > /haiku-dane/haiku/src/bin/network/ftpd/ftpcmd.y:138: initializer > element is not constant > /haiku-dane/haiku/src/bin/network/ftpd/ftpcmd.y:138: (near > initialization for `cmdtab[0].token') > /haiku-dane/haiku/src/bin/network/ftpd/ftpcmd.y:139: `PASS' undeclared > here (not in a function) > /haiku-dane/haiku/src/bin/network/ftpd/ftpcmd.y:139: initializer > element is not constant > /haiku-dane/haiku/src/bin/network/ftpd/ftpcmd.y:139: (near > initialization for `cmdtab[1].token') > /haiku-dane/haiku/src/bin/network/ftpd/ftpcmd.y:140: `ACCT' undeclared > here (not in a function) > /haiku-dane/haiku/src/bin/network/ftpd/ftpcmd.y:140: initializer > element is not constant > ... > Same...on Haiku yacc is correctly generating ftpcmd.c and ftpcmd.h from ftpcmd.y, but either the resulting ftpcmd.c isn't including the generated ftpcmd.h, or it's not being correctly included on the resulting compiler command line. Manually adding an include for ftpcmd.h to ftpcmd.c allows the build to progress further, but I don't know enough about yacc to know what's going wrong here for certain, and especially why it doesn't fail elsewhere. Regards, Rene