Cant build package with default rules

Bug #1005310 reported by kamatoz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
postfix (Ubuntu)
Expired
Low
Unassigned

Bug Description

Ubuntu 12.04 LTS
Source package Postfix 2.9.1-5 0

The build process dies with

gcc -Wmissing-prototypes -Wformat -DDEBIAN -DMAX_DYNAMIC_MAPS -DHAS_PCRE -DHAS_LDAP -DHAS_SQLITE -DMYORIGIN_FROM_FILE -DNO_NIS -DHAS_CDB -DHAS_MYSQL -I/usr/include/mysql -DHAS_PGSQL -I/usr/include/postgresql -DHAS_SQLITE -I/usr/include -DHAS_SSL -I/usr/include/openssl -DUSE_SASL_AUTH -I/usr/include/sasl -DUSE_CYRUS_SASL -DUSE_TLS -O2 -I. -I../../include -DLINUX3 -o smtpd smtpd.o smtpd_token.o smtpd_check.o smtpd_chat.o smtpd_state.o smtpd_peer.o smtpd_sasl_proto.o smtpd_sasl_glue.o smtpd_proxy.o smtpd_xforward.o smtpd_dsn_fix.o smtpd_milter.o smtpd_resolve.o smtpd_expand.o ../../lib/libmaster.a ../../lib/libtls.a ../../lib/libdns.a ../../lib/libxsasl.a ../../lib/libmilter.a ../../lib/libglobal.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lpthread -L/usr/src/postfix-2.9.1/debian -ldb
../../lib/libdns.a: undefined reference to `__res_search'
../../lib/libdns.a: undefined reference to `__dn_expand'
collect2: выполнение ld завершилось с кодом возврата 1
make: *** [smtpd] Ошибка 1
make: Выход из каталога `/usr/src/postfix-2.9.1/src/smtpd'
make[1]: *** [update] Ошибка 1
make[1]: Выход из каталога `/usr/src/postfix-2.9.1'
make: *** [build] Ошибка 2
dpkg-buildpackage: ошибка: debian/rules build возвратил код ошибки 2

To get rid of it I had to add -lresolv to AUXLIBS in debian/rules .

Revision history for this message
Chuck Short (zulcss) wrote :

I am not able to reproduce this with the stock package, are you adding anything else to the package?

Changed in postfix (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
kamatoz (kamatoz) wrote :

Nope, standard installation (amd64) full log:
apt-get source postfix
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
ВНИМАНИЕ: упаковка «postfix» поддерживается в системе контроля версий «Git»:
git://git.debian.org/~lamont/postfix.git
Необходимо получить 4 009 kб архивов исходного кода.
Получено:1 http://ru.archive.ubuntu.com/ubuntu/ precise-updates/main postfix 2.9.1-5 (dsc) [1 485 B]
Получено:2 http://ru.archive.ubuntu.com/ubuntu/ precise-updates/main postfix 2.9.1-5 (tar) [3 768 kB]
Получено:3 http://ru.archive.ubuntu.com/ubuntu/ precise-updates/main postfix 2.9.1-5 (diff) [239 kB]
Получено 4 009 kБ за 22с (176 kБ/c)
gpgv: Подпись создана Вт. 24 апр. 2012 13:10:55 SAKT ключом DSA с ID 0A0AC927
gpgv: Не могу проверить подпись: открытый ключ не найден
dpkg-source: предупреждение: проверка подписи для ./postfix_2.9.1-5.dsc завершилась неудачно
dpkg-source: инфо: извлечение postfix в postfix-2.9.1
dpkg-source: инфо: распаковывается postfix_2.9.1.orig.tar.gz
dpkg-source: инфо: накладывается postfix_2.9.1-5.diff.gz
dpkg-source: инфо: авторские файлы были изменены:
 postfix-2.9.1/Makefile.in
 postfix-2.9.1/conf/main.cf
 postfix-2.9.1/conf/main.cf.tls
 postfix-2.9.1/conf/master.cf
 postfix-2.9.1/conf/postfix-files
 postfix-2.9.1/conf/postfix-script
 postfix-2.9.1/examples/smtpd-policy/greylist.pl
 postfix-2.9.1/html/postconf.1.html
 postfix-2.9.1/html/postmap.1.html
 postfix-2.9.1/html/smtp-sink.1.html
 postfix-2.9.1/makedefs
 postfix-2.9.1/man/man1/postmap.1
 postfix-2.9.1/rmail/LICENSE
 postfix-2.9.1/rmail/Makefile.in
 postfix-2.9.1/rmail/rmail.8
 postfix-2.9.1/rmail/rmail.c
 postfix-2.9.1/src/dns/Makefile.in
 postfix-2.9.1/src/global/Makefile.in
 postfix-2.9.1/src/global/dict_ldap.c
 postfix-2.9.1/src/global/mail_conf.c
 postfix-2.9.1/src/global/mail_dict.c
 postfix-2.9.1/src/global/mail_params.c
 postfix-2.9.1/src/global/mail_params.h
 postfix-2.9.1/src/global/mkmap_open.c
 postfix-2.9.1/src/master/Makefile.in
 postfix-2.9.1/src/postconf/postconf.c
 postfix-2.9.1/src/postmap/postmap.c
 postfix-2.9.1/src/tls/Makefile.in
 postfix-2.9.1/src/tls/tls_misc.c
 postfix-2.9.1/src/util/Makefile.in
 postfix-2.9.1/src/util/dict.h
 postfix-2.9.1/src/util/dict_db.c
 postfix-2.9.1/src/util/dict_dbm.c
 postfix-2.9.1/src/util/dict_open.c
 postfix-2.9.1/src/util/load_lib.c
 postfix-2.9.1/src/util/load_lib.h
 postfix-2.9.1/src/util/sdbm.c
 postfix-2.9.1/src/util/sdbm.h
 postfix-2.9.1/src/util/sys_defs.h
 postfix-2.9.1/src/xsasl/xsasl_cyrus_client.c
 postfix-2.9.1/src/xsasl/xsasl_cyrus_common.h
 postfix-2.9.1/src/xsasl/xsasl_cyrus_log.c
 postfix-2.9.1/src/xsasl/xsasl_cyrus_server.c
root@kmtz-EG41MF-US2H:/usr/src#
root@kmtz-EG41MF-US2H:/usr/src# cd postfix-2.9.1/
root@kmtz-EG41MF-US2H:/usr/src/postfix-2.9.1#
root@kmtz-EG41MF-US2H:/usr/src/postfix-2.9.1# dpkg-buildpackage > log 2>&1

log in attachment...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for postfix (Ubuntu) because there has been no activity for 60 days.]

Changed in postfix (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.