error when compile checkpassword-0.90.tar.gz

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


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-21-2004
Jose Araujo
 
Posts: n/a
Default error when compile checkpassword-0.90.tar.gz

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?



Reply With Quote
  #2 (permalink)  
Old 07-21-2004
AK
 
Posts: n/a
Default Re: error when compile checkpassword-0.90.tar.gz

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:14 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0