installing Checkpassword

This is a discussion on installing Checkpassword within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; When running make I get the following error. [root@mmctsu3 checkpassword-0.90]# make ../load checkpassword prot.o unix.a ...


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 04-20-2004
Wendel
 
Posts: n/a
Default installing Checkpassword

When running make I get the following error.

[root@mmctsu3 checkpassword-0.90]# make
../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
Reply With Quote
  #2 (permalink)  
Old 04-20-2004
Brian T Glenn
 
Posts: n/a
Default Re: installing Checkpassword

On 20 Apr 2004 07:36:47 -0700, Wendel <wskahl@longlines.com> may have written:
> When running make I get the following error.
>
> [root@mmctsu3 checkpassword-0.90]# make
> ./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


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

--
Brian T Glenn
delink.net Internet Services
Reply With Quote
  #3 (permalink)  
Old 04-21-2004
Wendel
 
Posts: n/a
Default Re: installing Checkpassword

Brian T Glenn <glenn-nntp@this.delink.is.net.invalid> wrote in message news:<slrnc8aggi.ts1.glenn-nntp@ziege.delink.net>...
> On 20 Apr 2004 07:36:47 -0700, Wendel <wskahl@longlines.com> may have written:
> > When running make I get the following error.
> >
> > [root@mmctsu3 checkpassword-0.90]# make
> > ./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

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


Brian, I get the following error on the sed command -
[root@mmctsu3 checkpassword-0.90]# mv error.h error.h.orig
[root@mmctsu3 checkpassword-0.90]# sed -e s/extern int errno;/#include
<errno.h>/g erro.h.orig > error.h
sed: -e expression #1, char 8: Unterminated `s' command
bash: errno.h: No such file or directory

What does that line do to the error.h file? From what I can figure
out you want to add something but I'm not sure what. Thanks for your
help.
Reply With Quote
  #4 (permalink)  
Old 04-21-2004
Wendel
 
Posts: n/a
Default Re: installing Checkpassword

Brian T Glenn <glenn-nntp@this.delink.is.net.invalid> wrote in message news:<slrnc8aggi.ts1.glenn-nntp@ziege.delink.net>...
> On 20 Apr 2004 07:36:47 -0700, Wendel <wskahl@longlines.com> may have written:
> > When running make I get the following error.
> >
> > [root@mmctsu3 checkpassword-0.90]# make
> > ./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

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


Got the patch to work. Thanks
Reply With Quote
  #5 (permalink)  
Old 04-21-2004
Brian T Glenn
 
Posts: n/a
Default Re: installing Checkpassword

On 21 Apr 2004 07:25:17 -0700, Wendel <wskahl@longlines.com> may have written:
> Brian T Glenn <glenn-nntp@this.delink.is.net.invalid> wrote in message news:<slrnc8aggi.ts1.glenn-nntp@ziege.delink.net>...
>> On 20 Apr 2004 07:36:47 -0700, Wendel <wskahl@longlines.com> may have written:
>> > When running make I get the following error.
>> >
>> > [root@mmctsu3 checkpassword-0.90]# make
>> > ./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

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

>
> Brian, I get the following error on the sed command -
> [root@mmctsu3 checkpassword-0.90]# mv error.h error.h.orig
> [root@mmctsu3 checkpassword-0.90]# sed -e s/extern int errno;/#include
><errno.h>/g erro.h.orig > error.h
> sed: -e expression #1, char 8: Unterminated `s' command
> bash: errno.h: No such file or directory
>
> What does that line do to the error.h file? From what I can figure
> out you want to add something but I'm not sure what. Thanks for your
> help.


I forgot to include the quoting around the expression, try this:

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

It replaces all instances of the first expressions with the second. The
basic answer is that in later versions of glibc, errno is now a macro
instead of an int variable, so the declaration must be changed.

Good luck,
--
Brian T Glenn
delink.net Internet Services
Reply With Quote
Reply


Thread Tools
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

vB 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 04:02 PM.


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