fix entry_dup undeclared