[postfix-es] Postfix rebuild

Fermin fermin_martinez en terra.es
Vie Jul 11 18:54:28 CEST 2003


Mi sistema es Mandrake 9.1 con db1-1.85.8mdk y db1-devel-1.85.8mdk y el
paquete que quiero instalar es el Postfix-2.0.12-3.src.rpm

Las opciones habilitadas son:

export POSTFIX_MYSQL=1
export POSTFIX_LDAP=0
export POSTFIX_DB=1

En caso de no tocar nada más el resultado de rebuild es el de
errores1.txt

Como parece ser que busca db.h en /usr/include en vez de
/usr/incluye/db1, copio los ficheros de /usr/incluye/db1  a
/usr/incluye. Al ejecutar rebuild ya no da el error anterior sino el de
errores2.txt

Muchas gracias por tu ayuda.

Un saludo,

-----Mensaje original-----
De: owner-postfix-es en WL0.org [mailto:owner-postfix-es en WL0.org] En nombre
de Simon J Mudd
Enviado el: lunes, 07 de julio de 2003 19:36
Para: postfix-es en wl0.org
Asunto: Re: [postfix-es] Postfix rebuild

FERMIN_MARTINEZ en terra.es (FERMIN_MARTINEZ) writes:

> He probado con los paquetes de Simon (intento reconstruir el rpm desde

> los src.rpm) pero obtengo un error de compilación; no encuentra lbd a 
> pesar de que en las argumentos le indico que tengo instalado db1 (no
sé 
> si tiene algo que ver).

Si indicas _que_ .src.rpm usas y _muestras_ el fallo en la compilación
[con información de que opciones has habilitado] quizá puede
determinar el problema.

-
Para ENVIAR mensajes a esta lista tienes que estar SUSCRITO a ella.
.
Envía la linea "unsubscribe postfix-es" en el cuerpo de un mensaje
a majordomo en WL0.org para quitarte de la lista.
------------ próxima parte ------------
[root en LFermin SPECS]# rpmbuild -ba postfix.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.46425
+ umask 022
+ cd /usr/src/RPM/BUILD
+ umask 022
++ rpm --eval /usr/src/RPM/SOURCES
+ tmpdir=/usr/src/RPM/SOURCES
++ sh /usr/src/RPM/SOURCES/postfix-get-distribution
+ distribution=mandrake-9.1
+ '[' mandrake-9.1 '!=' mandrake-9.1 ']'
+ cd /usr/src/RPM/BUILD
+ rm -rf postfix-2.0.12
+ /bin/gzip -dc /usr/src/RPM/SOURCES/postfix-2.0.12.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd postfix-2.0.12
+ /bin/gzip -dc /usr/src/RPM/SOURCES/pfixtls-0.8.13-2.0.10-0.9.7b.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ echo 'Patch #2 (postfix-smtp_sasl_proto.c.patch):'
Patch #2 (postfix-smtp_sasl_proto.c.patch):
+ patch -p1 -b --suffix .auth -s
+ echo 'Patch #3 (postfix-files.patch):'
Patch #3 (postfix-files.patch):
+ patch -p1 -b --suffix .alternatives -s
+ echo 'Patch #7 (postfix-log_recipient):'
Patch #7 (postfix-log_recipient):
+ patch -p1 -b --suffix .logrcpt -s
+ mv conf/master.cf conf/master.cf-nochroot
+ awk -f /usr/src/RPM/SOURCES/postfix-chroot-setup.awk
+ ed conf/master.cf
5579
5587
+ cp /usr/src/RPM/SOURCES/postfix-RPM-new-packages postfix-RPM-new-packages
+ cp /usr/src/RPM/SOURCES/postfix-RPM-TODO postfix-RPM-TODO
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.34583
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd postfix-2.0.12
+ umask 022
+ CCARGS=
+ AUXLIBS=
+ CCARGS= -DNO_PCRE
+ CCARGS= -DNO_PCRE -DHAS_MYSQL -I/usr/include/mysql
+ AUXLIBS= -L/usr/lib/mysql -lmysqlclient -lz -lm
+ export CCARGS AUXLIBS
+ make -f Makefile.init makefiles
make -f Makefile.in MAKELEVEL= Makefiles
set -e; for i in src/util src/global src/dns src/master src/postfix src/smtpstone src/sendmail src/error src/pickup src/cleanup src/smtpd src/local src/lmtp src/trivial-rewrite src/qmgr src/smtp src/bounce src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop src/postkick src/postlock src/postlog src/postmap src/postqueue src/postsuper src/nqmgr src/qmqpd src/spawn src/flush src/virtual src/proxymap; do \
 (set -e; echo "[$i]"; cd $i; rm -f Makefile; \
 make -f Makefile.in Makefile MAKELEVEL=) || exit 1; \
