TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

more compile help -- imsp



Thanks for the compiling help. I acutally gave up on acap and am trying
imsp-1.5a6. First my sucess stories, then my problems.

I ran configure and then make all and I get:

imsp_server.c: In function `imsp_set_signals':
imsp_server.c:312: `SIGEMT' undeclared (first use in this function)
imsp_server.c:312: (Each undeclared identifier is reported only once
imsp_server.c:312: for each function it appears in.)
imsp_server.c:316: `SIGSYS' undeclared (first use in this function)
make[1]: *** [imsp_server.o] Error 1

so I removed line 312 and 316 from imsp_server.c and it appears to work.
Is there a better thing to do? The lines are about wiping passwords before
a core dump, and since imsp will only be used locally, this isn't a big
deal if it doesn't dump the password.

then it compiles for a while and I get:

gcc -g -O2  -o cyrus-imspd main.o dispatch.o imsp_server.o option.o
syncdb.o adate.o bb.o im_util.o imap_client.o abook.o authize.o alock.o
login_unix_shadow.o proxy_unix_shadow.o ../lib/libcyrus.a  -lresolv -ldb
-lndbm 
login_unix_shadow.o: In function `login_plaintext':
/home/lueyb/install/cyrus-imspd-v1.5a6/imsp/login_unix_shadow.c:46:
undefined reference to `crypt'
make[1]: *** [cyrus-imspd] Error 1

login_unix_shadow.c looks like this around line 46:

int
login_plaintext(user, pass, reply)
char *user;
char *pass;
char **reply;
{
    struct spwd *pwd;
    extern char *crypt();

    pwd = getspnam(user);
    if (!pwd) return 1;

    if (strcmp(pwd->sp_pwdp, crypt(pass, pwd->sp_pwdp)) != 0) {   -- line46
        *reply = "wrong password";
        return 1;
    }

    return 0;
}


am I missing some crypt library or something? I have libcrypt.a and .so
also libcrypt.so.1 and libcrypt-2.1.1.so 

Thanks for all the help,

Ben

Ben Luey
lueyb@carleton.edu
ICQ: 19144397

There is a theory which states that if ever anyone discovers exactly what the
Universe is for and why it is here, it will instantly disappear and be replaced
by something even more bizarre and inexplicable. 

There is another which states that this has already happened.    
     -- Douglas Adams