Re: postfix on Yellow Dog Linux: comment & question


Subject: Re: postfix on Yellow Dog Linux: comment & question
From: Chris Pepper (pepper@reppep.com)
Date: Thu Jul 05 2001 - 22:05:50 MDT


At 7:31 PM -0400 2001/07/05, Wietse Venema wrote:
>Chris Pepper:
>> Folks,
>>
>> On Yellow Dog Linux 2.0 (PowerPC), postfix requires the
>> kernel-headers RPM for sys/types.h. This should probably be in
>> LINUX_README.
>
>I think this is a defect in Yellow Dog Linux. If they provide a
>development environment with sys/types.h then they should provide
>all files needed by sys/types.h. I have never used a UNIX system
>with incomplete sys/types.h dependencies.

        I don't see that this is a defect -- I didn't specify a
development environment in the base install, but did add the RPMs I
knew I'd need (gcc, make, etc.). I did not know I'd need
kernel-headers for postfix -- I haven't needed it for any of the
smaller program I've compiled so far.

        I do think it would be nice to mention, in the Linux README,
that kernel-headers is a requirement, alongside the db3 requirement.

> > Also, there's a dependency that my YDL 2.0 system doesn't
>> satisfy, but I can't tell what it is. I added the yp* RPMs
>> (yp-tools-2.4-4.ppc.rpm, ypbind-1.6-11.ppc.rpm, and
>> ypserv-1.3.11-9.ppc.rpm), but that didn't help. What's missing from
>> my system? FWIW, I have the db1, db2, and db3 RPMs installed, as well
>> as db3-devel & gdbm. Any insight is appreciated.
>
>Looks like the NIS *library routines* are missing.

        That makes sense, but I still don't know which specific file
is missing. All the files in my LinuxPPC /lib directory that contain
the strings yp_match, yp_get_default_domain, and R_PPC_REL24 also
exist in my YDL /lib directory (modulo version numbers), and error
compiles successfully under LinuxPPC. Are the NIS library files
elsewhere??

>[pepper@www postfix-20010228-pl03]$ grep yp_match /lib/* /lppcroot/lib/*
>Binary file /lib/libnsl-2.2.1.so matches
>Binary file /lib/libnsl.so.1 matches
>Binary file /lib/libnss_compat-2.2.1.so matches
>Binary file /lib/libnss_compat.so.2 matches
>Binary file /lib/libnss_nis-2.2.1.so matches
>Binary file /lib/libnss_nis.so.2 matches
>Binary file /lib/libpwdb.a matches
>Binary file /lib/libpwdb.so matches
>Binary file /lib/libpwdb.so.0 matches
>Binary file /lib/libpwdb.so.0.61.1 matches
>grep: /lib/modules: Is a directory
>grep: /lib/security: Is a directory
>Binary file /lppcroot/lib/libnsl-2.1.3.so matches
>Binary file /lppcroot/lib/libnsl.so.1 matches
>Binary file /lppcroot/lib/libnss_compat-2.1.3.so matches
>Binary file /lppcroot/lib/libnss_compat.so.2 matches
>Binary file /lppcroot/lib/libnss_nis-2.1.3.so matches
>Binary file /lppcroot/lib/libnss_nis.so.2 matches
>Binary file /lppcroot/lib/libpwdb.a matches
>Binary file /lppcroot/lib/libpwdb.so matches
>Binary file /lppcroot/lib/libpwdb.so.0 matches
>Binary file /lppcroot/lib/libpwdb.so.0.60 matches
>grep: /lppcroot/lib/modules: Is a directory
>grep: /lppcroot/lib/security: Is a directory
>[pepper@www postfix-20010228-pl03]$ grep R_PPC_REL24 /lib/* /lppcroot/lib/*
>Binary file /lib/ld-2.2.1.so matches
>Binary file /lib/ld.so.1 matches
>grep: /lib/modules: Is a directory
>grep: /lib/security: Is a directory
>Binary file /lppcroot/lib/ld-2.1.3.so matches
>Binary file /lppcroot/lib/ld.so.1 matches
>grep: /lppcroot/lib/modules: Is a directory
>grep: /lppcroot/lib/security: Is a directory

        I also see that YDL puts a couple libs which error uses in
/usr/lib, but copying them to /lib didn't alleviate the error
building error.

>[pepper@www error]$ strings error|grep lib
>/lib/ld.so.1
>libdb.so.3
>libnsl.so.1
>libresolv.so.2
>libc.so.6
>__libc_start_main
>/usr/libexec/postfix
>[pepper@www error]$ locate libdb.so. libresolv.so. libnsl.so. libc.so.|sort
>/lib/libc.so.6
>/lib/libnsl.so.1
>/lib/libresolv.so.2
>/lppcroot/lib/libc.so.6
>/lppcroot/lib/libdb.so.2
>/lppcroot/lib/libdb.so.3
>/lppcroot/lib/libnsl.so.1
>/lppcroot/lib/libresolv.so.2
>/usr/lib/libdb.so.2
>/usr/lib/libdb.so.3

> Wietse
>
>> >[src/error]
>> >gcc -Wmissing-prototypes -Wformat -g -O -I. -I../../include
>> >-DLINUX2 -o error error.o ../../lib/libmaster.a
> > >../../lib/libglobal.a ../../lib/libutil.a -ldb
>> >../../lib/libutil.a(dict_nis.o): In function `dict_nis_init':
>> >/home/user/pepper/tarball/postfix-20010228-pl03/src/util/dict_nis.c:81:
> > >undefined reference to `, yp_get_default_domain'
> > >/home/user/pepper/tarball/postfix-20010228-pl03/src/util/dict_nis.c:81:
>> >relocation truncated to fit: R_PPC_REL24 yp_get_default_domain
>> >../../lib/libutil.a(dict_nis.o): In function `dict_nis_lookup':
>> >/home/user/pepper/tarball/postfix-20010228-pl03/src/util/dict_nis.c:156:
> > >undefined reference to `yp_match'
>> >/home/user/pepper/tarball/postfix-20010228-pl03/src/util/dict_nis.c:156:
>> >relocation truncated to fit: R_PPC_REL24 yp_match
>> >/home/user/pepper/tarball/postfix-20010228-pl03/src/util/dict_nis.c:170:
>> >undefined reference to `yp_match'
>> >/home/user/pepper/tarball/postfix-20010228-pl03/src/util/dict_nis.c:170:
> > >relocation truncated to fit: R_PPC_REL24 yp_match
>> >collect2: ld returned 1 exit status
>> >make: *** [error] Error 1
> > >make: *** [update] Error 1

                                                Thx,

                                                Chris Pepper

-- 
Chris Pepper:             <http://www.reppep.com/~pepper/>
NEW: Mastering Mac OS X:  <http://www.reppep.com/~pepper/mmosx/>



This archive was generated by hypermail 2a24 : Thu Jul 05 2001 - 21:11:18 MDT