ld: Unsatisfied symbol "options" in file ./libssh.a[hostfile.o]

kai_yang2008 kai_yang2008 at 163.com
Mon Feb 22 20:45:11 EST 2010

Hi All,
I have want to add a option in ssh_config to co-work with ldap.But when I am compiling , i was encountered a
ld error, which says "cc -o ssh-keygen ssh-keygen.o -Wl,+nodefaultrpath -L. -Lopenbsd-compat/ -lssh -lopenbsd-compat  -lz -lnsl -lxnet -lsec -lgssapi_krb5 -lkrb5 -lpthread
ld: Unsatisfied symbol "options" in file ./libssh.a[hostfile.o]
1 errors."
The following is my codes:
I have externed Options options like " extern Options options" in hostfile.c
extern Options options
static HostStatus
check_host_in_hostfile_by_key_or_type(const char *filename,
    const char *host, const Key *key, int keytype, Key *found, int *numret)
        FILE *f;
        char line[8192];
        int linenum = 0;
        u_int kbits;
        char *cp, *cp2, *hashed_host;
        HostStatus end_return;
        debug3("check_host_in_hostfile: filename %s", filename);
        /* Open the file containing the list of known hosts. */
        f = fopen(filename, "r");
        if (!f)
                        return check_hostkey_in_ldap(host,key,HOST_NEW);

                return HOST_NEW;
So any ideas about this?
Kai Yang

More information about the openssh-unix-dev mailing list