Re: uninstall/reinstall checkpassword troubles "errno"

"Chad B" <[email protected]> Fri, 02 Apr 2004 20:24:57 -0800
Newsgroups gmane.comp.djb.checkpassword
Message-ID <[email protected]>
Hello, thanks for the help, but I patched (see entire patch log below) and I 
get the same errno errors:

[root@localhost downloads]# rpmbuild --rebuild 
checkpassword-0.90-2patch.src.rpm
Installing checkpassword-0.90-2patch.src.rpm
warning: user mw does not exist - using root
warning: group mw does not exist - using root
warning: user mw does not exist - using root
warning: group mw does not exist - using root
warning: user mw does not exist - using root
warning: group mw does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.9628
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf checkpassword-0.90
+ /usr/bin/gzip -dc /usr/src/RPM/SOURCES/checkpassword-0.90.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd checkpassword-0.90
+ echo 'Patch #0 (checkpassword-0.90.errno.patch):'
Patch #0 (checkpassword-0.90.errno.patch):
+ patch -p1 -s
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.9628
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd checkpassword-0.90
+ echo /
+ make
( cat warn-auto.sh; \
echo 'main="$1"; shift'; \
echo exec "`head -1 conf-ld`" \
'-o "$main" "$main".o ${1+"$@"}' \
) > load
chmod 755 load
sh find-systype.sh > systype
sh print-cc.sh > compile
chmod 755 compile
( ( ./compile tryspnam.c && ./load tryspnam ) >/dev/null \
2>&1 \
&& echo \#define HASGETSPNAM 1 || exit 0 ) > hasspnam.h
rm -f tryspnam.o tryspnam
( ( ./compile tryslib.c && \
./load tryslib -ls ) >/dev/null 2>&1 \
&& echo -ls || exit 0 ) > s.lib
rm -f tryslib.o tryslib
( ( ./compile tryuserpw.c \
  && ./load tryuserpw `cat s.lib` ) >/dev/null 2>&1 \
&& echo \#define HASGETUSERPW 1 || exit 0 ) > hasuserpw.h
rm -f tryuserpw.o tryuserpw
./compile checkpassword.c
cat warn-auto.sh choose.sh \
| sed s}HOME}"`head -1 conf-home`"}g \
>choose
chmod 755 choose
./compile chkshsgr.c
./load chkshsgr
./chkshsgr || ( cat warn-shsgr; exit 1 )
./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
./compile prot.c
( cat warn-auto.sh; \
echo 'main="$1"; shift'; \
echo 'rm -f "$main"'; \
echo 'ar cr "$main" ${1+"$@"}'; \
case "`cat systype`" in \
sunos-5.*) ;; \
unix_sv*) ;; \
irix64-*) ;; \
irix-*) ;; \
dgux-*) ;; \
hp-ux-*) ;; \
sco*) ;; \
*) echo 'ranlib "$main"' ;; \
esac \
) > makelib
chmod 755 makelib
./compile alloc.c
./compile alloc_re.c
./compile buffer.c
./compile buffer_2.c
./compile buffer_copy.c
./compile buffer_get.c
./compile buffer_put.c
./compile env.c
./compile error.c
./compile error_str.c
./compile open_read.c
./compile open_trunc.c
./compile pathexec_env.c
./compile pathexec_run.c
./compile stralloc_cat.c
./compile stralloc_catb.c
./compile stralloc_cats.c
./compile stralloc_eady.c
./compile stralloc_opyb.c
./compile stralloc_opys.c
./compile stralloc_pend.c
./compile strerr_die.c
./compile strerr_sys.c
./makelib unix.a alloc.o alloc_re.o buffer.o buffer_2.o \
buffer_copy.o buffer_get.o buffer_put.o env.o error.o \
error_str.o open_read.o open_trunc.o pathexec_env.o \
pathexec_run.o prot.o stralloc_cat.o stralloc_catb.o \
stralloc_cats.o stralloc_eady.o stralloc_opyb.o \
stralloc_opys.o stralloc_pend.o strerr_die.o strerr_sys.o
./compile byte_copy.c
./compile byte_cr.c
./compile byte_diff.c
./compile str_chr.c
./compile str_len.c
./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`
./compile install.c
./compile hier.c
./compile auto-str.c
auto-str.c:9: warning: conflicting types for built-in function `puts'
./load auto-str unix.a byte.a
./auto-str auto_home `head -1 conf-home` > auto_home.c
./compile auto_home.c
./load install hier.o auto_home.o unix.a byte.a
./compile instcheck.c
./load instcheck hier.o auto_home.o unix.a byte.a
++ gcc -v
++ tail -1
+ COMPILER=Compiler: gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
++ uname -m
+ HARDWARE=Hardware: i686
++ rpm -q glibc
+ LIBRARY=Library: glibc-2.3.3-10mdk
++ uname -sr
+ OSVERSION=OSversion: Linux 2.6.3-4mdksecure
+ PACKAGER=Packager: [email protected]
++ cat /etc/redhat-release
+ REDHATRELEASE=RedHat release: Mandrake Linux release 10.0 (Community) for 
i586
++ rpm -q rpm
+ RPMVERSION=rpm version: rpm-4.2.2-7mdk
+ echo 'The checkpassword rpm was created in the following environment:
'
+ echo 'Compiler: gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
Hardware: i686
Library: glibc-2.3.3-10mdk
OSversion: Linux 2.6.3-4mdksecure
Packager: [email protected]
RedHat release: Mandrake Linux release 10.0 (Community) for i586
rpm version: rpm-4.2.2-7mdk

