Undefined reference to errno with make of checkpassword

On some flavours of linux errno is a macro rather than an int so you need to alter the error.h file for it to compile

You need to do the following….

mv error.h error.h.orig

sed -e ‘s/extern int errno;/#include /g’ error.h.orig > error.h

9 comments

  1. All I can say is thanks and thank God Google found your blog.

    Regards,

    Thomas Failor
    Houston, Texas

  2. Hey man,

    you saved my day, i updated some debian packages from sarge to etch. Than my pop3 server doesn’t work anymore. I tried to recompile, but this failed with the error message above.

    Thanks man

  3. Just thought I would add, ran into the same problem compiling daemontools on RHEL 4. This worked perfect.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.