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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|