Решил собрать для своих нужд postfix из postfix-2.6.6.src.rpm
Но столкнулся cбедою коuда начинаю собирать пакет Ловлю следующую бяку
rpmbuild -ba --target=i686 postfix.spec
Платформы для сборки: i686
Сборка для платформы i686
Выполняется(%prep): /bin/sh -e /var/tmp/rpm-tmp.20109
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ umask 022
+ '[' 0 '!=' 0 ']'
+++ rpm --eval /usr/src/redhat/SOURCES
++ sh /usr/src/redhat/SOURCES/postfix-get-distribution
+ distribution=rhel-5.0
+ '[' rhel-5.0 '!=' rhel-5.0 ']'
+ cd /usr/src/redhat/BUILD
+ rm -rf postfix-2.6.6
+ /bin/gzip -dc /usr/src/redhat/SOURCES/postfix-2.6.6.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd postfix-2.6.6
++ /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 #3 (postfix-files.patch):'
Patch #3 (postfix-files.patch):
+ patch -p1 -b --suffix .alternatives -s
+ echo 'Patch #5 (postfix-makedefs.patch):'
Patch #5 (postfix-makedefs.patch):
+ patch -p1 -b --suffix .notls -s
+ cd /usr/src/redhat/BUILD
+ cd postfix-2.6.6
+ /bin/gzip -dc /usr/src/redhat/SOURCES/postfix-dict_cdb-1.1.11-20021104.tar.gz
+ tar -xvvf -
-rw-r--r-- mjt/users 2232 2002-10-09 20:30:40 dict_cdb.sh
drwxr-xr-x mjt/users 0 2002-10-09 20:30:40 README_FILES/
-rw-r--r-- mjt/users 1205 2002-10-09 20:30:40 README_FILES/CDB_README
drwxr-xr-x mjt/users 0 2002-10-09 20:30:40 src/
drwxr-xr-x mjt/users 0 2002-10-09 20:30:40 src/global/
-rw-r--r-- mjt/users 1480 2002-11-03 23:36:13 src/global/mkmap_cdb.c
drwxr-xr-x mjt/users 0 2002-11-06 21:20:08 src/util/
-rw-r--r-- mjt/users 10231 2002-11-06 22:01:06 src/util/dict_cdb.c
-rw-r--r-- mjt/users 615 2002-10-09 20:30:40 src/util/dict_cdb.h
+ STATUS=0
+ '[' 0 -ne 0 ']'
++ /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 .
+ sh dict_cdb.sh
Adding CDB dictionary/map support to Postfix sources in .
Nothing to be done for src/util/Makefile.in
Nothing to be done for src/util/dict_open.c
Nothing to be done for src/global/Makefile.in
Nothing to be done for src/global/mkmap.h
Nothing to be done for src/global/mkmap_open.c
All done. No files were modified.
+ test -e /usr/src/redhat/SOURCES/postfix-2.5.4-vda-ng.patch.gz
+ gzip -dc /usr/src/redhat/SOURCES/postfix-2.5.4-vda-ng.patch.gz
+ patch -p1 -b --suffix .vda -s
+ echo 'Patch #99 (postfix-2.6.0-multiline-greeting.patch):'
Patch #99 (postfix-2.6.0-multiline-greeting.patch):
+ patch -p1 -b --suffix .multiline -s
+ echo 'Patch #8 (postfix-2.3.2_libspf2-1.2.x-20060819.patch):'
Patch #8 (postfix-2.3.2_libspf2-1.2.x-20060819.patch):
+ patch -p1 -b --suffix .spf -s
1 out of 1 hunk FAILED -- saving rejects to file src/smtpd/Makefile.in.rej
1 out of 7 hunks FAILED -- saving rejects to file src/smtpd/smtpd.c.rej
1 out of 3 hunks FAILED -- saving rejects to file src/smtpd/smtpd_check.c.rej
ошибка: Неверный код возврата из /var/tmp/rpm-tmp.20109 (%prep)
Ошибки сборки пакетов:
Неверный код возврата из /var/tmp/rpm-tmp.20109 (%prep)
Условия Сборки postfix.spec
чfine with_alt_prio 30чfine with_cdb 1
чfine with_ldap 0
чfine with_mysql 0
чfine with_mysql_redhat 1
чfine with_pcre 1
чfine with_pgsql 0
чfine with_sasl 1
чfine with_spf 1
чfine with_dovecot 1
чfine with_tls 1
чfine with_tlsfix 2
чfine with_vda 1
Если не ставлю патч ловлю дальше другую бяку с cyrus
gcc -Wmissing-prototypes -Wformat -DHAS_CDB -DHAS_PCRE -I/usr/include/pcre -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DUSE_SASL_AUTH -DUSE_TLS -I/usr/kerberos/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables -Wno-comment -I. -I../../include -DLINUX2 -c xsasl_server.c
gcc -Wmissing-prototypes -Wformat -DHAS_CDB -DHAS_PCRE -I/usr/include/pcre -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DUSE_SASL_AUTH -DUSE_TLS -I/usr/kerberos/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables -Wno-comment -I. -I../../include -DLINUX2 -c xsasl_cyrus_server.c
xsasl_cyrus_server.c:77:18: error: sasl.h: No such file or directory
xsasl_cyrus_server.c:78:22: error: saslutil.h: No such file or directory
xsasl_cyrus_server.c:146: error: expected specifier-qualifier-list before 'sasl_conn_t'
xsasl_cyrus_server.c:172: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'callbacks'
xsasl_cyrus_server.c: In function 'xsasl_cyrus_server_init':
xsasl_cyrus_server.c:222: error: 'SASL_VERSION_MAJOR' undeclared (first use in this function)
xsasl_cyrus_server.c:222: error: (Each undeclared identifier is reported only once
xsasl_cyrus_server.c:222: error: for each function it appears in.)
xsasl_cyrus_server.c:223: error: 'SASL_VERSION_MINOR' undeclared (first use in this function)
xsasl_cyrus_server.c:223: error: 'SASL_VERSION_STEP' undeclared (first use in this function)
xsasl_cyrus_server.c:232: warning: implicit declaration of function 'sasl_server_init'
xsasl_cyrus_server.c:232: error: 'callbacks' undeclared (first use in this function)
xsasl_cyrus_server.c:232: error: 'SASL_OK' undeclared (first use in this function)
xsasl_cyrus_server.c:234: warning: implicit declaration of function 'sasl_errstring'
xsasl_cyrus_server.c:234: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
xsasl_cyrus_server.c: In function 'xsasl_cyrus_server_done':
xsasl_cyrus_server.c:253: warning: implicit declaration of function 'sasl_done'
xsasl_cyrus_server.c: In function 'xsasl_cyrus_server_create':
xsasl_cyrus_server.c:264: error: 'sasl_conn_t' undeclared (first use in this function)
xsasl_cyrus_server.c:264: error: 'sasl_conn' undeclared (first use in this function)
xsasl_cyrus_server.c:312: warning: implicit declaration of function 'sasl_server_new'
xsasl_cyrus_server.c:312: error: 'sasl_callback_t' undeclared (first use in this function)
xsasl_cyrus_server.c:312: error: expected expression before ')' token
xsasl_cyrus_server.c:312: error: 'SASL_OK' undeclared (first use in this function)
xsasl_cyrus_server.c:318: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
xsasl_cyrus_server.c:319: warning: implicit declaration of function 'sasl_dispose'
xsasl_cyrus_server.c:334: error: 'XSASL_CYRUS_SERVER' has no member named 'sasl_conn'
xsasl_cyrus_server.c:335: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:336: error: 'XSASL_CYRUS_SERVER' has no member named 'username'
xsasl_cyrus_server.c:337: error: 'XSASL_CYRUS_SERVER' has no member named 'mechanism_list'
xsasl_cyrus_server.c: In function 'xsasl_cyrus_server_set_security':
xsasl_cyrus_server.c:352: error: 'sasl_security_properties_t' undeclared (first use in this function)
xsasl_cyrus_server.c:352: error: expected ';' before 'sec_props'
xsasl_cyrus_server.c:359: error: 'sec_props' undeclared (first use in this function)
xsasl_cyrus_server.c:359: warning: left-hand operand of comma expression has no effect
xsasl_cyrus_server.c:377: warning: implicit declaration of function 'sasl_setprop'
xsasl_cyrus_server.c:377: error: 'XSASL_CYRUS_SERVER' has no member named 'sasl_conn'
xsasl_cyrus_server.c:377: error: 'SASL_SEC_PROPS' undeclared (first use in this function)
xsasl_cyrus_server.c:378: error: 'SASL_OK' undeclared (first use in this function)
xsasl_cyrus_server.c:380: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
xsasl_cyrus_server.c: In function 'xsasl_cyrus_server_get_mechanism_list':
xsasl_cyrus_server.c:402: warning: implicit declaration of function 'sasl_listmech'
xsasl_cyrus_server.c:402: error: 'XSASL_CYRUS_SERVER' has no member named 'sasl_conn'
xsasl_cyrus_server.c:406: error: 'SASL_OK' undeclared (first use in this function)
xsasl_cyrus_server.c:407: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
xsasl_cyrus_server.c:414: error: 'XSASL_CYRUS_SERVER' has no member named 'mechanism_list'
xsasl_cyrus_server.c:419: error: 'XSASL_CYRUS_SERVER' has no member named 'mechanism_list'
xsasl_cyrus_server.c: In function 'xsasl_cyrus_server_free':
xsasl_cyrus_server.c:428: error: 'XSASL_CYRUS_SERVER' has no member named 'sasl_conn'
xsasl_cyrus_server.c:429: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:430: error: 'XSASL_CYRUS_SERVER' has no member named 'username'
xsasl_cyrus_server.c:431: error: 'XSASL_CYRUS_SERVER' has no member named 'username'
xsasl_cyrus_server.c:432: error: 'XSASL_CYRUS_SERVER' has no member named 'mechanism_list'
xsasl_cyrus_server.c:433: error: 'XSASL_CYRUS_SERVER' has no member named 'mechanism_list'
xsasl_cyrus_server.c: In function 'xsasl_cyrus_server_auth_response':
xsasl_cyrus_server.c:457: error: 'SASL_OK' undeclared (first use in this function)
xsasl_cyrus_server.c:460: error: 'SASL_CONTINUE' undeclared (first use in this function)
xsasl_cyrus_server.c:467: warning: implicit declaration of function 'sasl_encode64'
xsasl_cyrus_server.c:471: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
xsasl_cyrus_server.c:474: error: 'SASL_NOUSER' undeclared (first use in this function)
xsasl_cyrus_server.c:475: error: 'SASL_BADAUTH' undeclared (first use in this function)
xsasl_cyrus_server.c:476: warning: passing argument 2 of 'vstring_strcpy' makes pointer from integer without a cast
xsasl_cyrus_server.c: In function 'xsasl_cyrus_server_first':
xsasl_cyrus_server.c:514: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:514: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:514: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:514: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:515: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:515: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:516: warning: implicit declaration of function 'sasl_decode64'
xsasl_cyrus_server.c:516: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:516: error: 'SASL_OK' undeclared (first use in this function)
xsasl_cyrus_server.c:520: warning: passing argument 2 of 'vstring_strcpy' makes pointer from integer without a cast
xsasl_cyrus_server.c:529: warning: implicit declaration of function 'sasl_server_start'
xsasl_cyrus_server.c:529: error: 'XSASL_CYRUS_SERVER' has no member named 'sasl_conn'
xsasl_cyrus_server.c: In function 'xsasl_cyrus_server_next':
xsasl_cyrus_server.c:561: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:561: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:561: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:561: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:562: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:562: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:563: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:563: error: 'SASL_OK' undeclared (first use in this function)
xsasl_cyrus_server.c:567: warning: passing argument 2 of 'vstring_strcpy' makes pointer from integer without a cast
xsasl_cyrus_server.c:572: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c:573: warning: implicit declaration of function 'sasl_server_step'
xsasl_cyrus_server.c:573: error: 'XSASL_CYRUS_SERVER' has no member named 'sasl_conn'
xsasl_cyrus_server.c:573: error: 'XSASL_CYRUS_SERVER' has no member named 'decoded'
xsasl_cyrus_server.c: In function 'xsasl_cyrus_server_get_username':
xsasl_cyrus_server.c:597: warning: implicit declaration of function 'sasl_getprop'
xsasl_cyrus_server.c:597: error: 'XSASL_CYRUS_SERVER' has no member named 'sasl_conn'
xsasl_cyrus_server.c:597: error: 'SASL_USERNAME' undeclared (first use in this function)
xsasl_cyrus_server.c:598: error: 'SASL_OK' undeclared (first use in this function)
xsasl_cyrus_server.c:600: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
xsasl_cyrus_server.c:603: error: 'XSASL_CYRUS_SERVER' has no member named 'username'
xsasl_cyrus_server.c:604: error: 'XSASL_CYRUS_SERVER' has no member named 'username'
xsasl_cyrus_server.c:605: error: 'XSASL_CYRUS_SERVER' has no member named 'username'
xsasl_cyrus_server.c:606: error: 'XSASL_CYRUS_SERVER' has no member named 'username'
xsasl_cyrus_server.c:607: error: 'XSASL_CYRUS_SERVER' has no member named 'username'
make: *** [xsasl_cyrus_server.o] Error 1
make: *** [update] Error 1
ошибка: Неверный код возврата из /var/tmp/rpm-tmp.91600 (%build)
Ошибки сборки пакетов:
Неверный код возврата из /var/tmp/rpm-tmp.91600 (%build)
Что стоит:
CENTOS 5.5 2.6.18-194.8.1.el5
libspf2-1.2.5-4
cyrus-sasl-2.1.22-5.el5_4.3
cyrus-sasl-devel.i386
cyrus-sasl-gssapi.i386
cyrus-sasl-ldap.i386
cyrus-sasl-lib.i386
cyrus-sasl-md5.i386
cyrus-sasl-ntlm.i386
cyrus-sasl-plain.i386
cyrus-sasl-sql.i386
Где зарыта бяка?