On Wed, Nov 05, 2003 at 12:45:28PM +1300, Peter alleged:
> I'm trying to build RHEL 3 on a RedHat 9 build host.  I'm running into a few compile 
> problems (which I'll try to muscle on through), but I just wondered if anyone has 
> done this before and can share any gotcha's or HOWTOs with me.

Don't bother trying to get everything to build.  Only a subset of
packages will actually build on RH9.  Build what you can, upgrade
packages, build more, upgrade more, etc.

 
> - Peter
> ==> libghttp-1.0.9-8.1.src.rpm.out.err <==
> + /bin/mkdir -p /var/tmp/ghttp-1.0.9-root/usr/share/doc/libghttp-1.0.9
> + cp -pr AUTHORS COPYING ChangeLog NEWS README TODO doc/ghttp.html 
> /var/tmp/ghttp-1.0.9-root/usr/share/doc/libghttp-1.0.9
> + exit 0
> Processing files: libghttp-devel-1.0.9-8.1
> error: File not found by glob: /var/tmp/ghttp-1.0.9-root/usr/lib/lib*.so
> 
> 
> RPM build errors:
>     File not found by glob: /var/tmp/ghttp-1.0.9-root/usr/lib/lib*.so.*
>     File not found by glob: /var/tmp/ghttp-1.0.9-root/usr/lib/lib*.so

This plauged me trying to build packages in a chroot environment and it
took several hours to dig through the scripts and figure out what was
going on.

If you look carefully during the ./configure, do you see that ldconfig
reports that your system can't make shared libraries? 

Installing redhat-rpm-config fixed the problem; it contains the correct
config.guess for ltconfig.

 
> ==> libtabe-0.2.6-5.1.src.rpm.out.err <==
> tabe_tsidbint.c:104: incompatible type for argument 4 of indirect function call
> tabe_tsidbint.c:104: too many arguments to function
> make[1]: *** [tabe_tsidbint.lo] Error 1
> make[1]: Leaving directory `/home2/rhel3/BUILD/libtabe/src'
> make: *** [lib] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.4018 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.4018 (%build)
> 
> ==> lm_sensors-2.6.5-6.src.rpm.out.err <==
> gcc -M -MG -I. -Ikernel/include -I/usr/src/linux/include -I/usr/src/linux/include  
> -fpic -O2  -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual 
> -Wcast-align -Wwrite-strings -Wnested-externs -Winline  lib/data.c | \
>         sed -e '[EMAIL PROTECTED](.*\)\.o:@lib/data.ld lib/data.lo: Makefile 
> '`dirname lib/data.ld`/Module.mk' @' > lib/data.ld
> grep: /usr/src/linux/Makefile: No such file or directory
> grep: /usr/src/linux/include/linux/autoconf.h: No such file or directory
> make: *** No rule to make target `linux/i2c-proc.h', needed by 
> `prog/sensors/chips.rd'.  Stop.
> error: Bad exit status from /var/tmp/rpm-tmp.81967 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.81967 (%build)

kernel-source installed?  Probably shouldn't bother with lm_sensors
until you get your OS updated more.

 
> 
> ==> mikmod-3.1.6-20.src.rpm.out.err <==
> + export DOCDIR
> + rm -rf /var/tmp/mikmod-3.1.6/usr/share/doc/mikmod-3.1.6
> + /bin/mkdir -p /var/tmp/mikmod-3.1.6/usr/share/doc/mikmod-3.1.6
> + cp -pr AUTHORS COPYING INSTALL NEWS README 
> /var/tmp/mikmod-3.1.6/usr/share/doc/mikmod-3.1.6
> + cp -pr libmikmod-3.1.9/PROBLEMS libmikmod-3.1.9/TODO 
> /var/tmp/mikmod-3.1.6/usr/share/doc/mikmod-3.1.6
> + exit 0
> 
> 
> RPM build errors:
>     File not found by glob: /var/tmp/mikmod-3.1.6/usr/lib/*.so*

See above.

 
> ==> mod_authz_ldap-0.22-3.src.rpm.out.err <==
> make[2]: *** [mod_authz_ldap.la] Error 1
> make[2]: Leaving directory `/home2/rhel3/BUILD/mod_authz_ldap-0.22/module'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home2/rhel3/BUILD/mod_authz_ldap-0.22'
> make: *** [all] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.93572 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.93572 (%build)

Missed the error?  Looks like it's above what you pasted.

 
> ==> openssh-3.6.1p2-18.src.rpm.out.err <==
> + CFLAGS=-O2 -g -march=i386 -mcpu=i686
> + export CFLAGS
> ++ krb5-config --prefix
> /var/tmp/rpm-tmp.42461: line 1: krb5-config: command not found
> + krb5_prefix=
> error: Bad exit status from /var/tmp/rpm-tmp.42461 (%build)
>
>
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.42461 (%build)
> 

krb5-devel installed?  Probably don't bother building ssh until you get
new openssl and kerberos installed.

krb5-config is in /usr/kerberos/bin, be sure it is getting into your
path.



> ==> openssl-0.9.7a-22.1.src.rpm.out.err <==
> gcc -I. -I.. -I../include -fPIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN 
> -DHAVE_DLFCN_H -DKRB5_MIT -DOPENSSL_NO_ASM -DOPENSSL_NO_IDEA -DOPENSSL_NO_MDC2 
> -DOPENSSL_NO_RC5 -DOPENSSL_NO_EC -I/usr/kerberos/include -DL_ENDIAN -DTERMIO -Wall 
> -O2 -g -march=i386 -mcpu=i686 -Wa,--noexecstack   -c -o cryptlib.o cryptlib.c
> as: unrecognized option `--noexecstack'
> make[1]: *** [cryptlib.o] Error 1
> make[1]: Leaving directory `/home2/rhel3/BUILD/openssl-0.9.7a/crypto'
> make: *** [sub_all] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.82487 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.82487 (%build)

Probably need new binutils installed.


> ==> ORBit2-2.6.2-1.src.rpm.out.err <==
> error: Failed build dependencies:
>         linc-devel >= 1.0.3 is needed by ORBit2-2.6.2-1
>         libIDL-devel >= 0.8.0-9 is needed by ORBit2-2.6.2-1
> Installing ORBit2-2.6.2-1.src.rpm
> 
> ==> perl-5.8.0-88.4.src.rpm.out.err <==
> make config failed, continuing anyway...
> make[1]: Entering directory `/home2/rhel3/BUILD/perl-5.8.0/ext/Digest/MD5'
> Makefile:79: *** missing separator.  Stop.
> make[1]: Leaving directory `/home2/rhel3/BUILD/perl-5.8.0/ext/Digest/MD5'
> make: *** [lib/auto/Digest/MD5/MD5.so] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.48061 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.48061 (%build)
> 
> ==> perl-DBD-MySQL-2.1021-3.src.rpm.out.err <==
> Unsuccessful stat on filename containing newline at 
> /usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm line 97.
> Using DBI 1.32 installed in 
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBI
> Writing Makefile for DBD::mysql
> + make
> Makefile:88: *** missing separator.  Stop.
> error: Bad exit status from /var/tmp/rpm-tmp.85495 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.85495 (%build)
> 
> ==> perl-HTML-Parser-3.26-17.src.rpm.out.err <==
> -------------------------------------------------------------------------------
> t/entities.t                  9    2  22.22%  2 7
> t/headparser.t                4    1  25.00%  3
> 1 test skipped.
> make: *** [test_dynamic] Error 29
> error: Bad exit status from /var/tmp/rpm-tmp.70546 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.70546 (%build)
> 
> ==> perl-Time-HiRes-1.38-3.src.rpm.out.err <==
> 
> Now you may issue 'make'.  Do not forget also 'make test'.
> 
> + make
> Makefile:89: *** missing separator.  Stop.
> error: Bad exit status from /var/tmp/rpm-tmp.53950 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.53950 (%build)
> 
> ==> prelink-0.3.0-6.src.rpm.out.err <==
> make[2]: Leaving directory `/home2/rhel3/BUILD/prelink/testsuite'
> make[1]: *** [check-am] Error 2
> make[1]: Leaving directory `/home2/rhel3/BUILD/prelink/testsuite'
> make: *** [check-harder] Error 2
> make: Leaving directory `/home2/rhel3/BUILD/prelink/testsuite'
> error: Bad exit status from /var/tmp/rpm-tmp.41096 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.41096 (%build)

I _think_ prelink will error until you get new glibc installed.

 
> ==> redhat-config-language-1.0.14-2.src.rpm.out.err <==
> pygettext.py --default-domain=redhat-config-language --verbose 
> --output=redhat-config-language.po  --keyword=_ --keyword=N_ 
> ../src/language_backend.py ../src/language_gui.py ../src/language_tui.py 
> ../src/redhat-config-language.py
> make[1]: pygettext.py: Command not found
> make[1]: *** [redhat-config-language.pot] Error 127
> make[1]: Leaving directory `/home2/rhel3/BUILD/redhat-config-language-1.0.14/po'
> make: *** [subdirs] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.74008 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.74008 (%build)
> 
> 
> ==> rpmdb-redhat-3-0.20031007.src.rpm.out.err <==
> + echo 'This specfile needs access to %{rpmdbtree}/i386/Redhat/RPMS'
> This specfile needs access to %{rpmdbtree}/i386/Redhat/RPMS
> + exit 1
> error: Bad exit status from /var/tmp/rpm-tmp.69257 (%prep)
> 
> 
> RPM build errors:
>     user buildsys does not exist - using root
>     group buildsys does not exist - using root
>     Bad exit status from /var/tmp/rpm-tmp.69257 (%prep)
> 
> ==> screen-3.9.15-10.src.rpm.out.err <==
> screen.c: In function `serv_select_fn':
> screen.c:3011: `D_VB' undeclared (first use in this function)
> screen.c:3011: (Each undeclared identifier is reported only once
> screen.c:3011: for each function it appears in.)
> make: *** [screen.o] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.73430 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.73430 (%build)
> 
> ==> setarch-1.3-1.src.rpm.out.err <==
> + gcc -o setarch setarch.c -O2 -g -march=i386 -mcpu=i686
> setarch.c: In function `main':
> setarch.c:116: `ADDR_LIMIT_3GB' undeclared (first use in this function)
> setarch.c:116: (Each undeclared identifier is reported only once
> setarch.c:116: for each function it appears in.)
> error: Bad exit status from /var/tmp/rpm-tmp.76501 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.76501 (%build)

setarch won't build until you get new glibc installed.

 
> .... etc, etc, etc.

Yup, and so it goes :)

 
> rhel-rebuild mailing list
> [EMAIL PROTECTED]
> Hosted at the University of Innsbruck, Austria

-- 
Garrick Staples, Linux/HPCC Administrator
University of Southern California

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to