Hey everyone...

I have a C file that I can't compile on a new Linux web server.  The cgi
script uses crypt (along with a few other things) to change a user's
password.  The users and passwords are used to authenticate people to a
certain web page so this isn't a utility for the regular OS users.

The first problem is with crypt.  I did a man crypt on the Linux box and it
told me what to #include in order to use that function and I've modified the
source accordingly.  It compiles fine but gives me an "undefined reference
to crypt in a temporary .o file created in /tmp.

Here's the makefile:

change-passwd.cgi: chage-passwd.c
        gcc change-passwd.c util.o

There is also a call to uswitch in the source file.  I did a man uswitch on
the old box (Digital Unix v3.0) and this is OS specific.  Do I even need
this on the Linux box....not real sure what it is doing?

So:

1. Does someone know of a better base source file I can start with to
accomplish the same purpose on the Linux box?
2. Is there something I can do to fix the one I have?

Thanks for the help.

Tim.
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to