Je souhaite installer d'anciennes versions de php et de postgresql sur ma machine de test. malheureusement ces version datent de 2002 et corespondent à une redhat 7.3 semble-t-il 🙂
j'ai récupéré les srpm sur rmbone des versions pour rh7.3, et j'essaye des les compiler sur ma machine de test en FC4 mais j'obtiens un message d'erreur détallé plus bas dans ce post. 'com_err.h' fait partie d'une ancienne version de krb5-devel, dans le package actuel le fichier n'est plus présent. Quelq'un a-t-il une suggestion ou une piste ?
rpmbuild --clean -bb postgresql.spec
Exécution_de(%prep): /bin/sh -e /var/tmp/rpm-tmp.66157
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf postgresql-7.2.1
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/postgresql-7.2.1.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd postgresql-7.2.1
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #1 (rpm-pgsql-7.2.1.patch):'
Patch #1 (rpm-pgsql-7.2.1.patch):
+ patch -p1 -s
+ exit 0
Exécution_de(%build): /bin/sh -e /var/tmp/rpm-tmp.15743
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd postgresql-7.2.1
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cp /usr/src/redhat/SOURCES/redhat-style-files.lst /usr/src/redhat/SOURCES/suse-style-files.lst .
+ CFLAGS='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables'
+ export CXXFLAGS
++ echo -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables
++ xargs -n 1
++ grep -v ffast-math
++ xargs -n 100
+ CFLAGS='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables'
+ ./configure --enable-locale --with-CXX --prefix=/usr --disable-rpath --with-perl --enable-multibyte --with-tcl --with-odbc --enable-syslog --with-python --with-openssl --with-pam --with-krb5=/usr/kerberos --enable-nls --sysconfdir=/etc/pgsql --mandir=/usr/share/man --docdir=/usr/share/doc --includedir=/usr/include --datadir=/usr/share/pgsql
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking which template to use... linux
checking whether to build with locale support... yes
checking whether to build with recode support... no
checking whether to build with multibyte character support... yes, default SQL_ASCII
checking whether NLS is wanted... yes
checking for default port number... 5432
checking for default soft limit on number of connections... 32
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables ) works... yes
checking whether the C compiler (gcc -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
using CFLAGS=-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables
checking whether the C compiler (gcc -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables ) works... yes
checking whether the C compiler (gcc -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables ) is a cross-compiler... no
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking whether to build with Tcl... yes
checking whether to build with Tk... yes
checking whether to build Perl modules... yes
checking whether to build Python modules... yes
checking whether to build Java/JDBC tools... no
building with Kerberos 5 support
checking whether to build with PAM support... yes
building with OpenSSL support
checking whether to build the ODBC driver... yes (stand-alone)
checking whether to build C++ modules... yes
checking for c++... c++
checking whether the C++ compiler (c++ -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables ) works... yes
checking whether the C++ compiler (c++ -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
using CXXFLAGS=-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables
checking how to run the C++ preprocessor... c++ -E
checking for string... yes
checking for namespace std in C++... yes
using CPPFLAGS=
using LDFLAGS=
checking for mawk... no
checking for gawk... gawk
checking for flex... no
configure: warning:
*** Without Flex you will not be able to build PostgreSQL from CVS or
*** change any of the scanner definition files. You can obtain Flex from
*** a GNU mirror site. (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this because the Flex
*** output is pre-generated.)
checking whether ln -s works... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for ranlib... ranlib
checking for lorder... no
checking for tar... /bin/tar
checking for bison... no
configure: warning:
*** Without Bison you will not be able to build PostgreSQL from CVS or
*** change any of the parser definition files. You can obtain Bison from
*** a GNU mirror site. (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this because the Bison
*** output is pre-generated.) To use a different yacc program (possible,
*** but not recommended), set the environment variable YACC before running
*** 'configure'.
checking for wish... /usr/bin/wish
checking for perl... /usr/bin/perl
checking Perl installation directories... done
checking for python... /usr/bin/python
checking Python installation directories... /usr/lib/python2.4
checking how to link an embedded Python application... -L/usr/lib/python2.4/config -lpthread -ldl -lutil -lm -lpython2.4
checking for readline... yes (-lreadline -ltermcap)
checking for library containing using_history... none required
checking for main in -lbsd... yes
checking for setproctitle in -lutil... no
checking for main in -lm... yes
checking for main in -ldl... yes
checking for main in -lsocket... no
checking for main in -lnsl... yes
checking for main in -lipc... no
checking for main in -lIPC... no
checking for main in -llc... no
checking for main in -ldld... no
checking for main in -lld... no
checking for main in -lcompat... no
checking for main in -lBSD... no
checking for main in -lgen... no
checking for main in -lPW... no
checking for main in -lresolv... yes
checking for main in -lunix... no
checking for library containing crypt... -lcrypt
checking for __inet_ntoa in -lbind... yes
checking for inflate in -lz... yes
checking for library containing fdatasync... none required
checking for com_err in -lcom_err... yes
checking for krb5_encrypt in -lcrypto... no
checking for krb5_encrypt in -lk5crypto... yes
checking for krb5_sendauth in -lkrb5... yes
checking for CRYPTO_new_ex_data in -lcrypto... yes
checking for SSL_library_init in -lssl... yes
checking for pam_start in -lpam... yes
checking for library containing gettext... none required
checking for libintl.h... yes
checking for msgfmt... msgfmt
checking for msgmerge... msgmerge
checking for xgettext... xgettext
checking for crypt.h... yes
checking for dld.h... no
checking for endian.h... yes
checking for fp_class.h... no
checking for getopt.h... yes
checking for ieeefp.h... no
checking for pwd.h... yes
checking for sys/ipc.h... yes
checking for sys/pstat.h... no
checking for sys/select.h... yes
checking for sys/sem.h... yes
checking for sys/socket.h... yes
checking for sys/shm.h... yes
checking for sys/types.h... yes
checking for sys/un.h... yes
checking for termios.h... yes
checking for kernel/OS.h... no
checking for kernel/image.h... no
checking for SupportDefs.h... no
checking for netinet/in.h... yes
checking for netinet/tcp.h... yes
checking whether string.h and strings.h may both be included... yes
checking for readline/readline.h... yes
checking for readline/history.h... yes
checking for krb5.h... yes
checking for com_err.h... no
configure: error: header file <com_err.h> is required for Kerberos 5
erreur: Mauvais status de sortie pour /var/tmp/rpm-tmp.15743 (%build)
Erreur de construction de RPM:
Mauvais status de sortie pour /var/tmp/rpm-tmp.15743 (%build)