done;
[src/util]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
No <db.h> include file found.
Install the appropriate db*-devel package first.
See the RELEASE_NOTES file for more information.
make: *** [Makefile] Error 1
make: *** [Makefiles] Error 1
make: *** [makefiles] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.34583 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.34583 (%build)
[root en LFermin SPECS]#
------------ próxima parte ------------
.
.
.
ranlib libmaster.a
cp libmaster.a ../../lib/libmaster.a
ranlib ../../lib/libmaster.a
gcc -Wmissing-prototypes -Wformat -DNO_PCRE -DHAS_MYSQL -I/usr/include/mysql  -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -I. -I../../include -DLINUX2 -c master.c
gcc -Wmissing-prototypes -Wformat -DNO_PCRE -DHAS_MYSQL -I/usr/include/mysql  -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -I. -I../../include -DLINUX2 -c master_conf.c
gcc -Wmissing-prototypes -Wformat -DNO_PCRE -DHAS_MYSQL -I/usr/include/mysql  -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -I. -I../../include -DLINUX2 -c master_ent.c
gcc -Wmissing-prototypes -Wformat -DNO_PCRE -DHAS_MYSQL -I/usr/include/mysql  -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -I. -I../../include -DLINUX2 -c master_sig.c
gcc -Wmissing-prototypes -Wformat -DNO_PCRE -DHAS_MYSQL -I/usr/include/mysql  -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -I. -I../../include -DLINUX2 -c master_avail.c
gcc -Wmissing-prototypes -Wformat -DNO_PCRE -DHAS_MYSQL -I/usr/include/mysql  -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -I. -I../../include -DLINUX2 -c master_spawn.c
gcc -Wmissing-prototypes -Wformat -DNO_PCRE -DHAS_MYSQL -I/usr/include/mysql  -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -I. -I../../include -DLINUX2 -c master_service.c
gcc -Wmissing-prototypes -Wformat -DNO_PCRE -DHAS_MYSQL -I/usr/include/mysql  -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -I. -I../../include -DLINUX2 -c master_status.c
gcc -Wmissing-prototypes -Wformat -DNO_PCRE -DHAS_MYSQL -I/usr/include/mysql  -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -I. -I../../include -DLINUX2 -c master_listen.c
gcc -Wmissing-prototypes -Wformat -DNO_PCRE -DHAS_MYSQL -I/usr/include/mysql  -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -I. -I../../include -DLINUX2 -c master_vars.c
gcc -Wmissing-prototypes -Wformat -DNO_PCRE -DHAS_MYSQL -I/usr/include/mysql  -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -I. -I../../include -DLINUX2 -c master_wakeup.c
gcc -Wmissing-prototypes -Wformat -DNO_PCRE -DHAS_MYSQL -I/usr/include/mysql  -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -I. -I../../include -DLINUX2 -c master_flow.c
gcc -Wmissing-prototypes -Wformat -DNO_PCRE -DHAS_MYSQL -I/usr/include/mysql  -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -I. -I../../include -DLINUX2 -o master master.o master_conf.o master_ent.o master_sig.o master_avail.o master_spawn.o master_service.o master_status.o master_listen.o master_vars.o master_wakeup.o master_flow.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
/usr/bin/ld: cannot find -ldb
collect2: ld returned 1 exit status
make: *** [master] Error 1
make: *** [update] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.12283 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.12283 (%build)
[root en LFermin SPECS]#


Más información sobre la lista de distribución Postfix-es