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 thoughts on “Undefined reference to errno with make of checkpassword

  1. 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

Leave a Reply

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.