# pdflatex with index suddenly fails with undefined control sequences

The document I have been working on has built the index fine in the past. I have since made some changes to Part and Chapters, and re-arranged things in the preamble a little. Now pdflatex, mkindex, pdflatex fails with the following error:

Undefined control sequence. l.3  \makeatletter\scan@allowedfalse
Undefined control sequence. l.6   \item Acceptance set\pfill
Undefined control sequence. l.7 ...cceptance setand demand for insurance\pfill


I am using the index package as so in my preamble (I have tried moving it around heaps with no effect)

the preamble is here: http://pastebin.com/ng47YuZh

TIA

-
There is probable some index item that contains something wrong. Check all your \index, remove any .ind and .idx files and try again. – Caramdir Apr 8 '11 at 1:52
It seems that this is a problem with my texlive install (Ubuntu 11.04). The index fails with even the simplest document 8( – SpmP Apr 9 '11 at 7:41
Why don't you show such a simple document? Your example does not compile (it has no text and depends on tcilatex and other files not in general distribution). – egreg Apr 9 '11 at 8:14
pastebin.com/hhdaHWWB – SpmP Apr 9 '11 at 8:21
It doesn't fail on my machine; what's the error on yours? – egreg Apr 9 '11 at 8:30

I find the same problem, my mistake was to use mkindex instead of makeindex. Using makeindex solve the problem.