This is a discussion on error when compile checkpassword-0.90.tar.gz within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; help, when I compile checkpassword-0.90.tar.gz with make setup check in the end I have this: ../compile ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
help,
when I compile checkpassword-0.90.tar.gz with make setup check in the end I have this: ../compile str_start.c ../makelib byte.a byte_copy.o byte_cr.o byte_diff.o \ str_chr.o str_len.o str_start.o ( ( ./compile tryshadow.c && \ ../load tryshadow -lshadow ) >/dev/null 2>&1 \ && echo -lshadow || exit 0 ) > shadow.lib rm -f tryshadow.o tryshadow ( ( ./compile trycrypt.c && \ ../load trycrypt -lcrypt ) >/dev/null 2>&1 \ && echo -lcrypt || exit 0 ) > crypt.lib rm -f trycrypt.o trycrypt ../load checkpassword prot.o unix.a byte.a `cat \ shadow.lib` `cat crypt.lib` `cat s.lib` checkpassword.o(.text+0xfa): In function `main': : undefined reference to `errno' checkpassword.o(.text+0x23f): In function `main': : undefined reference to `errno' checkpassword.o(.text+0x263): In function `main': : undefined reference to `errno' unix.a(pathexec_run.o)(.text+0x10e): In function `pathexec_run': : undefined reference to `errno' unix.a(pathexec_run.o)(.text+0x152): In function `pathexec_run': : undefined reference to `errno' unix.a(alloc.o)(.text+0x48): more undefined references to `errno' follow collect2: ld returned 1 exit status make: *** [checkpassword] Error 1 what can I do? |
|
|||
|
Jose Araujo wrote:
> help, > > when I compile checkpassword-0.90.tar.gz with > make setup check > > in the end I have this: > > ./compile str_start.c > ./makelib byte.a byte_copy.o byte_cr.o byte_diff.o \ > str_chr.o str_len.o str_start.o > ( ( ./compile tryshadow.c && \ > ./load tryshadow -lshadow ) >/dev/null 2>&1 \ > && echo -lshadow || exit 0 ) > shadow.lib > rm -f tryshadow.o tryshadow > ( ( ./compile trycrypt.c && \ > ./load trycrypt -lcrypt ) >/dev/null 2>&1 \ > && echo -lcrypt || exit 0 ) > crypt.lib > rm -f trycrypt.o trycrypt > ./load checkpassword prot.o unix.a byte.a `cat \ > shadow.lib` `cat crypt.lib` `cat s.lib` > checkpassword.o(.text+0xfa): In function `main': > : undefined reference to `errno' > checkpassword.o(.text+0x23f): In function `main': > : undefined reference to `errno' > checkpassword.o(.text+0x263): In function `main': > : undefined reference to `errno' > unix.a(pathexec_run.o)(.text+0x10e): In function `pathexec_run': > : undefined reference to `errno' > unix.a(pathexec_run.o)(.text+0x152): In function `pathexec_run': > : undefined reference to `errno' > unix.a(alloc.o)(.text+0x48): more undefined references to `errno' follow > collect2: ld returned 1 exit status > make: *** [checkpassword] Error 1 > > what can I do? > > > You have gcc version 3.+ You must replace extern int errno; with #include <errno.h> Unless you follow the recommended patches at http://www.qmail.org/top.html you will run into the same problem when you attempt to compile the other DJB applications. AK |