undefined reference to 'errno'

From: http://www.cyber-sentry.com/index.php?id=46

This error is by far the most often reported installation error seen by users. This is caused because qmail does not contain the errno.h file which causes a problem with glibc 2.3.1 and later.

To fix this Erwin Hoffmann suggests a one-line fix. It works for most DJB software:
cat error.h | sed -es/^extern\ int\ errno\;/#include\ \<errno.h\>/ >error.h

Or, DJB suggests that you edit conf-cc to read:

cc -O2 -include /usr/include/errno.h

If these tips dont help you can find the patches to all of DJB's software here:
Last update:
2006-08-05 10:24
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.