The packager above has made a good-faith attempt to ensure
that the package behaves correctly.

Since this rpm applies a patch to the sources (to fix an
incompatibility in errno declaration), you cannot distribute it
publicly.
'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.17087
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd checkpassword-0.90
+ rm -rf /var/tmp/checkpassword-0.90-root
+ mkdir -p /var/tmp/checkpassword-0.90-root//bin
+ echo /var/tmp/checkpassword-0.90-root/
+ rm install instcheck
+ make install instcheck
cat warn-auto.sh choose.sh \
| sed s}HOME}"`head -1 conf-home`"}g \
>choose
chmod 755 choose
./chkshsgr || ( cat warn-shsgr; exit 1 )
./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
./compile prot.c
./makelib unix.a alloc.o alloc_re.o buffer.o buffer_2.o \
buffer_copy.o buffer_get.o buffer_put.o env.o error.o \
error_str.o open_read.o open_trunc.o pathexec_env.o \
pathexec_run.o prot.o stralloc_cat.o stralloc_catb.o \
stralloc_cats.o stralloc_eady.o stralloc_opyb.o \
stralloc_opys.o stralloc_pend.o strerr_die.o strerr_sys.o
./load auto-str unix.a byte.a
./auto-str auto_home `head -1 conf-home` > auto_home.c
./compile auto_home.c
./load install hier.o auto_home.o unix.a byte.a
./load instcheck hier.o auto_home.o unix.a byte.a
+ ./install
+ ./instcheck
+ /usr/lib/rpm/brp-mandrake
Cleaning files...done
Compressing files...done
Stripping files...done
Relativisation of symlinks...done
Clean perl...done
Building libraries symlinks...done
Processing files: checkpassword-0.90-2patch
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.69838
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd checkpassword-0.90
+ DOCDIR=/var/tmp/checkpassword-0.90-root/usr/share/doc/checkpassword-0.90
+ export DOCDIR
+ rm -rf /var/tmp/checkpassword-0.90-root/usr/share/doc/checkpassword-0.90
+ /bin/mkdir -p 
/var/tmp/checkpassword-0.90-root/usr/share/doc/checkpassword-0.90
+ cp -pr CHANGES README README_rpm 
/var/tmp/checkpassword-0.90-root/usr/share/doc/checkpassword-0.90
+ cp -pr TODO VERSION 
/var/tmp/checkpassword-0.90-root/usr/share/doc/checkpassword-0.90
+ exit 0
Finding  Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides
Using BuildRoot: /var/tmp/checkpassword-0.90-root to search libs
Finding  Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires 
/var/tmp/checkpassword-0.90-root i586
Provides: CHECKPASSWORD
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 
rpmlib(CompressedFileNames) <= 3.0.4-1
Requires: libcrypt.so.1 libcrypt.so.1(GLIBC_2.0) libc.so.6 
libc.so.6(GLIBC_2.0)
Checking for unpackaged file(s): /usr/lib/rpm/check-files 
/var/tmp/checkpassword-0.90-root
Wrote: /usr/src/RPM/RPMS/i586/checkpassword-0.90-2patch.i586.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.10709
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd checkpassword-0.90
+ rm -rf /var/tmp/checkpassword-0.90-root
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.10709
+ umask 022
+ cd /usr/src/RPM/BUILD
+ rm -rf checkpassword-0.90
+ exit 0


What went wrong?

thx -chad


>From: Andrew Richards <[email protected]>
>To: "Chad B" <[email protected]>
>CC: [email protected]
>Subject: Re: uninstall/reinstall checkpassword troubles "errno"
>Date: Fri, 2 Apr 2004 09:32:22 +0100
>
>On Friday 02 April 2004 08:44, you wrote:
> > ...
> > : undefined reference to `errno'
> > ...
> > Any ideas on how to properly uninstall/reinstall.  I think this bad
> > original checkpassword setup may be the cause of my qmail "-ERR unable 
>to
> > write pipe" problems.
>
>Nope, the 'unable to write pipe' doesn't relate to a compilation issue. You 
>do
>have repeated 'errno' messages however: This is a common question on this
>mailing list (but the answer is easily found on Google / in the archive
>etc.).
>
>Here are some sources of information for common queries:
>
>  - errno patches: http://www.qmail.org/moni.csi.hu/pub/glibc-2.3.1/
>  - Google (in this case, search on "checkpassword errno")
>  - The archive at http://news.gmane.org/group/gmane.comp.djb.checkpassword
>
>cheers,
>
>Andrew.

_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/